Commit Graph

3279 Commits

Author SHA1 Message Date
qctecmdr
4716ce11df Merge "dsp: ensure unmap memory is called when PDR/SSR" 2020-09-01 18:11:51 -07:00
qctecmdr
9c3cdfae73 Merge "asoc: bolero: Update bolero version 2.0 entry" 2020-09-01 18:11:51 -07:00
qctecmdr
78ff42400c Merge "dsp: afe: send cps config after sending topology" 2020-09-01 18:11:50 -07:00
qctecmdr
b387595408 Merge "soc: swr-mstr: update component and interrupt enable sequence" 2020-08-29 00:30:36 -07:00
qctecmdr
d605e7c781 Merge "soc: swr: release transaction slot at failure" 2020-08-29 00:30:36 -07:00
qctecmdr
b6adfb5938 Merge "ipc: apr: set q6 state down when ECONNRESET from TAL" 2020-08-29 00:30:36 -07:00
qctecmdr
fc3cf7b6d9 Merge "config: Disable MI2S, TDM and AUXPCM interfaces for holi" 2020-08-29 00:30:36 -07:00
qctecmdr
183865e84d Merge "asoc: lahiana: update sequence to initialize bolero dai-links" 2020-08-29 00:30:36 -07:00
qctecmdr
46eb852298 Merge "ASoC: rouleur: Reduce PA Gain for low state of charge based on dt node" 2020-08-29 00:30:36 -07:00
Meng Wang
d13c31fb52 asoc: lahiana: update sequence to initialize bolero dai-links
When initializing RX_DMA_1, it would fail to find wsa-codec.1 and
fe_clients is not initialzed. When soc-pcm.c tries to access fe_clients,
kernel panic happens. Update sequence to initialize bolero dai-links.

Change-Id: I4791b08a913fafc5723cc676ff59b119a4cf2c80
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-28 13:36:03 +08:00
Laxminath Kasam
1cd5f3fe0b asoc: bolero: Update bolero version 2.0 entry
For get version info of bolero, update
bolero 2.0 entry.

Change-Id: I8f21b67eb6532c9b1c1ef6ab15015a29a4737db3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-27 22:27:31 -07:00
Vignesh Kulothungan
26c1ce2fb7 dsp: afe: send cps config after sending topology
Set params for a module should be done after sending
the topology information in which the module resides in.
Send cps configuration after sending afe topology.
Send cps configuration only for speaker protected usecases.

Change-Id: I89c7df9f0d70862813aa7a2bd1ea1afc2ddcc882
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-27 17:11:05 -07:00
Kunlei Zhang
048c3b9418 dsp: ensure unmap memory is called when PDR/SSR
During PDR/SSR, hyp assign is not called when stop
call in below cases:
1. cvs and mvm handle are not null
2. disable voice path failure during device switch

Fix it by ensuring unmap memory is called during
PDR/SSR.

Change-Id: I37b66a6f6dc29934dde0b0814ab44b784ebe2aea
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-08-27 19:38:13 +08:00
Aditya Bavanari
da6ab9bc62 config: Disable MI2S, TDM and AUXPCM interfaces for holi
Disable MI2S, TDM and AUXPCM interfaces as they are
unused for holi target. This will reduce the number of mixer
controls registered with asoc and improve the performance.

Change-Id: Icec543124401fc483b02b30c29ebbd293d766bc1
2020-08-25 21:56:06 -07:00
Xiaojun Sang
7eef74a32f soc: swr: release transaction slot at failure
Transaction slot is not freed when failure happens. Accumulated
error may lead to breach of transaction slot limit. Free the
transaction slot at failure.

