Commit graph

4,039 commits

Author SHA1 Message Date
Hugh Guan
b1d01899fa asoc: change HS_IF dummy to playback
HS_IF0_TDM_RX_0_DUMMY, HS_IF1_TDM_RX_0_DUMMY and HS_IF2_TDM_RX_0_DUMMY
are for playback instead of capture.

Change-Id: Icb4ccaacb3c6904b9591cada0905250a2b67cbef
Signed-off-by: Hugh Guan <quic_hhguan@quicinc.com>
2022-07-15 11:34:45 -07:00
Kogara Naveen Kumar
2283a81ea0 audio-kernel: Reset client info on deregister.
For elite and audioreach co-exit, we need keep source file same.
This patch exit in audioreach but not included in elite, cp it to keep file same.
Leveraged from audio-ar commit id ac15eb7016aff23a2be2a57289635d741cb95340

Change-Id: I187909403e9b54c8f6836477208de5e8311bf4ff
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2022-07-13 04:29:54 -07:00
Krishna Kishor Jha
282aeeb375 audio-routing: Support Rx to Tx loopback
Static loopback is created between QUIN_TDM_RX_0 to Tx session.
Tx session is created with quin_tdm_tx_7 dummy port.

Change-Id: Ic634b47d1d7f80a10c6d2bc341a6d3ca8eae34c1
2022-07-10 22:43:21 -07:00
qctecmdr
acc81179ef Merge "asoc: fixing incorrect log messages" 2022-07-08 04:22:28 -07:00
qctecmdr
8247a993b5 Merge "soc: swr-mstr-ctrl: Fix swr overflow for wsa" 2022-07-08 04:22:28 -07:00
Krishna Kishor Jha
9d3e690bfb asoc: fixing incorrect log messages
Updating log messages with present input vlaues.

Change-Id: Iaeb4d9ddea6032e97eab59e54f4cef2d0c72d59e
2022-07-05 18:01:27 +05:30
qctecmdr
01b8138d48 Merge "audio-kernel: Disable clock voting logs" 2022-06-27 05:25:03 -07:00
qctecmdr
f27620c7c0 Merge "ASoC : Add new kcontrol for starting ASRC" 2022-06-26 21:18:13 -07:00
qctecmdr
8c39c6a80a Merge "asoc: SEC CLK enable" 2022-06-26 21:18:13 -07:00
Hugh Guan
d9dd330111 kernel: add place_marker for sound card register
add place_marker for sound card register kpi measurement.

Change-Id: I527056593661ccb006b0be6119024afca5146d5e
2022-06-21 09:01:39 -07:00
lilong
a104ce9b9f asoc: SEC CLK enable
enable sec clock SEC TDM interface.

Change-Id: I35ee0064ae20b2423fc998c2b4bfedbea3b3b7a4
Signed-off-by: Long Li <quic_lonli@quicinc.com>
2022-06-21 08:03:12 +05:30
Joel Dey
501d8a3cf1 ASoC : Add new kcontrol for starting ASRC
- ASRC tinymix command is split into two. One for configuring and another for starting.
- assign correct asrc instance ID and asrc configs.
- Update correct asrc configs in get function to retrieve values each time.
- Handle multiple parameters from tinymix command by storing the values in global variable and enable asrc once all params are received.
- Fix port type assignment for ASRC.

Change-Id: Ic9d4477d7b04f12f5c62903d0f90e9d2d18cc1d9
Signed-off-by: Joel Dey <quic_jdey@quicinc.com>
2022-06-20 11:29:51 +05:30
Shuai Zhang
f29f6cfcad soc: swr-mstr-ctrl: Fix swr overflow for wsa
Add 500us delay to wait fifo availability.

Change-Id: Idea94f036f5758febecbf2e1e1c6dc900238ebfe
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-06-18 10:46:06 +05:30
Faiz Nabi Kuchay
26aeee1f6b audio-kernel: Disable clock voting logs
trace_printk is recommended for debugging purpose as it
requires temporary memory to handle strings. If used
anywhere within the kernel, memory will be allocated to it.
Hence removed it to avoid any unnecessary memory allocation.

Change-Id: If7b0cada91c97b21987f91e0ff7b7a15ce2145e2
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2022-06-14 15:03:01 +05:30
E V Ravi
fb552fcf0b asoc: 24 and 32bit format support for ASM loopback and playback
Add support for 24 and 32bit format for ASM loopback and playback
session.

