Commit graph

3,951 commits

Author SHA1 Message Date
Dechen Chai
268b2ba14e Revert "ASOC: Disable Temperature sensor of WSA881x for bengal"
This reverts commit d1644ff55d.

Change-Id: Iac9a0d8128bbce516ea147a70f0266d256a0f3c3
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-03-29 17:25:05 +05:30
Faiz Nabi Kuchay
c30a0cf98d ASoC: wcd937x: Update QCRG sequence for wcd937x
Update QCRG sequence for wcd937x.

Change-Id: I039a8b2dc74c34722b6c81bab429dee6326ec362
2022-03-21 23:43:32 -07:00
qctecmdr
f374586dc0 Merge "soc: swr-mstr-ctrl: Fix SWR cmd FIFO overflow error" 2022-03-12 09:42:03 -08:00
qctecmdr
4927bf3073 Merge "ASOC: talos: update dai-link port-config for talos" 2022-03-12 09:42:03 -08:00
qctecmdr
01a805eb78 Merge "asoc: codec: Fix CFI error caused by missing members" 2022-03-12 09:42:03 -08:00
qctecmdr
d8d15d342c Merge "makefile: add config support for audio techpack for QCS610" 2022-03-12 09:42:03 -08:00
qctecmdr
dc60802e3e Merge "ASOC: ext-clk: Fix hw init issue caused by CLK upgrade" 2022-03-12 09:42:03 -08:00
qctecmdr
ef77b7d3f1 Merge "ASoC: wcd-spi: Fix dma alloc compilation errors" 2022-03-12 09:42:02 -08:00
qctecmdr
443a89f7e6 Merge "asoc: wcd937x: update mic bias registers for new fab" 2022-03-12 09:42:02 -08:00
Vangala, Amarnath
71239c6f0e asoc: wcd937x: update mic bias registers for new fab
Update micbias register fields for new fab id of tanggu.

Change-Id: I4974acebcb08de6b78f6ff5a90ed401e276c59f7
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2022-03-09 08:15:38 +05:30
Shuai Zhang
4b7b52fb97 ASOC: talos: update dai-link port-config for talos
Add a new dai-link definition for talos.
Add a new soundwire port config for talos.

Change-Id: I4a96db4ec14d263372d154d7bc3203b0e3d95db8
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-08 18:11:18 -08:00
Shuai Zhang
a977db965d asoc: codec: Fix CFI error caused by missing members
Fix CFI error caused by missing member of wcd_swr_ctrl_platform_data.

Change-Id: I6991d2b15867a1a7cff7a4495b41745f261eba4c
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-07 17:44:29 -08:00
Shuai Zhang
374b84c9b5 ASOC: update wcd934x codec driver
Compile wcd934x driver for sm6150.

Change-Id: Ia0f41d6f1de03ec41cddb0bc1cef5d62ac815cdf
2022-03-07 15:47:31 +05:30
Shuai Zhang
0ac76a1d7a ASOC: update sm6150 machine driver
Update machine driver for sm6150.
Compile wsa881x digital driver for sm6150.

Change-Id: I46e0ef5ffa773e2c8e4b9fe3cf8819ac32f303d5
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-07 15:43:41 +05:30
Shuai Zhang
21474dc6d7 ASoC: wcd-spi: Fix dma alloc compilation errors
Fix dma_alloc_coherent compilation errors, using the new API

Change-Id: I2188c9ab34e5c02cebc0f86a53e3f810aefc6caf
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-07 13:24:51 +05:30
Shuai Zhang
4ec279c7cb makefile: add config support for audio techpack for QCS610
Add required changes to makefile and enable the config
keys for QCS610 target cpmpilation.

Change-Id: I8ef55e9b237f10ae0d240d83c685f5580a939be3
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-07 13:17:54 +05:30
Shuai Zhang
10e5816d4a ASoC: codecs: wsa881x: add codec dai for each wsa881x
Add new codec dai for each wsa881x, since each WSA is
initialized as a codec and not as aux device.

Change-Id: Ifee063cea54a65600d9040390666d58de49a0689
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-07 13:06:57 +05:30
Shuai Zhang
31b7445e17 soc: swr-mstr-ctrl: Fix SWR cmd FIFO overflow error
Fix SWR cmd FIFO overflow error.
In 5.4 kernel there are few additional register writes added in soundwire driver,
one of the register(SWRS_DP_SAMPLE_CONTROL_2_BANK) write is causing overflow error.