Change-Id: I8588be18a820306d2a596fe2bf4a97346076b9b9
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-08-26 05:56:02 +08:00
qctecmdr
2e4a1a6396 Merge "asoc: Register widgets and intercons only when supported" 2020-08-25 11:21:18 -07:00
qctecmdr
9c206a0ce5 Merge "soc: update sample offset's for 4.8MHZ usecases" 2020-08-25 11:21:18 -07:00
qctecmdr
4761f68bd2 Merge "asoc: wcd937x: Update slvdevpath after connect_port in powerup" 2020-08-25 11:21:18 -07:00
qctecmdr
4b151cba32 Merge "soc: qcom: qdsp6v2: promote priority of apr_vm_cb_thread" 2020-08-25 11:21:17 -07:00
qctecmdr
f195f7057b Merge "soc: qcom: audio: remove unnecessary ack" 2020-08-25 11:21:17 -07:00
qctecmdr
911447121d Merge "asoc: swr-dmic: select correct port type for swr-dmic" 2020-08-25 11:21:17 -07:00
qctecmdr
e2e4119e33 Merge "asoc: holi: add wcd937x mbhc detection at probe" 2020-08-25 11:21:17 -07:00
qctecmdr
4156bf6e97 Merge "ASoC: msm: Add 44.1Khz and 96 Khz sample rate support for tdm group device" 2020-08-25 11:21:17 -07:00
qctecmdr
94c552c1c8 Merge "soc: swr-mstr: Fix headset detect issue due to master.num_dev not updated" 2020-08-25 11:21:17 -07:00
qctecmdr
5caa78db45 Merge "dsp: add support for SVA to use afe topology deregister" 2020-08-25 11:21:17 -07:00
Vatsal Bucha
7bc77136ad ASoC: rouleur: Reduce PA Gain for low state of charge based on dt node
Configure low PA Gain for low state of charge based on dt node.

Change-Id: I7f36cf4b17d9794a2763edc3c2fd5cec53a3521f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-25 15:57:02 +05:30
Meng Wang
a59433a484 soc: swr-mstr: update component and interrupt enable sequence
Enable component after enabling interrupt to avoid missing
some intterupt during master init.

Change-Id: I0f60c5431a815c58f878d3b9275a046e47939111
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-25 17:18:16 +08:00
qctecmdr
be8dfac3bf Merge "ASoC: wsa883x: enable vbat adc filter" 2020-08-24 20:25:19 -07:00
qctecmdr
48a6f44ed8 Merge "ASoC: mbhc: Call impedance detection routine before get impedance" 2020-08-24 20:25:19 -07:00
qctecmdr
db001f9b98 Merge "asoc: wsa883x: remove default value setting for WSA883X_OVERRIDE2" 2020-08-24 20:25:19 -07:00
Laxminath Kasam
35d2276eac ipc: apr: set q6 state down when ECONNRESET from TAL
When SSR happens, APR state can update to DOWN
immediately which ensures avoid continuous retry
for PCM open from userspace as audio clients check
APR state at pcm_open and return ENETRESET if
APR is down.

Change-Id: I60a6d217786b3d610b70adbd12d0e5f2a7c12205
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-24 14:05:31 +05:30
Vignesh Kulothungan
dab0a7d24c soc: update sample offset's for 4.8MHZ usecases
Update sample offset's of sound wire digital mics when running
at 4.8 MHZ. This affects single and dual mic usecases.

Change-Id: Id33635debd0444fa93d183dacd8d6419b23394fd
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-20 22:27:54 -07:00
Laxminath Kasam
070b18585e asoc: wcd937x: Update slvdevpath after connect_port in powerup
As ADC and MIXER dapm widgets powerup sequence in soc-dapm
got re-ordered, need update same in codec driver to handle
calls to soundwire.

Change-Id: Ibc99d21e29f9e9d7195b4ba8d4c995c46d6aef6f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-08-20 20:25:41 +05:30
Vatsal Bucha
892efe8d09 ASoC: mbhc: Call impedance detection routine before get impedance
Call impedance detection routine as part of callback to get impedance
before printing value of impedance.

Change-Id: I8b7174e4f7fd9c7715a2c12a0628c8f7849a93e6
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-20 19:33:33 +05:30
Harshal Ahire
5c1b4af595 asoc: Register widgets and intercons only when supported
Add pri_i2s_rx_mixer_controls and sec_i2s_rx_mixer_controls
to mi2s widgets array.

