Commit graph

2,567 commits

Author SHA1 Message Date
qctecmdr
dfe51f1115 Merge "config: enable external HDMI codec" 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
026a509a09 config: enable external HDMI codec
Enable external hdmi codec for lahaina.

Change-Id: Ida0fd5c278b01b4ac0abe0593ab9aaa5b781220a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-27 13:09:47 -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
qctecmdr
732d4331bc Merge "soc: soundwire: Update bus clock frequency based on usecase" 2020-02-20 22:11:07 -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
Vignesh Kulothungan
a8bc505c14 ASoC: add swr dmic's as aux devices
Add sound wire dmic's as aux devices to
sound card.

Change-Id: I4104e591bbea1bd8138a1f0be1a3d1700f8933c8
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-18 14:03: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
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
e84db582e2 Merge "ASoC: Add driver support for multi-ch ECNS" 2020-02-17 02:58:03 -08:00
qctecmdr
e60c090ca9 Merge "dsp: Add afe_close in locked context" 2020-02-17 02:58:03 -08:00
qctecmdr
1749b63d9c Merge "ASoC: msm: Add support for MultiMedia23" 2020-02-17 02:58:03 -08:00
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
ecae50be17 Merge "soc: swr-mstr: reset slave pending irq flag before every call" 2020-02-17 02:58:02 -08:00
qctecmdr
5f0784fece Merge "soc: swr-ctrl: increase num retry count for soundwire link status" 2020-02-17 02:58:02 -08:00
qctecmdr
c5598a866d Merge "asoc: lsm: free confidence_levels memory to avoid memory leakage" 2020-02-17 02:58:02 -08:00
Sudheer Papothi
cdeb593d01 soc: soundwire: Update bus clock frequency based on usecase
Some usecases need soundwire bus clock frequency to run at
lower clock rate for better power and performance. Update
soundwire bus clock frequency based on usecase.

Change-Id: I2e786d9f5d5d2ec3841daa934802eeafa79a8f6c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-15 00:32:43 +05:30
qctecmdr
b30560f219 Merge "ASoC: lahaina: Update BTFM Tx codec dai name for slimbus_7 BE DAILINK" 2020-02-13 22:19:33 -08:00
qctecmdr
27b52591d3 Merge "asoc: mbhc: update mode for analog type-c headset check" 2020-02-11 21:22:12 -08:00
Banajit Goswami
5504847f9a ASoC: lahaina: Update BTFM Tx codec dai name for slimbus_7 BE DAILINK
Update the codec dai name for slimbus_7 backend dailink used for BT use
cases.

Change-Id: I7330f95a106a7c5b3b9d8c588f93342d466d2d2c
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2020-02-11 20:06:08 -08:00
Sudheer Papothi
15ae299940 ASoC: lahaina: Fix compilation issue on GKI
Fix compilation issue on GKI.

Change-Id: Ic577eb8fde1492e71c2d4faf010aa165634ee511
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-11 00:11:06 +05:30
qctecmdr
0e5d51f7fd Merge "soc: soundwire: udpate soundwire slave registers" 2020-02-09 21:11:39 -08:00
qctecmdr
5ad1b37c7f Merge "ASoC: lahaina: Update wsa883x aux codec configuration on lahaina" 2020-02-09 21:11:39 -08:00
qctecmdr
0add91a70a Merge "audio: correct misspelled variable and functions" 2020-02-09 21:11:38 -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
5a0d1cee91 ASoC: lahaina: Update wsa883x aux codec configuration on lahaina
Update wsa883x aux codec configuration on lahaina.

Change-Id: Icd1b2f2d8557a0430b49329dc0fbebb99a3e9fa5
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-08 03:13:55 +05:30
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
1c11c5cf73 soc: soundwire: Disable clock gating when soundwire is out of clock stop
Disable clock gating when soundwire is out of clock stop mode.

Change-Id: I97187fa2deed26fb3270abee1d05f679ace2c0c4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-06 23:49:10 -08:00
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
Sudheer Papothi
1d6a693f3f soc: soundwire: udpate soundwire slave registers
Update soundwire slave registers as the per hardware specification.

Change-Id: I975d7f12273de2b2eb3d9323b6f781426e18c527
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-02-07 07:58:57 +05:30
Vignesh Kulothungan
fa01a84d23 audio: correct misspelled variable and functions
Update dai link names to match with machine driver.
Update typo in audio notifier function name.

Change-Id: I8ada233bbcb1596f245cf1925691c115c2d62755
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-02-05 14:37:45 -08:00
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
Meng Wang
d3f2c2b5a4 asoc: lsm: free confidence_levels memory to avoid memory leakage
prtd->lsm_client->confidence_levels is allocated in
msm_lsm_get_conf_levels and not freed in msm_lsm_set_conf.
Make this change to free this memory.

Change-Id: I617703b36c13e065fdf995e89121c442b32b08f3
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-04 20:10:04 -08:00
Ramu Gottipati
68a6bbb278 ASoC: Add driver support for multi-ch ECNS
Add Control names for newly supported channels

Change-Id: Ia830b10f681224605e68af659248beb58bd530c0
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2020-02-04 20:08:04 -08:00
Soumya Managoli
6b5e249af4 dsp: Add afe_close in locked context
Process port command DEVICE_STOP with
afe_cmd_lock to avoid any race condition.

Change-Id: I6e888a70e439cb6f3408d00644fb98a85ae53ef4
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-02-04 18:48:36 -08:00
Viraja Kommaraju
3eae385cd2 ASoC: msm: Add support for MultiMedia23
Add MultiMedia23 fe dai

Change-Id: I504889f1edb8298609d94a1350d81436bb874b22
2020-02-04 18:47:40 -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
Meng Wang
935e7fb95e soc: swr-mstr: reset slave pending irq flag before every call
Before every slave interrupt handler call, reset slave pending
irq flag, so that if irq is halted it does not retain the old
value.

Change-Id: I2c78500e83eca7864029f58cffa80f8648902fb2
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-02-04 18:36:14 -08:00
Laxminath Kasam
33b343b23d soc: swr-ctrl: increase num retry count for soundwire link status
Increase retry count to check soundwire link status at bootup
inorder for probe to succeed. Handle error scenario if 
soundwire probe fails to cleanup device properly.

Change-Id: I4a545530e68221a1f428e05aff3d8a93b1dacf84
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-02-04 18:35:11 -08:00
Sudheer Papothi
669089fdbd soc: soundwire: Handle soundwire slave reset gracefully
If soundwire slave does not implement reset functionality, handle
soundwire slave reset error gracefully in soundwire master driver.

Change-Id: I24f34d3e8665c187c4ac9dd2bc8acb2b39ad2df6
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-01-29 23:06:40 -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