Commit Graph

919 Commits

Author SHA1 Message Date
Sudheer Papothi
c8231cf9e5 ASoC: wcd938x: Add micbias control API for SWR DMICs
Add micbias control API to enable SWR DMICs on lahaina target.

Change-Id: I48152971e1af8dedc98ada20e4e808cf18720869
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-18 10:56:54 +05:30
qctecmdr
d6db8c1cfc Merge "ASoC: bolero: Update TX HPF sequence for AMIC" 2020-02-17 02:58:03 -08:00
qctecmdr
38fbcf2e3f Merge "asoc: bolero: increase tx_mclk_users when enabling VA-MCLK" 2020-02-17 02:58:03 -08:00
qctecmdr
27b52591d3 Merge "asoc: mbhc: update mode for analog type-c headset check" 2020-02-11 21:22:12 -08:00
qctecmdr
5ad1b37c7f Merge "ASoC: lahaina: Update wsa883x aux codec configuration on lahaina" 2020-02-09 21:11:39 -08:00
Meng Wang
7f70656cc0 asoc: mbhc: update mode for analog type-c headset check
POWER_SUPPLY_TYPEC_SINK_AUDIO_ADAPTER is not supported on new
kernel-5.4. Update mode to TYPEC_ACCESSORY_AUDIO for analog
type-c headset.

Change-Id: Id46ea2eebea8257a48134431f07a81b6ed7e6c7d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-10 09:38:35 +08:00
Sudheer Papothi
b2d648baf0 ASoC: wcd938x: Update soundwire master channel type
Update soundwire master channel type properly before sending to
soundwire master.

Change-Id: I459c6e8d1cc688c3e6e5a0369e095f0b12fbb7c6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 14:35:00 +05:30
Sudheer Papothi
8972743568 ASoC: wsa883x: Disable interrupts during bootup
Disable interrupts while bringing codec out of reset to avoid fake
interrupts.

Change-Id: Iec1e6c67429b7424693c2628e6f6d121a4c9ce71
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 13:16:44 +05:30
Ramlal Karra
3e2c37d273 asoc: codecs: Add unified SWR Tx mapping support
Add dynamic port enablement for wcd938x and
wcd937x targets to support unified swr tx port
mapping added as part of SWR 1.6 updates.

Change-Id: If0cf823dc51028fd5bd95f5a49ffe05998526be6
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-02-05 09:56:57 -08:00
Sudheer Papothi
4d1a9042f2 ASoC: bolero: Update TX HPF sequence for AMIC
Update TX HPF sequence for AMIC to avoid pop during
audio capture.

Change-Id: Ib70fc5cd05f67c97977db96487294bfe14f554ad
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-04 18:42:23 -08:00
Meng Wang
1bcddfb114 asoc: bolero: increase tx_mclk_users when enabling VA-MCLK
When enabling SVA, tx_mclk_users is not increased. If starting
and stopping recording after enabling SVA, tx_mclk will be closed
when powering down tx mclk widget. Increase tx_mclk_users when
enabling VA_MCLK to avoid mismatch.

Change-Id: I02d9400cf7309464bbba1e6749cfcfcf99f5876a
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-04 18:37:01 -08:00
Sudheer Papothi
265ff04ddc ASoC: bolero: Add support for bolero v2.0 hardware
Add support for bolero v2.0 hardware functionality.

Change-Id: I5dca1666b92d6e8de0adae8a11cab0fbca61ab6d
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-29 11:54:30 -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
a5a7ba3b43 asoc: codecs: wcd938x: Add widget to enable micbias standalone
Add widgets to enable mic bias standlaone without
dependency on any use case.

Change-Id: I1f61cd9403d3f83baa199f9c669680d9c7b5c371
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-28 21:51:29 -08:00
Karthikeyan Mani
669b885ac7 asoc: codecs: Add codec supply to enable mic bias pin
Add interface to initialize and enable/disable
wcd codec supply.

Change-Id: If2b2a3120f7f0c87dc6ebe1c1e6c9062b7f2891e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-01-28 21:42:29 -08:00
Vignesh Kulothungan
823f0f01fe ASoC: add config check for QGKI
Add CONFIG_AUDIO_QGKI check for variables and functions
in audio drivers, so they are used only during a QGKI build.