Change-Id: I653c15d4991de6307ab94eef284b5256b42fbdb7
2020-08-20 19:11:55 +05:30
Vatsal Bucha
1bd0eed253 soc: swr-mstr: Fix headset detect issue due to master.num_dev not updated
Headset is not detected sometimes due to master.num_dev not being
updated when we call GET_ENUM_SLAVE_STATUS as get_logical address
may not have been called. Also enable slave irq only when
swr wokeup from clk stop and not when master is already up.
This will prevent valid irq to be discarded as spurious irq.

Change-Id: I00284e9340668c853d0bd604fe66801118982780
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-20 18:53:13 +05:30
Meng Wang
23ee77a6d7 asoc: swr-dmic: select correct port type for swr-dmic
When same swr dmic is first enabled as HIFI, secondly as LP
and closed HIFI, it would disable LP port by mistake. Update
the logic to select correct port for swr-dmic.

Change-Id: I5d4d1461d8cd7db7bc7f37fc91ee1c9324413980
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-08-20 14:11:24 +08:00
Han Lu
6d78e2c24d soc: qcom: qdsp6v2: promote priority of apr_vm_cb_thread
The promoting is necessary to prevent audio tick noise under
heavy cpu loading.

Change-Id: I3fccb3b758b5fb5571031902344e542886b89209
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2020-08-19 19:33:12 -07:00
Han Lu
8ab5ee64d9 soc: qcom: audio: remove unnecessary ack
Remove send/check ACK in HAB communication, it consumes HAB bandwidth
without necessity. Remove it to improve audio performance.

Change-Id: Idee1d0276f40d463186e3caea6c4b28ef16ab67c
Signed-off-by: Han Lu <hanlu@codeaurora.org>
2020-08-19 19:32:20 -07:00
Vangala, Amarnath
cad43d67ca asoc: holi: add wcd937x mbhc detection at probe
Add support for wcd937x mbhc detetion at probe.

Change-Id: Ibcd04d2670ff1d9c8535d098e11f58448cf3c15e
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2020-08-19 02:39:22 +05:30
Vignesh Kulothungan
4b36a5da7b ASoC: wsa883x: enable vbat adc filter
Enable vbat adc filter inorder to read vbat and
temperature values for cps speaker protection.

Change-Id: I31c50bdd6ed0becae355600ba3cf48e761406d87
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-08-17 11:23:21 -07:00
Alexy Joseph
aaf6fa8396 ASoC: msm: Add 44.1Khz and 96 Khz sample rate support for tdm group device
Update tdm sample rate text and sample rate value/index mapping
functions to support 44.1Khz and 96 Khz rates

Change-Id: I72106dd342c7da84ad9c21674cacbfca680a7ba8
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2020-08-17 09:44:02 -07:00
qctecmdr
2711643ba7 Merge "soc: soundwire: add slave frame config for receiver mic" 2020-08-17 02:47:31 -07:00
qctecmdr
9b9eaec119 Merge "asoc: lahaina: add wcd_disabled check in late_probe" 2020-08-17 01:44:20 -07:00
qctecmdr
d9f2992429 Merge "soc: soundwire: support multi soundwire devices configuration" 2020-08-17 01:44:20 -07:00
qctecmdr
3a424302d9 Merge "ASoC: wcd938x: Update the soundwire clock rate based on the tx paths" 2020-08-17 01:44:20 -07:00
qctecmdr
b05b19a4d7 Merge "ASoC: rouleur-mbhc: Fix impedance detection issue on rouleur" 2020-08-17 01:44:20 -07:00
qctecmdr
694c6f67cc Merge "dsp: adm: change channel number for AUDIO_RX_MONO_VOIP module" 2020-08-17 01:44:20 -07:00
qctecmdr
4090b93397 Merge "asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases" 2020-08-17 01:44:19 -07:00
qctecmdr
f407fb795d Merge "AsoC: lahaina: support right speaker as mono device" 2020-08-17 01:44:19 -07:00