Commit Graph

3651 Commits

Author SHA1 Message Date
qctecmdr
c69fbb5b00 Merge "asoc: wsa883x: release supplies when device probe error" 2021-03-05 03:40:10 -08:00
qctecmdr
65a0b0d7eb Merge "soc: swr-mstr: Handle error exit for swrm probe fail" 2021-03-05 02:56:53 -08:00
qctecmdr
3443978168 Merge "asoc: update Android.mk for incremental build" 2021-03-05 02:07:29 -08:00
Laxminath Kasam
51ed7e13d7 asoc: wsa883x: release supplies when device probe error
During device probe error, ensure release supplies
as part of cleanup resources before exit.

Change-Id: Iaf173863d34de3d2151d5fa3c99cf65421e4d2f8
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-05 10:30:04 +05:30
Laxminath Kasam
39c95cbca4 soc: swr-mstr: Handle error exit for swrm probe fail
In one of failure for swrm probe, swr unregister
is not done causing crash. swr unregister device
in respective error case.

Change-Id: Idbf50b2ae1d66eafa1db8dbbd386db7982c3b0f8
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-05 10:12:42 +05:30
Laxminath Kasam
b91a586d82 asoc: lpass-cdc: Update compander setting for path_gain
In unified compander, update path_gain to use
upper_gain_int value.

Change-Id: Ibe616eb1cab223cc855e817c5ca09579af9ddfb9
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-02 18:48:54 +05:30
qctecmdr
5ef02a82e6 Merge "soc: soundwire: Ungate the swr rx ports" 2021-03-02 00:42:26 -08:00
Laxminath Kasam
a87c793e30 soc: soundwire: Ungate the swr rx ports
In soundwire version 1.7, rx soundwire port2/3
are extended to 32bits to use as PCM port too.
When using for PDM port as well, need to ungate
the ports for functionality to work.

Change-Id: I1815a9337ab21e0000ca7dbfeaac4c01dadec0dc
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-01 13:54:02 +05:30
Meng Wang
2d9d42f902 asoc: update Android.mk for incremental build
Add LOCAL_SRC_FILES in Android.mk to make sure
audio drivers are recompiled during incremental build.

Change-Id: I80b6cecd0e805ae5d019b946fea88043f1961123
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-01 12:29:36 +08:00
Patrick Lai
32363052e1 Revert "ipc: Remove adsp/modem up check in gpr_send_pkt"
It was found that sending GPR command before audio process
domain can lead to deadlock in ADSP. Reinstate the check to
send GPR command only when gpr-lite is informed that process
domain is up.This reverts commit
2922723c6f.

Change-Id: I8076dc053c2d7c5b84bdafa2feb35462b2309227
2021-02-24 23:37:21 -08:00
Revathi Uddaraju
9d0e5be6b5 asoc: Add support for sysfs based SSR
Create sysfs node for SSR.

Change-Id: Ia181a51ae969632b739676b4b95e2bf0f50ce432
2021-02-22 01:57:49 -08:00
qctecmdr
1207f8266b Merge "ASoC: lpass-cdc: Update offsets for rx-macro paths" 2021-02-22 01:24:57 -08:00
Phani Kumar Uppalapati
b81a91d450 asoc: disable pm qos voting in machine driver
Disable pm qos voting for audio threads in machine
driver.

Change-Id: I80310f65269a6fab2a97834bbed3f38d7e8182eb
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2021-02-22 00:45:03 -08:00
Sudheer Papothi
038bcfe748 ASoC: lpass-cdc: Update offsets for rx-macro paths
Update offsets for rx-macro paths for proper audio playback
on headset.

Change-Id: I076bb6ac70114d15ac7db5780f9dc5184cb0e333
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-22 00:44:52 -08:00
Vignesh Kulothungan
62e889a1ef ASoC: Update wsa and rx_tx init functions
Update dai link init functions of wsa and rx_tx codecs.
Update late probe function to use backend name to search for
pcm runtime.

Change-Id: Ia082ac233e61a28e76600977a024821689f8a218
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2021-02-21 20:44:42 -08:00
Sudheer Papothi
1781f00ccc soc: soundwire: Update registers for multi execution environment
Update register definition for soundwire multi execution enviroment
to keep soundwire peripheral devices in clock stop mode when not
in use.