Change-Id: Ia04232566367f196f298a49cf3962bb7927bec6a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-26 03:51:32 +05:30
Linux Build Service Account
6744f565b2 Merge "ASoC: wsa883x: update supply and variant configuration" into audio-drivers.lnx.5.0 2020-01-10 16:43:42 -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
Sudheer Papothi
e8b606b2b9 ASoC: wsa883x: update supply and variant configuration
Update supply and variant configuration for wsa883x speaker amplifer.

Change-Id: Ib3e1ae149cc4b9144229b5e2dfab9bb0cc8dab1c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-09 08:07:37 +05:30
Linux Build Service Account
f6b14a755d Merge "ASoC: wsa883x: Add support for VBAT monitor" into audio-drivers.lnx.5.0 2020-01-08 17:20:33 -08:00
Vignesh Kulothungan
16a9d512d7 ASoC: codecs: use function if config is enabled
Use "wcd_mbhc_usbc_ana_event_handler" function only when
CONFIG_QCOM_FSA4480_I2C is enabled.

Change-Id: I5211a8ce09fb06021310e528b5815fdbcd3f2dab
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-07 18:59:45 -08:00
Vignesh Kulothungan
46c4e1f885 ASoC: remove unused functions
Remove unused function "wsa883x_regcache_sync" and
"wsa883x_resource_acquire".

Change-Id: Ic4dca68671673141be833926305116d8cd881d89
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-07 18:59:41 -08:00
Vignesh Kulothungan
050dd0ef56 ASoC: codecs: wsa883x: update wsa883x_reg_readable
Update wsa883x_reg_readable variable name to wsa883x_reg_access.

Change-Id: Icab949163f32fda7c5f6caf0dfe4641eb100a539
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-01-07 18:18:49 -08:00
Sudheer Papothi
eecf60dcb5 ASoC: wsa883x: Add support for VBAT monitor
Add support for VBAT monitor on WSA883x speaker amplifier
for signal profiling.

Change-Id: I1544b601ac9ee4e8ed6da3839cc46914bbae5d93
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-07 14:39:09 -08:00
Meng Wang
b2bdcaa776 asoc: codec: compile wcd dsp manager only for external codec
wcd dsp manager is not needed for bolero and wcd938x. Compile it
when CONFIG_WCD9XXX_CODEC_CORE is enabled

Change-Id: Ia341e6893520769eb1f973a5df74ad9bb2b57063
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-01-07 08:51:57 +08:00
Linux Build Service Account
c6e429778b Merge "ASoC: codec: Change micbias widgets to supply widgets" into audio-drivers.lnx.5.0 2019-12-31 15:26:06 -08:00
Linux Build Service Account
b8ebaa7745 Merge "asoc: codec: add io header file" into audio-drivers.lnx.5.0 2019-12-31 15:26:03 -08:00
Sudheer Papothi
2e7fc986d2 ASoC: bolero: Add codec DAI to support PCM interface
Add codec DAI to support PCM interface to soundwire master on
RX macro in bolero codec driver.

Change-Id: Iaf5a9d9cf78ec9dc29b60ebd7736504ec6470e57
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:17:19 -08:00
Sudheer Papothi
7f9dfd57cc ASoC: wsa883x: Enable WSA883x codec driver
Enable WSA883x codec driver to support WSA883x smart speaker
amplifier.

Change-Id: I0a773459c28ca2afc7232ec33001351152a7249a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-27 11:17:02 -08:00
Meng Wang
4a03bd5171 asoc: update snd info api
Update snd info API and userspace and get codec info.

Change-Id: Ic9cfc89365cf6263a9b1c02403d68e7740bebbeb
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-27 11:15:55 -08:00
Meng Wang
c0c263db97 asoc: codec: add io header file
Add IO header file to call iowrite32 and ioremap.

Change-Id: I742266b7653c2731fa232fa7d2ebeb916a57a129
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-25 15:04:25 +08:00
Sudheer Papothi
2732740dd2 ASoC: codec: Change micbias widgets to supply widgets
Upstream kernel deprecated micbias widgets. So, replace micbias
widgets with supply widgets.

