Commit graph

3,350 commits

Author SHA1 Message Date
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 <[email protected]>
2020-08-24 14:05:31 +05:30
Meng Wang
5dfbf073be soc: swr-slave: update swr config for SWR DMIC
Update soundwire slave config for SWR DMIC QMIC recording.

Change-Id: I988c022cbb019bd6718cd7fbed46b1ccbcf97c5d
Signed-off-by: Meng Wang <[email protected]>
2020-08-21 14:55:54 +08:00
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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
qctecmdr
b22340a058 Merge "ASoC: tx-macro: Allow regcache sync during clock enablement" 2020-08-17 01:44:19 -07:00
qctecmdr
f5c694ecab Merge "ASoC: lahaina: add support for CPS speaker protection" 2020-08-17 01:44:19 -07:00
qctecmdr
825b7bc047 Merge "soc: update wake interrupt check condition" 2020-08-17 01:44:19 -07:00
qctecmdr
86cd0592ca Merge "ASoC: lahaina: Update soundwire frame configuration" 2020-08-17 01:44:19 -07:00
qctecmdr
bf2ed67124 Merge "ASoC: msm: PP event handling support for loopback driver" 2020-08-17 01:44:19 -07:00
qctecmdr
c8504bf1f2 Merge "asoc: Register widgets and intercons only when supported" 2020-08-17 01:44:19 -07:00
qctecmdr
afeef6357c Merge "asoc: bolero: add SWR MIC registers as volatile" 2020-08-17 01:44:19 -07:00
Meng Wang
9ebe2c724a asoc: wsa883x: remove default value setting for WSA883X_OVERRIDE2
Updating WSA883X_OVERRIDE2 default value to 0x02 breaks
speaker protection. Revert the default value update.

Change-Id: I064157a718d87b2903c10dc78e0ce99ce400b6d8
Signed-off-by: Meng Wang <[email protected]>
2020-08-17 09:21:45 +08:00
Sanjana B
afcc911b4e dsp: add support for SVA to use afe topology deregister
To handle erroneous scenario when audio afe driver registers
a FFNS topology in non-island mode instead of island mode,
add capability for audio afe driver to deregister previously
created topology before registering a new topology for SVA.

Change-Id: Iff871da998847ea5d3bcee417c780b8acaf70ca3
Signed-off-by: Sanjana B <[email protected]>
Signed-off-by: Xiaoyu Ye <[email protected]>
2020-08-13 18:24:08 -07:00
Vignesh Kulothungan
6840c7f5d7 soc: soundwire: add slave frame config for receiver mic
Add soundwire port parameters for receiver mic
using 4.8MHZ bus clock.

Change-Id: I207f07c99a79e1061dd5902cbba07cae6ca597f3
Signed-off-by: Vignesh Kulothungan <[email protected]>
2020-08-13 17:34:17 -07:00
Sudheer Papothi
9654ef28aa soc: soundwire: support multi soundwire devices configuration
Update frame shape configuration to support multi soundwire devices
attaching to a single controller.

Change-Id: I7c59b1b09aa0c2417f888b382f8de943f7b62bbd
Signed-off-by: Sudheer Papothi <[email protected]>
2020-08-13 15:50:53 -07:00
Sudheer Papothi
e2abf6fc7a ASoC: wcd938x: Update the soundwire clock rate based on the tx paths
Update the soundwire clock rate based on the number of TX paths enable
to avoid noise issue.

Change-Id: I8c73bfd73751d4b79de30f3347081929501a877e
Signed-off-by: Sudheer Papothi <[email protected]>
2020-08-13 12:06:52 +05:30
Derek Chen
b7bf0563f0 ASoC: msm: PP event handling support for loopback driver
Adding mixer controls for supporting PP evnets in
loopback driver.

Change-Id: Iea9de0f8a7b5661c62953d23879f798af9819487
Signed-off-by: Derek Chen <[email protected]>
2020-08-11 13:17:17 -07:00
Vignesh Kulothungan
7902b497b5 ASoC: lahaina: add support for CPS speaker protection
Add support to parse static cps configuration from dt.
Add support to send cps configuration for speaker protection
usecases.

Change-Id: I0166a378f24cedef07393bdbb8618df944c62984
Signed-off-by: Vignesh Kulothungan <[email protected]>
2020-08-11 10:02:39 -07:00
Harshal Ahire
55f6312086 asoc: Register widgets and intercons only when supported
Register for the widgets and interconnections in routing
driver only when the respective interfaces are supported.
Add config based approach for TDM, AUXPCM and MI2S interfaces.

