Commit Graph

2584 Commits

Author SHA1 Message Date
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
Sudheer Papothi
f3bc7e9e85 soc: soundwire: Update frame configuration for multi slave
Update offset1 of soundwire slave devices in a multi mic usecase
for proper audio capture from the soundwire mics.

Change-Id: If81ab1c2defeacb87b917fb6e3645c6df866f679
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-03-24 05:03:47 +05:30
qctecmdr
68f58b0d09 Merge "soundwire: add support to disable dynamic port map" 2020-03-22 22:24:07 -07:00
qctecmdr
5b6a8859e3 Merge "SoC: wsa883x: Remove from soundwire group during teardown" 2020-03-22 22:24:07 -07:00
qctecmdr
67da967cff Merge "dsp: Bit rate mode support for aac codec" 2020-03-19 22:19:05 -07:00
Manisha Agarwal
f6990bb349 dsp: Bit rate mode support for aac codec
Add variable bit rate mode support for aac codec.

Change-Id: Iedd9fe0df2d3a12e3d4e6c2916305399da10873f
Signed-off-by: Manisha Agarwal <maniagar@codeaurora.org>
2020-03-18 19:10:14 -07:00
Vignesh Kulothungan
a4962dc546 soundwire: add support to disable dynamic port map
Add support to disable dynamic port map via device tree
property.
Do not update master clock when dynamic port map
is disabled for a sound wire master.

Change-Id: I9f9344866faa4d1c342787e014102d9182ed56ae
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-03-17 11:18:18 -07:00
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
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