Change-Id: Ieb6a6b2328fbe5d84b5b685ecc08adcd6638353c
Signed-off-by: E V Ravi <quic_evenka@quicinc.com>
2022-06-13 22:03:50 -07:00
qctecmdr
a0065850fd Merge "audio-kernal: Loading only Gen3 specific mixer controls for Gen3 boards" 2022-06-07 22:41:38 -07:00
Hexuan Zhu
9788285b6c config: remove unused conf for arauto
Change-Id: I7f5103f0b9372bd9abcfc21f2df1ca91ddf0d280
Signed-off-by: Hexuan Zhu<quic_hexuzhu@quicinc.com>
2022-06-06 23:27:33 -07:00
Kogara Naveen Kumar
eefcfb1cd2 audio-kernal: Loading only Gen3 specific mixer controls for Gen3 boards
Changes to prevent loading of Gen4 specific mixer controls on Gen3 boards.

Change-Id: I851da6feb75a0fc2080ed37853312b779b946c40
2022-06-02 21:52:11 +05:30
Sitong Chen
c9ab2aa2d5 kernel: add place_marker for sound card register
Add place_marker to monitor and record key events and measure the duration

Change-Id: I1a96ffff283f61fcdddffdfa9f0f0132091b9fd8
Signed-off-by: Sitong Chen <quic_sitochen@quicinc.com>
2022-06-02 06:46:59 -07:00
Sitong
86f3ddf9cf kernel: Add notifier for SSR
Add support for  subsystem register in audioreach dummy driver.
This will receive SSR events and will update soundcard status

Change-Id:I97392800eaf5cd22f6bfdea76bd16951976a9233
2022-06-02 18:46:16 +08:00
Dechen Chai
29b346368f asoc: kona: check if codec is enabled
Add support to check if a codec is enabled/disabled in
device tree. Some codecs can be disabled on some platforms
while being enabled on others, so before registering with
sound card check if a codec is enabled.

Change-Id: Iba521889febe1f248365513efa6985d57da73876
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-05-22 19:32:17 -07:00
qctecmdr
8aae0b3532 Merge "asoc: kona: Add wsa8815 codec and wsa883x codec init" 2022-05-22 11:20:22 -07:00
qctecmdr
29995d07fe Merge "asoc: update port config for kona." 2022-05-22 11:20:22 -07:00
qctecmdr
cc6bbf0434 Merge "asoc: Update dai link for wsa codec dai." 2022-05-22 11:20:22 -07:00
qctecmdr
a300875e9f Merge "Asoc: check for invalid voice session id" 2022-05-22 11:20:22 -07:00
qctecmdr
3758d5c8b6 Merge "soc: wsa881x: move analog init complete flag" 2022-05-22 11:20:22 -07:00
qctecmdr
38ba71029e Merge "config: Enable digital codec resource manager config" 2022-05-22 11:20:22 -07:00
Dechen Chai
845e53b3a4 asoc: kona: Add wsa8815 codec and wsa883x codec init
Add wsa8815 codec and wsa883x codec init.
wsa8815 component name is wsa-codec.3 and wsa-codec.4.

Change-Id: I2f71eb92978a9e53356d998abb95806731082148
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-05-18 17:21:17 +05:30
Jing Wang
c781ff0891 Asoc: check for invalid voice session id
Add check to return if session id is invalid.

Change-Id: Id156612a341a370529945aa7ac9ea01fb8796f4f
Signed-off-by: Jing Wang <quic_jingwa@quicinc.com>
2022-05-18 03:48:39 -07:00
Dechen Chai
779bf54fff asoc: update port config for kona.
update port config for kona.

Change-Id: Ic18cb956f902329b50f0f4b4bf508f8d5b350cb2
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-05-18 11:42:17 +05:30
Shuai Zhang
82037ebdad config: Enable digital codec resource manager config
Enable digital codec resource manager config for Talos.

Change-Id: I1f374217216069322a088f13f751f1dc8ef3bbaa
2022-05-17 01:51:04 -07:00
Kogara Naveen Kumar
69b18bb03c asoc: auto: send effect config based on apptype
Add support to configure a specific module and its parameter on adm
based on apptype. This can be used to dynamically configure a module
provided by application.