Change-Id: I31f4855af52b24ceac53f55010ce1935c3bc1ea6
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-07 12:50:23 +05:30
Shuai Zhang
7696eb78b6 ASOC: ext-clk: Fix hw init issue caused by CLK upgrade
CLK driver upgrade causes hw->init to be NULL.
Unable to get hw->init from CLK core.
Modify to obtain hw->init from local static data.

Change-Id: I2ffc3e7dfd356cfcb2735336dd67ff70a35328c4
Signed-off-by: Shuai Zhang <quic_shuzhan@quicinc.com>
2022-03-04 14:11:09 +05:30
qctecmdr
389f9c7901 Merge "msm-audio: adding mixer control for soft step volume params" 2022-03-03 19:42:33 -08:00
qctecmdr
d68211869e Merge "asoc: Set clock index correctly in mi2s slave mode" 2022-03-03 19:42:33 -08:00
qctecmdr
c77b8aacef Merge "asoc:msm-lsm-client: potential deadlock fix" 2022-03-03 19:42:33 -08:00
Aditya Bavanari
1e417536ee asoc: Set clock index correctly in mi2s slave mode
When msm acts as slave mode in mi2s, clock ID for a
clock index is not properly updated for first time.
Fix the sequence issue to update clock ID accordingly
for slave mode.

Change-Id: Ie601547e8a5677ee778ff707f55e2d861a35f459
Signed-off-by: Aditya Bavanari <quic_abavanar@quicinc.com>
2022-03-02 17:48:39 +05:30
ftong
4a7f98b01c asoc:msm-lsm-client: potential deadlock fix
After acquiring spinlock, if memory allocation fails, the spinlock is
not released, thus inducing a potential deadlock.

Change-Id: I8d390437a00b8a9ca2cb216f47434a0448506e1f
Signed-off-by: ftong <quic_ftong@quicinc.com>
2022-03-02 14:27:22 +08:00
Krishna Kishor Jha
91c556699a msm-audio: adding mixer control for soft step volume params
adding new mixer control for set/get soft step volume module params
values. This command is attached to FE DAI.

Change-Id: I2572d6abe48dcb4d1fb685b5e9c0695fe83cc88a
Signed-off-by: Krishna Kishor Jha <quic_kkishorj@quicinc.com>
2022-02-28 21:41:55 -08:00
Huicheng Liu
2899520da5 asoc: Enable all LPAIF interface
Enable all LPAIF interface

Change-Id: I3f70cda077e6600785a8e706246d3ad3820e51ac
Signed-off-by: Huicheng Liu <quic_huicliu@quicinc.com>
2022-02-28 15:13:56 -05:00
qctecmdr
dd9977f073 Merge "ASoC: msm: extend app type cfg mixer command with copp mode" 2022-02-27 21:52:01 -08:00
qctecmdr
f9c632848a Merge "asoc: refine dummy machine driver for gen3" 2022-02-27 21:52:01 -08:00
qctecmdr
fca11ecee6 Merge "ASoC: bitra: Add support for VI sense backend" 2022-02-27 21:52:01 -08:00
qctecmdr
1a25f6d0d8 Merge "asoc: afe: Add afe dyn mclk kcontrol" 2022-02-27 21:52:01 -08:00
Jing Wang
c11441a914 asoc: afe: Add afe dyn mclk kcontrol
Add afe dyn mclk kcontrol to support change external clk.

Change-Id: I90f0a4a6a350ec261f216aa53bfa2f7306987bc1
Signed-off-by: Jing Wang <quic_jingwa@quicinc.com>
2022-02-23 16:15:55 +05:30
Dechen Chai
d1644ff55d ASOC: Disable Temperature sensor of WSA881x for bengal
-Temperature sensor of WSA881x is not used in bengal
Hence disable compilation.
-Initialize temp_val before use for wsa881x-analog.

Change-Id: Ibfb2fdfabdba7acfad3f65911b89d007a0711f08
Signed-off-by: Dechen Chai <quic_dchai@quicinc.com>
2022-02-23 08:26:50 +05:30
Hugh Guan
2b934435f6 asoc: refine dummy machine driver for gen3
Enable all LPAIF for gen3 dummy machine driver.

Change-Id: I4e1f128e8f4283fa2ffbce981115201d8d50e38b
Signed-off-by: Hugh Guan <quic_hhguan@quicinc.com>
2022-02-18 11:43:49 -08:00
Hongtao Peng
5e85dafc9c ASoC: msm: extend app type cfg mixer command with copp mode
ADM can be opened with different perf mode with ASM