Change-Id: I3615d0dc7381df414b1fb9414d24cef921883668
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-17 06:25:18 +05:30
Sudheer Papothi
068e2722da soc:soundwire: disable pm_qos in soundwire master driver
Disable pm_qos in soundwire master driver.

Change-Id: I0f042faf48f003bef8b43641ef0ccb3cf82d7dd9
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-13 06:35:22 +05:30
Sudheer Papothi
9f2aca3bfc ASoC: wsa883x: Update the handle for event notification
Update the parent handle for event notification to receive
event notification from digital codec.

Change-Id: Ia67814eee4e0a4703c2fde6db7942757bcc2ba2d
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-11 15:38:55 -08:00
qctecmdr
744c8af576 Merge "ASoC: wsa883x: Add support for second instance of WSA" 2021-02-11 12:28:23 -08:00
qctecmdr
55e03b1ef5 Merge "asoc: swr-dmic: add ignore_suspend for VA widgets" 2021-02-10 09:09:12 -08:00
qctecmdr
56e07a9935 Merge "soc: swr-mstr-ctrl: fix device linked list corruption issue" 2021-02-10 09:09:12 -08:00
qctecmdr
f964ad4a98 Merge "asoc: swr-haptics: add control to set VMAX" 2021-02-10 09:09:12 -08:00
Linux Build Service Account
eec016c037 Merge "asoc: change msm ext display include file location" 2021-02-09 00:02:24 -08:00
Sudheer Papothi
5c8376d255 ASoC: wsa883x: Add support for second instance of WSA
Add support for second instance of WSA speaker amplifier.

Change-Id: Ia0a19d86f2fdc7a4b3b42812ccba23bbf05bd6b4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-08 10:39:46 +05:30
Patrick Lai
721e71211c soc: swr-mstr-ctrl: fix device linked list corruption issue
It was found that kernel crashes due to device linked list corruption
when soundwire controller driver tries to register soundwire peripheral
device. This is due to error handling logic does not remove device which
fails to register from device linked list maintained by soundwire
controller driver.

Change-Id: I0bb52bbc11bc4535f22c0490edb9c4aee48050dc
Signed-off-by: Patrick Lai <plai@codeaurora.org>
2021-02-07 19:28:51 -08:00
Linux Build Service Account
8ff4c4b7e2 Merge "ASoC: lpass-cdc: Update clock sequence to clear Fs counter" into audio-kernel.lnx.5.10 2021-02-07 18:59:21 -08:00
Sudheer Papothi
65659449f2 ASoC: lpass-cdc: Update clock sequence to clear Fs counter
Update codec clock sequence to clear Fs counter to avoid
unexpected behavior during bootup.

Change-Id: Ieb631542738ab4de3ba147ebeb2cd9e2f5d5adb2
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-07 23:51:21 +05:30
Meng Wang
e56e235d73 asoc: swr-haptics: add control to set VMAX
Add control to set VMAX to adjust different vibrator
setting from userspace.

Change-Id: I7300e4f0ae57e403c8fc79db38598946289effb6
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-02-05 09:19:28 +08:00
Zhao, Yuan
de8fb6d094 asoc: change msm ext display include file location
Since msm_ext_display.h was moved to a new place, so using the
new place to include it.

Change-Id: Ia506263996c0f5c088a43d46a1541f75489dd5e3
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-02-03 02:02:33 -08:00
Sudheer Papothi
597248558d ASoC: codec: Update audio external codec clocks
Update audio external clock nodes to avoid redundant
parent clock enablement.

Change-Id: I5a268c7e1fab2167c6179f76fc861393808b66ae
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-02-03 05:08:43 +05:30
Linux Build Service Account
8bffa00160 Merge "ASoC: Add support for mi2s and tdm interfaces" into audio-kernel.lnx.5.10 2021-02-01 05:50:09 -08:00
Linux Build Service Account
b02da61628 Merge "asoc: waipio: Update swr port map for wsa2 macro" into audio-kernel.lnx.5.10 2021-01-27 02:40:41 -08:00
Meng Wang
c5d799983d asoc: swr-dmic: add ignore_suspend for VA widgets
Add ignore_suspend for SWR DMIC VA widgets.

Change-Id: Ida2c1c4018fcb102a41c905e813ea053b0917b03
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2021-01-25 17:45:52 -08:00
Vignesh Kulothungan
a3f4d551e2 ASoC: Add support for mi2s and tdm interfaces
Added dai link component definitions and dai links for mi2s/tdm
interfaces from primary to senary.

