Commit Graph

1088 Commits

Author SHA1 Message Date
Laxminath Kasam
2aa344da6e SoC: wsa883x: Remove from soundwire group during teardown
After playback on speaker, remove from soundwire group to
properly close the soundwire port configuration.

Change-Id: I278e7510869200bc1236eb45968bc8d986a93a96
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-03-17 12:24:25 +05:30
Vignesh Kulothungan
7fda29ef57 ASoC: codecs: update gpio property name
From kernel 5.4, device node properties with
-gpio/-gpios suffix in the name is expected to define
gpio node properities like "#gpio-cells".
Update non-gpio property names to not have -gpio/-gpios
suffix.

Change-Id: I63fc81ce16c4e9705a08a3762aa91c7cacd174b5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-12 14:32:58 -07:00
qctecmdr
70561ef6c1 Merge "ASoC: wsa883x: Update sequence for temperature" 2020-03-11 04:24:57 -07:00
qctecmdr
d4942cddf3 Merge "ASoC: wsa883x: Update speaker playback sequence" 2020-03-11 04:24:57 -07:00
Vignesh Kulothungan
2ff57c7749 config: compile hdmi dlkm only for QGKI
Compile hdmi_dlkm kernel module only when both
CONFIG_SND_SOC_MSM_HDMI_CODEC_RX and CONFIG_AUDIO_QGKI configs
are enabled.

Change-Id: I31864e8b764dbcb40e0b96ac3a98f626dab315d2
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-04 19:03:47 -08:00
Sudheer Papothi
6f33b8cd3b ASoC: wsa883x: Update speaker playback sequence
Update speaker playback sequence on wsa883x codec to
avoid click and pop and loss of VI sense data on speaker.

Change-Id: I8ec7072b63bef6c2e7bd64c96df4d98852c4f40d
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-03-03 09:43:22 +05:30
qctecmdr
4721edae96 Merge "ASoC: codecs: enable swr dmic for va" 2020-02-28 18:13:47 -08:00
qctecmdr
12b0b549c4 Merge "ASoC: codecs: disable supply after successful probe" 2020-02-28 18:13:47 -08:00
qctecmdr
d5e44c9b97 Merge "asoc: codecs: Do not update VA clk muxsel register" 2020-02-28 04:43:38 -08:00
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
5a5e32093f ASoC: codecs: enable swr dmic for va
Enable soundwire dmic's for VA macro.

Change-Id: Ie88ad57f1906ea81363cffd2ae5904f0a5de7bdc
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-27 23:05:26 -08:00
Sudheer Papothi
fe702b2f64 ASoC: wsa883x: Update sequence for temperature
Update sequence to enable temperature sensor in wsa883x to
read proper temperature measurement.

Change-Id: I7db16344a92b82539929511bd0de322ed086beb7
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-26 17:35:17 -08:00
qctecmdr
47aa501123 Merge "ASoC: codecs: remove dmic device during dev err" 2020-02-23 09:01:39 -08:00
qctecmdr
5ae37e64b5 Merge "ASoC: wcd938x: Add micbias control API for SWR DMICs" 2020-02-22 05:19:19 -08:00
Aditya Bavanari
adca57d6a0 asoc: codecs: Do not update VA clk muxsel register
Because of a HW limitation in DSP, while switching
RCG from TX MCLK to VA MCLK for SVA use cases
a glitch is seen on AHB bus leading to data
corruption in registers.
So, while doing a mux switch for VA RCG clock selection,
do not configure the muxsel register in HLOS as it is
taken care in DSP itself as a workaround for HW limitation.

Change-Id: Iccbe714397796259fa55f9852ece387e949b12e8
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-21 11:09:31 -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
qctecmdr
e96e387122 Merge "asoc: codecs: wcd938x: bypass filter while enabling PA" 2020-02-19 02:25:21 -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
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
Meng Wang
c760477cb9 asoc: codecs: wcd938x: bypass filter while enabling PA
While enabling headphone PA, bypass preref filter
to resolve clipping issue in the first second.

Change-Id: I7524fe3215bac267c5e199c715931712e16adf88
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2020-02-07 15:47:55 +08:00
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