Change-Id: I22c50ae57c1e1f9ee9a0b080a20bde5b4f50d06c
Signed-off-by: Hongtao Peng <quic_hongtaop@quicinc.com>
2022-02-17 14:50:43 +08:00
Lakshman Chaluvaraju
3aa09a8758 ASoC: bitra: Add support for VI sense backend
Add changes for VI sense WSA_CDC_DMA_TX_0 as backend
dailink to support recording of VI sense data.

Change-Id: I6f0911c9a2b5b20ce3b4f099f93ad3fed3cff886
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2022-02-11 00:07:18 -08:00
qctecmdr
3f10f8fe5f Merge "ASoC : add support for MultiMedia17" 2022-02-08 08:55:42 -08:00
qctecmdr
5db1ae069a Merge "dsp: Update adsp packet timeout in voice drv" 2022-01-31 20:57:27 -08:00
qctecmdr
e14d20f9dc Merge "asoc: copyright fix" 2022-01-31 00:23:01 -08:00
qctecmdr
1e8a61febc Merge "ASoC: Unmap lab buffer during listen session close" 2022-01-26 21:07:15 -08:00
qctecmdr
c3b12413d6 Merge "audio-kernel: change the maxnum for stream in QACT" 2022-01-26 21:07:15 -08:00
Deru Wang
47e815e52b asoc: copyright fix
Revert LF copyright and add QUIC copyright for change
3943882

Change-Id: I986ff4a667c653c5b8870e98655d9578d0fccf0b
Signed-off-by: Deru Wang <quic_deruwang@quicinc.com>
2022-01-25 14:51:40 +08:00
E V Ravi
f72f1bcfda ASoC : add support for MultiMedia17
Support for MultiMedia17 to be used with TERT_TDM_TX_0

Change-Id: Id98a1a206f8beac79bc00972e72a158064365d0a
Signed-off-by: E V Ravi <quic_evenka@quicinc.com>
2022-01-24 00:59:50 -08:00
Soumya Managoli
5147ab5a87 dsp: Update adsp packet timeout in voice drv
Change TIMEOUT_MS from 300 to 1000 msec
in q6voice drv.

Change-Id: I383380dfbb5334a32c5c939a67606612344170ee
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-01-24 13:48:53 +05:30
qctecmdr
8087503564 Merge "ASoc: bolero: update logic to disable VA_MCLK" 2022-01-18 22:09:08 -08:00
Soumya Managoli
092ce1cc5c ASoC: Unmap lab buffer during listen session close
Ensure lab buffer de-alloc even if listen session
is not in start state to avoid memory leak
when multiple listen clients are created.

Change-Id: Id6d8b37a3dcdf49618ae2a4d80903d429393cd8e
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-01-18 17:12:25 +05:30
Hexuan Zhu
0e1992003d audio-kernel: change the maxnum for stream in QACT
Increase the max num for QACT stream, should merge
together with 3931333

Change-Id: I4bdd9589be6821f7a44f8c89570b811b6fc03786
Signed-off-by: Hexuan Zhu <quic_hexuzhu@quicinc.com>
2022-01-17 17:01:31 -08:00
Deru Wang
9a2dd3bd1d asoc: set default value for port_id of logging kcontrol
Uninitialized values may cause the get function
of logging kcontrol to exit abnormally with error on
auto LA platform.

Change-Id: Id1f91a5454daafe499211763e26572bfe5dcbd47
Signed-off-by: Deru Wang <quic_deruwang@quicinc.com>
2022-01-12 16:47:53 +08:00
Soumya Managoli
22110db92c ASoc: bolero: update logic to disable VA_MCLK
When adsp SSR happens, VA_MCLK enabled by VA_SWR_PWR widget will
not be disabled as ADSP is down and it cannot enable TX_MCLk before
disabling VA_MCLK. After disabling SVA, VA_MCLk is left open.
Add dev_up flag to indicate SSR and close VA_MCLK during SSR.

Change-Id: I4cd08419be4035e2f337ab41348a814534480db6
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-01-10 11:04:26 +05:30
Soumya Managoli
7743f757cb ASoC: bolero: Disable va_swr gpio on clk failure
During SSR TX_MCLK failure is observed when both SVA
and playback is active. Mute is observed post SSR
even though there is no clk enable failure.

Issue is seen due to va_swr gpio not being disabled
during SSR and hence not enabled properly once uc
resumes after SSR.

Change-Id: I674bbc80edaaa35b53855166156dba41a32ef45d
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2022-01-05 15:00:24 +05:30
qctecmdr
bd9de2dd82 Merge "dsp: add new boot cmd for early audio" 2022-01-02 20:37:09 -08:00