Change-Id: I7ea414e10180acce510375c671570b5a2062a9bd
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2021-01-21 11:31:55 -08:00
Vignesh Kulothungan
a6040adea6 ASoC: bolero: add support for central broadcast bcl
Remove bcl decode registers and add new central broadcast
decode registers.
Enable the new central broadcast (CB) block registers during usecase
start and request for bcl data inorder to receive current bcl events.

Change-Id: I4c626e5083328b4cfdb5c956695078985b5c54a5
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2021-01-21 10:26:05 -08:00
Laxminath Kasam
b219b9ee8a asoc: waipio: Update swr port map for wsa2 macro
Add entry in swr port map for wsa2 macro.

Change-Id: I4106178925d569c97db5f9042e9be4f199400637
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-20 13:29:48 +05:30
Linux Build Service Account
3f632097fb Merge "audio-kernel: move audio_notifier_register to probe function" into audio-kernel.lnx.5.10 2021-01-14 21:27:19 -08:00
Sudheer Papothi
d9f356cb0a ASoC: waipio: Add dai links to enable speaker playback
Add dai link to enable speaker playback on four smart speaker amplifiers.

Change-Id: Ie8c875ba0724a80e61f1a1f21d615a3f2fcfbe5a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-01-14 07:02:09 +05:30
Linux Build Service Account
ce38d34642 Merge "asoc: lpass-cdc: update SOC_SINGLE_MULTI_EXT to byte control" into audio-kernel.lnx.5.10 2021-01-13 09:09:04 -08:00
Linux Build Service Account
328addc661 Merge "asoc: enable audio DLKM" into audio-kernel.lnx.5.10 2021-01-12 17:22:23 -08:00
Meng Wang
27fb083dab asoc: lpass-cdc: update SOC_SINGLE_MULTI_EXT to byte control
update SOC_SINGLE_MULTI_EXT to byte control for IIR mixer controls.

Change-Id: I94f09b9dd26e4da8a307e0add22634e2ab15aa66
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-01-12 17:12:39 -08:00
Sudheer Papothi
78e6d7ec4b ASoC: lpass-cdc: Update digital codec driver name
Update LPASS digital codec driver name for proper enumeration.

Change-Id: Ied6a3697a5e47c0695b6339ec7b4b4561ef6ccbd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-01-13 04:22:40 +05:30
Linux Build Service Account
16bae5f7c3 Merge "ASoC: lpass-cdc: Update codec driver dai link names" into audio-kernel.lnx.5.10 2021-01-12 10:47:32 -08:00
Sudheer Papothi
f4b4385c98 ASoC: lpass-cdc: Update codec driver dai link names
Update codec driver dai link names for proper enumeration of
dai links during sound card enumeration.

Change-Id: I91630f60647c83095bc979b09aad1b273b44f71c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-01-12 23:56:48 +05:30
Laxminath Kasam
08fffc5bef dsp: Set is_initial_boot before calling child node
Execute gpr driver probe before exiting spf core probe

Change-Id: I983b5e093e9c7d0204e56bdec3d3a590343fb5d3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-12 10:49:01 +05:30
Meng Wang
b6bb058d7f asoc: enable audio DLKM
Enable audio DLKM compilation in vendor SI.

Change-Id: I673435d9a285350471a928cf5ccece0cf04aa009
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-01-12 08:48:37 +08:00
Linux Build Service Account
4d0f39aa7f Merge "dsp : Remove duplicate symbols" into audio-kernel.lnx.5.10 2021-01-11 08:46:12 -08:00
Laxminath Kasam
30fa514858 dsp : Remove duplicate symbols
Remove digital-cdc-rsc-mgr file from q6_dlkm

Change-Id: I3ec21772b095a4449d1a6c97e73ffdede1499cb9
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-11 17:47:33 +05:30
Laxminath Kasam
103d2cc5a9 audio-kernel: Fix audio_notifier service registration issue
Change default return value to 0.

Change-Id: I44c069ce451ee4eeeb6de526cf85e299d3cf7fe0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-01-08 19:25:34 +05:30
Linux Build Service Account
7afd566ca9 Merge "asoc: lpass-cdc: mark IIR filter coefficient registers as volatile" into audio-kernel.lnx.5.10 2021-01-07 18:38:13 -08:00