Change-Id: I2b76e295d7cafde6062a3e0afbe7f25721fa9cca
Signed-off-by: Harshal Ahire <[email protected]>
2020-08-11 08:59:22 -07:00
qctecmdr
4e3e8f9ffd Merge "asoc: add dai-link media31/32/33/34 for auto targets" 2020-08-11 05:57:23 -07:00
qctecmdr
98e5a40f8c Merge "asoc: Fix dailink init function in holi machine driver" 2020-08-11 05:57:23 -07:00
qctecmdr
2bfeb59e51 Merge "asoc: update the wsa entry in dai link header" 2020-08-11 05:57:23 -07:00
qctecmdr
72ca37fcba Merge "asoc: wsa881x: Fix wsa881x name prefix property read" 2020-08-11 05:57:23 -07:00
qctecmdr
4adf93dd63 Merge "ASoC: swr-dmic: Update sequence for voice activation usecase" 2020-08-11 05:57:23 -07:00
qctecmdr
bdda8db410 Merge "dsp: Add support for GET_PARAMS" 2020-08-11 05:57:23 -07:00
George Gao
0be9048845 asoc: lahaina: use new pm_qos API to let audio ULL run on core 1&2 for concurrency usecases
This change ensure all concurrent low latency/ultra low latency use cases run on core 1 and 2.

Change-Id: I83456a992d1de748854308f3efc7555b3ca9aaad
Signed-off-by: George Gao <[email protected]>
2020-08-10 22:18:20 -07:00
Laxminath Kasam
214f88cc12 asoc: wcd938x: Update SWR clock rate based on modes
Update SWR clock rate based on active ADC modes
for concurrency during powerup and teardown.

Change-Id: I610aa205a857a5fac2163a248de4800f3c8042f7
Signed-off-by: Laxminath Kasam <[email protected]>
2020-08-11 08:54:31 +08:00
Sudheer Papothi
54b9ee2e2e ASoC: lahaina: Update soundwire frame configuration
Update soundwire frame configuration to support audio capture
and voice activation concurrencies.

Change-Id: I0c20bc0514ed08c04fdccb888311ba74743117f4
Signed-off-by: Sudheer Papothi <[email protected]>
2020-08-11 05:00:37 +05:30
Vignesh Kulothungan
3fa8c9411f dsp: add afe function to send cps configuration
Define cps hw interface configuration structures.
Add AFE_PARAM_ID_CPS_LPASS_HW_INTF_CFG parameter id.
Add a function to send afe cps speaker protection
configuration.

Change-Id: I865e9981b6dd1da4b9ef1a3e18be82cea2996309
Signed-off-by: Vignesh Kulothungan <[email protected]>
2020-08-10 16:12:04 -07:00
Vatsal Bucha
560fe2bc62 ASoC: rouleur-mbhc: Fix impedance detection issue on rouleur
Impedance values are not correct sometimes due to ramp
being controlled by hw. Run detection routine for sometime
and take final value as impedance value to resolve issue.

Change-Id: I3a34813657751aa304e150cfa294a42f556d06c4
Signed-off-by: Vatsal Bucha <[email protected]>
2020-08-10 18:50:58 +05:30
Kunlei Zhang
13803a3ca6 dsp: adm: change channel number for AUDIO_RX_MONO_VOIP module
AUDIO_RX_MONO_VOIP module in COPreP topology doesn't support
stereo input. Update channel number to mono for
AUDIO_RX_MONO_VOIP_COPP_TOPOLOGY.

Change-Id: I23632808cfcf82496f0e8f9618e28915974fc584
Signed-off-by: Kunlei Zhang <[email protected]>
2020-08-10 18:12:36 +08:00
Xiaojun Sang
67e19082df AsoC: lahaina: support right speaker as mono device
Current design assumes mono device uses left speaker.
Modify the logic to remove the limitation.

Change-Id: I6a7cd2b14ed5a4c10106593fe707a449d05efe48
Signed-off-by: Xiaojun Sang <[email protected]>
2020-08-10 15:50:00 +08:00
Vignesh Kulothungan
912fd67d6c ASoC: wsa883x: add function to get swr device number
Add a function in wsa883x which returns the sound wire
device number for a given wsa883x codec slave instance.

Change-Id: Ie3d0e309870f488b1643a853bcddcf93314d94b5
Signed-off-by: Vignesh Kulothungan <[email protected]>
2020-08-07 11:37:27 -07:00