Change-Id: I09c41894cf98f37f9d451b1d61086b9c0d4dc250
2022-05-16 19:10:18 -07:00
qctecmdr
b3a157d968 Merge "Audio-kernel: Comparison of unsigned value" 2022-05-15 22:17:26 -07:00
qctecmdr
2908156b70 Merge "asoc : AFE Limiter module control" 2022-05-15 22:17:25 -07:00
Dechen Chai
7d924fc9d7 asoc: Update dai link for wsa codec dai.
wsa8815 using codec dai wsa-rx3 and wsa-rx4.
Add wsa8815 codec dai on dai link.

Change-Id: I11b892a92cf495085fc973381fcd0c000f3c04d4
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-05-13 12:54:33 +05:30
Shazmaan Ali
4de0f17990 asoc: codecs: Add nullptr check
fix for nullptr deref issue

Change-Id: I26acf2c5c696038c6d5c64d858174b2f2c58a7d3
Signed-off-by: Shazmaan Ali <quic_shazmaan@quicinc.com>
2022-05-11 06:27:07 -07:00
Kogara Naveen Kumar
a1f22acc7a Audio-kernel: Comparison of unsigned value
Make unsign value as sign value.

Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2022-05-10 17:25:07 +05:30
Kogara Naveen Kumar
45a98639bc asoc : AFE Limiter module control
Changes to control AFE Limiter module

Change-Id: I39afe44c821a26ad9688a4a8e440637f5e49b85f
2022-05-09 23:35:50 -07:00
Dechen Chai
b8b9622047 soc: wsa881x: move analog init complete flag
move judging analog init complete flag to the beginning of
wsa881x_probe function.Avoid processing the wsa component
until wsa analog client init complete.

Change-Id: I606d3378e8533572f3949026565f4aea9e90ea47
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-05-05 18:57:09 -07:00
qctecmdr
4baeac42b1 Merge "asoc: Update machine driver for kona" 2022-04-28 04:20:19 -07:00
Kogara Naveen Kumar
241968ed8a kernel: Check for buffer overflow and NULL pointer
Added check point for buffer overflow and NULL pointer.

Change-Id: Ie675de3ad7e30b53424b2333370d9216d4abdfca
Signed-off-by: Kogara Naveen Kumar <quic_nkogara@quicinc.com>
2022-04-27 00:24:52 -07:00
qctecmdr
efed2c1546 Merge "asoc: Disable chmixer override flag" 2022-04-26 23:21:30 -07:00
qctecmdr
efb79a9556 Merge "asoc: Add LLNP mode support" 2022-04-26 02:26:21 -07:00
qctecmdr
ea47c1defd Merge "ipc: apr: Add config to control the ipc context print" 2022-04-26 02:26:21 -07:00
qctecmdr
e19eabb1ea Merge "audio-kernel: add ar conf in makefie" 2022-04-26 02:26:19 -07:00
ftong
959e737031 asoc: Add LLNP mode support
Add LLNP mode support to enable ULL capture.

Change-Id: I25fa565a3a4c7e8925623402d45b3d25051dba4c
2022-04-19 15:04:43 +05:30
Dechen Chai
f6bee9a0da asoc: Update machine driver for kona
-Update machine driver on kernel-5.4 for kona.
-update and affine qos value.
-update wsa component init function.
-update rx_tx codec init function.
-remove msm_init_aux_dev function.

Change-Id: Id0934adcd0e41968d9f9f3c8341525f3a7152858
2022-04-15 08:18:57 +05:30
Soumya Managoli
21433bb50c ASoC: codecs: Force enable micbias standalone
Code to enable micbias standalone irrespective
of wcd enable or disable.

Change-Id: If2052fc690e5e1110ebdbf6f9c6dbafc3bc8c493
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-04-14 10:16:28 +05:30
Hexuan Zhu
a5cac99417 audio-kernel: add ar conf in makefie
Use CONFIG_SND_SOC_AR to load ar conf for audio kernel.

Change-Id:I2598d21b28cfd02083d42116dcab4f25800bd089
Signed-off-by: Hexuan Zhu <quic_hexuzhu@quicinc.com>
2022-04-13 16:16:50 +08:00
fei tong
d728324529 ipc: apr: Add config to control the ipc context print
Add CONFIG_IPC_LOGGING block for the code that initialize the logging context.

Change-Id: Ia5d8e5a579573e0ebce65ceb5798a7c2e0fd333f
Signed-off-by: ftong <quic_ftong@quicinc.com>
2022-04-13 14:29:59 +08:00