Commit graph

2,577 commits

Author SHA1 Message Date
Zhou Song
83c6033064 asoc: add new fe for hearing aid
Add a new fe dedicated for hearing aid and the support
of reading data from a new proxy port.

Change-Id: Id2e8ade6bfe5412ca6520d3cff70d6eebad7d7cc
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2020-04-21 16:58:00 +08:00
Saurav Kumar
a2efe09c14 asoc: add change for proxy playback and capture BE DAIs
Add change to support BE DAI link based on proxy
ports.

Change-Id: Id7ca274e330f025ac015567de86403fb14781cd0
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-03-25 11:02:24 +05:30
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
f6ace7d5da ASoC: enable external display only for QGKI
Add external display dai links to sound card only when
CONFIG_AUDIO_QGKI is enabled.

Change-Id: Ic67def877cddeb08aebcfc00ab4886826905b7c2
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-06 10:30:05 -08: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
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
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
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
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
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