Change-Id: Ie7d369d887c85f85ee477877425516caae4d7e33
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-25 14:50:54 +08:00
Vignesh Kulothungan
d71ec81bb0 audio: update kernel version reference
Update kernel version references from 4.19 to 5.4.
Update symbolic links to new kernel version files.

Change-Id: I38baa52218b16e0b0c86ad898912d29ec4d3d516
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 17:04:52 -08:00
Vignesh Kulothungan
92187a5038 audio: Remove android make files
Remove android make files from audio tech package.

Change-Id: I21770bf64cef2bc767cdc81b0b864efff135bf84
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-12-19 16:55:09 -08:00
qctecmdr
23f17232f7 Merge "ASoC: bolero: Fix voice activation not working on SWR MICs" 2019-12-13 04:46:11 -08:00
qctecmdr
760b872a49 Merge "asoc: codecs: Synchronize fs gen sequence updates" 2019-12-13 04:44:31 -08:00
qctecmdr
89506b0c4d Merge "asoc: wcd937x: Avoid clk disable at aux dac" 2019-12-10 05:56:49 -08:00
Aditya Bavanari
7100fb8474 asoc: codecs: Synchronize fs gen sequence updates
Synchronize the bolero fs gen sequence updates
in order to avoid race conditions.

Change-Id: Idb95dcf1d5f5f4d24ab507ccd221d399a6b5a021
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-12-08 23:19:05 -08:00
Vatsal Bucha
efd65f1224 ASoC: bolero: Fix voice activation not working on SWR MICs
Voice Activation is not working from second time on SWR
MICs. Make tx macro registers related to SWR MIC as
volatile to resolve the issue.

Change-Id: Iac52af37d32b53ada193d855949b345da0e47d9c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-12-08 22:30:19 -08:00
qctecmdr
070e06c2eb Merge "asoc: codecs: bolero: add delay after toggling hpf gate" 2019-12-08 21:58:46 -08:00
qctecmdr
4aa55c6448 Merge "asoc: bolero: add mixer control for LPI enable flag" 2019-12-08 21:54:53 -08:00
Laxminath Kasam
ef20c8c2d5 asoc: wcd937x: Avoid clk disable at aux dac
Clock disable at aux dac event is not needed
as rx3 widget already disables it.

Change-Id: I67feec194cdae5c6d84efcde0a2931ba8f8440dd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-12-06 14:48:29 +05:30
qctecmdr
1cdf70f30f Merge "ASoC: wsa883x: Add support for subsystem restart" 2019-12-05 06:59:12 -08:00
qctecmdr
fec5f13aea Merge "asoc: Audio bringup changes for bengal" 2019-12-05 06:57:05 -08:00
qctecmdr
85661d1f96 Merge "ASoC: bolero: Update the sequence for native audio playback" 2019-12-05 06:52:39 -08:00
Meng Wang
4ff8084a36 asoc: bolero: add mixer control for LPI enable flag
Add mixer control for LPI enable flag. The listener
should only be registered for LPI SVA session.

Change-Id: I01e4b0868e3333e1fc60f86444b1cf1c77e25cb7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-12-05 11:16:51 +08:00
Laxminath Kasam
696b14bfa2 asoc: Audio bringup changes for bengal
Audio bringup fixes for bengal target.

Change-Id: Ic79c478fe3c6b80eeb48aa2bcf1887c8dd8f5edc
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-12-04 15:07:29 +05:30
Sudheer Papothi
03eeaf15cd ASoC: bolero: Update the sequence for native audio playback
Update the clock sequence for native audio playback to avoid
any distortion or change in gain during native audio playback
usecase.

Change-Id: Ia9aaa63f3e476b49a07d49b794f4120ed55bac47
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-12-03 06:02:06 +05:30
qctecmdr
ea67d09c28 Merge "asoc: Audio bringup changes for bengal" 2019-11-30 23:28:18 -08:00
qctecmdr
afe9d1e31e Merge "asoc: codecs: Enable interrupt mask at bootup" 2019-11-30 23:28:18 -08:00