Commit Graph

10 Commits

Author SHA1 Message Date
Vignesh Kulothungan
7da74cbc8a ASoC: codecs: add device down ops for swr dmic
When SSR/PDR occurs during record usecase, swr dmic's need
to be shutdown before WCD938x is set to reset low, since swr dmic's
depend on WCD938x for mic bias.
The swr dmic's are shutdown from sound wire master
control during SSR/PDR via driver ops, before WCD938x is shutdown.

Change-Id: I987833b7f44692ff4c91954d65623a17f6b0abdc
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-05-01 01:43:25 -07:00
Vignesh Kulothungan
fca013355e ASoC: codecs: check component pointer before use
Add NULL check for swr dmic component pointer before
using it.

CRs-Fixed: 2666974
Change-Id: I25c14c17f820ce3be7e1c7d892a2c0e29ac2b9fc
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-04-21 11:38:34 -07:00
Vignesh Kulothungan
3b2c9ef792 ASoC: codecs: remove swr dmic driver ops
Remove soundwire driver ops to avoid deadlock during audio 
sub system restart. 
Handle SWR DMICs enable/disable during usecase.

CRs-Fixed: 2648763
Change-Id: I73cc95ae389da9dee742544f29ceca9d9b7ac9c6
2020-04-02 17:38:04 -07:00
Vignesh Kulothungan
4fd97a1e75 ASoC: codecs: Add swr dmic as multi codec
Add codec backend dai for soundwire dmic's.
Add swr dmic as multi codec

CRs-Fixed: 2600577
Change-Id: I6d6f812d702c1422752e2841bfcad6495e388aad
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-26 22:39:19 -07:00
Sudheer Papothi
18b86a5360 ASoC: swr-dmic: Update audio capture sequence
Update audio capture sequence to avoid multiple bank switches
during multi mic usecase that helps in reducing the latency
for path setup.

Change-Id: Idac8bca97b3503cdbf82bb482e8a297a1fd20893
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-03-24 05:04:11 +05:30
Vignesh Kulothungan
5bf4532a61 ASoC: codecs: disable supply after successful probe
Since clock stop mode is supported, disable mic bias supply
after a successful dmic probe.

Change-Id: I1a545969601367cc22844d1ab8467fb3722d882f
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-27 23:08:29 -08:00
Vignesh Kulothungan
84bb791c34 ASoC: codecs: remove dmic device during dev err
Remove sound wire dmic device from master device list only during
critical error and not for probe defer.

Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-19 16:20:10 -08:00
Sudheer Papothi
34e6984323 ASoC: swr-dmics: Enable soundwire DMICs on lahaina
Soundwire DMICs provide the same quality as regular DMICs but
the interface is soundwire. This reduces the number of pins
on the MSM. Enable soundwire DMICs on lahaina.

Change-Id: I4245369fdcb29cf96f315ebc1d2e9a83a0fbc14b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-18 14:01:42 -08:00
Karthikeyan Mani
1d5de9e7b5 asoc: codecs: swr-dmic: Enable swr dmic supply
Supply for swr dmic is from wcd mic bias.
Enable the power supply by calling corresponding
interfaces from cdc supply driver.

Change-Id: I9db6a4799ebfdd974d9e12c47053d8d73da2b883
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-28 21:51:56 -08:00
Karthikeyan Mani
daef08854a asoc: codecs: Add swr dmic codec
Add initial changes for supporting swr dmic
where each codec can support single mic recording
over soundwire port.

Change-Id: I0319bfb5c850d48b563f46d5dd77f21d4a83f029
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-10 17:24:14 +05:30