Commit graph

4,020 commits

Author SHA1 Message Date
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
qctecmdr
3fc201fdf1 Merge "ASoC: wcd937x: Add check for ULP irrespective of the Class" 2022-04-11 04:35:52 -07:00
qctecmdr
61d08bd00a Merge "asoc: msm-pcm-routing: Assign default topology when app_type is zero" 2022-04-11 04:35:52 -07:00
qctecmdr
97b079fc9d Merge "asoc: wsa881x: Fix panic on stress reboot" 2022-04-11 04:35:52 -07:00
qctecmdr
3c2469c9c4 Merge "asoc: sm6150: change msm_wcn_be_dai_links name" 2022-04-11 04:35:51 -07:00
Abhinav Gaur
4ea24157b3 asoc: Disable chmixer override flag
Disable chmixer override flag to prevent override of
chmixer configurations by playback set channel map call.

Signed-off-by: Abhinav Gaur <quic_abhigaur@quicinc.com>
2022-04-11 15:03:50 +05:30
E V Ravi
4ea134d031 asoc: get and put for SEC_TDM_RX_0/TX_0 ADM channels
Enables get/put for SEC_TDM_RX_0/TX_0 ADM channels.

Change-Id: Idb38903e5e7cc1af64735e2cd62a2b6cda8cb22e
Signed-off-by: E V Ravi <quic_evenka@quicinc.com>
2022-04-07 14:17:16 +05:30
Arungopal Kondaveeti
1bda71f4ff asoc: msm-pcm-routing: Assign default topology when app_type is zero
In normal cases audio hal will sent  proper ACDB and APP type values
but in some cases if app type becomes zero.Assign default topology
when app_type is zero.

Change-Id: Id588308650f823f7d94ffb1fd2d7656d4bcf9cb2
Signed-off-by: Arungopal Kondaveeti <quic_kondavee@quicinc.com>
2022-04-06 10:39:56 +05:30
Faiz Nabi Kuchay
2812ff7a96 ASoC: wcd937x: Add check for ULP irrespective of the Class
Add check for ULP mode irrespective of the Class to update
QCRG sequence.

Change-Id: Ie314aec147083df2b7db3e2769e3ff652d13c7de
2022-04-05 15:02:55 +05:30
qctecmdr
9c2238e1ab Merge "ASoC: optimize automotive routing drivers" 2022-04-01 03:51:38 -07:00
qctecmdr
061e05e781 Merge "asoc: reduce HS TDM widget connection when it's disabled" 2022-03-31 22:14:05 -07:00
qctecmdr
eb9e398b56 Merge "ASOC: update sm6150 machine driver" 2022-03-31 22:14:05 -07:00
qctecmdr
0cab313bf2 Merge "ASOC: talos: update dai-link port-config for talos" 2022-03-31 22:14:05 -07:00
qctecmdr
43c1ed7e71 Merge "asoc: codec: Fix error makefile: Fix error and add version information" 2022-03-31 22:14:04 -07:00
qctecmdr
42c2b29a19 Merge "asoc: add afe limiter disable kcontrol and fix ULLPP index mismatch" 2022-03-31 22:14:04 -07:00
qctecmdr
5aab579259 Merge "Revert "ASOC: Disable Temperature sensor of WSA881x for bengal"" 2022-03-31 22:14:04 -07:00
Abhinav Gaur
3831a37a08 ASoC: optimize automotive routing drivers
remove non-automotive dapm widgets, kcontrols and dapm
routes for boot KPI optimization.

Change-Id: Id494508c2cfb4c4bca58a7fbe0ed4c63c2e8cd38

Signed-off-by: Abhinav Gaur <quic_abhigaur@quicinc.com>
2022-03-31 01:13:38 -07:00
Abhinav Gaur
4dad88ac99 ASOC: automotive routing drivers base version
Branch out from mainline and create separate routing driver
for automotive platform for boot KPI optimization.

Parent commit id for the base routing driver version for
tracking purpose : commit dd9977f073

Change-Id: I64b89bafb304d403efd08850a72830100939c3ba
Signed-off-by: Abhinav Gaur <quic_abhigaur@quicinc.com>
2022-03-31 00:06:00 -07:00
Xu,Baochu
34b8f2e9bd asoc: wsa881x: Fix panic on stress reboot
Fix panic issue on stress reboot test.
1. Change waiting flag to indicate analog client device init completely.
The new waiting flag can guarantee the analog client pointer is initilized.
2. Exit with EPROBE_DEFER while timeout on waiting flag.
There is low frequency that sound card and analog client device go
into same deffer probe worker. In this case, analog client device will not be
probed till sound card devie probed. Then, sound card probe function
call analog client device to get temparatue, this caused null pointer
panic.

Change-Id: Ib0e078e5591e14e5cdb69875213b8e7d403e559b
2022-03-30 16:17:33 +08:00
qctecmdr
940fa8c34b Merge "dsp: lower the log lever of ADSP_EALREADY" 2022-03-29 10:47:13 -07:00