Commit grafiek

3680 Commits

Auteur SHA1 Bericht Datum
Vatsal Bucha
ea36f4ea68 asoc: codecs: add child devices after completing initialization
In va, rx and wsa macros, move schedule_work call to
add the child devices to the point later to where the parent
initialization gets completed.

Change-Id: I2095f1007beae253534b2ed44f988ce55fad6b75
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-22 04:39:59 -07:00
Vatsal Bucha
a5ca4621d9 asoc: bolero: Add core_vote before gfmux access
GFMUX access happen during WSA macro usecase.
Update wsa macro to do core_vote before clock
request.

Change-Id: I8f7eb67b87845016b54c9873a6fc230d207262f7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-22 04:39:40 -07:00
Junkai Cai
fbfd93a2dc asoc: lpass-cdc: allow register write via debugfs
allow QTI regmap debugfs register writes for debugging purpose
on lpass-cdc, wsa and wcd codecs.

Change-Id: Icdedb8f0a5e198bbb6afecb4b6995cc0d1a35833
Signed-off-by: Junkai Cai <junkai@codeaurora.org>
2021-03-20 21:29:06 -07:00
pavanisr
ba39b85277 dsp, ipc: add fluence NN changes
Change-Id: Ie8323156c74601333871646052068a609c7cf474
2021-03-19 16:22:04 -07:00
pavanisr
e8e79f3322 dsp: remove global msm_audio_ion_private_data
Change-Id: I2903b19295695c91d62fa5bbb8a9c9c884dfaf98
2021-03-18 12:00:07 -07:00
pavanisr
3f099a7afc dsp: clean up unnecessary apis
Change-Id: I6e92fcea9a7185bd1bc7c47ca16270641fd471de
2021-03-18 11:24:38 -07:00
qctecmdr
f2532546f1 Merge "asoc: lpass-cdc: init notifier head for lpass-cdc notifier" 2021-03-18 09:03:58 -07:00
qctecmdr
a919ccc068 Merge "asoc: codecs: fix race condition of core vote and reg access" 2021-03-18 05:03:24 -07:00
Vatsal Bucha
7dcefcdc50 asoc: bolero: Add core_vote before gfmux access
GFMUX access happen during WSA macro usecase.
Update wsa macro to do core_vote before clock
request.

Change-Id: I0b96e725e5150fff4d8bef0d6a50837fc9a3f873
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-18 04:13:06 -07:00
Vatsal Bucha
eb27bf253d asoc: codecs: fix race condition of core vote and reg access
Auto suspend timer for core vote is triggering before read write complete.
Move the auto suspend of core vote to post read write operation.

Change-Id: I619da358c7c42af45ef480ed0dba2c2cc26e9cc1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-18 04:11:56 -07:00
Meng Wang
810d3bb498 asoc: lpass-cdc: init notifier head for lpass-cdc notifier
Call BLOCKING_INIT_NOTIFIER_HEAD for lpass-cdc notifier to
reduce warning log during bootup.

Change-Id: I0aa7fec44e857cf170fcd701986f1fa2db03e170
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-18 16:54:47 +08:00
qctecmdr
b9b9a51df2 Merge "asoc: codec: add range check to avoid overflow" 2021-03-17 23:03:06 -07:00
qctecmdr
0e5493a33e Merge "asoc: codecs: add child devices after completing initialization" 2021-03-17 22:58:17 -07:00
qctecmdr
5314fb4974 Merge "asoc: lpass-cdc: add RX4/5 for wsa macro" 2021-03-17 02:17:51 -07:00
Meng Wang
d7859b1bdd asoc: lpass-cdc: add RX4/5 for wsa macro
RX4/5 are added on bolero 2.5 and can be used for wsa1 macro.
Make this change to add RX4/5.

Change-Id: I4fa77fec3cbcb4d01718026cf648e5e7a171ddb2
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-17 15:00:40 +08:00
Meng Wang
fbb79877c9 asoc: move unnecessary UAPI header files to normal header folder
Move unnecessary UAPI header files to normal header folder.

Change-Id: I0ba6da8fdc4e21a3493fcc284fa2e08a06dc3013
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-16 16:50:26 +08:00
Vatsal Bucha
b6430e162b asoc: codecs: add child devices after completing initialization
In bolero-cdc and tx, va, wsa and rx macros, move schedule_work call to
add the child devices to the point later to where the parent
initialization gets completed.

Change-Id: Iaa07329a25020dde21d9249c3848bb7fcf7d816a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-15 21:53:10 -07:00
Vatsal Bucha
77ac79f6c7 asoc: codec: add range check to avoid overflow
Add range check for ucontrol value to avoid array
overflow.

Change-Id: I7b699519bec6f605e5ca5ece8f67badbefc7a094
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-15 21:53:06 -07:00
Junkai Cai
2f7a802e67 asoc: codec: add error handle for swr_dmic port params
handle errors if "qcom,swr-tx-port-params" is not parsed correctly.

Change-Id: I9fb79cfabd9b881c43150072e714c1559160e03d
2021-03-15 17:18:24 -07:00
qctecmdr
01b6734297 Merge "Android.mk: Fix typo in swr_dmic_dlkm" 2021-03-15 10:20:39 -07:00
qctecmdr
a09be5f422 Merge "asoc: lpass-cdc: Update path_gain common for RX/WSA" 2021-03-15 08:57:25 -07:00
Vatsal Bucha
3165e40082 soc: swr-mstr: Change default swrm mstr version to 1.7 for waipio
Change default swrm mstr version to 1.7 for waipio.

Change-Id: Ide746806363e6fa8abfe142ca4462ac938491257
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-15 12:24:29 +05:30
Linux Build Service Account
851902df59 Merge "soc: swr-mstr-ctrl: remove unnecessary check in swr_remove_from_group" 2021-03-12 08:02:05 -08:00
Laxminath Kasam
d45f83b5bf soc: swr-mstr: Add out-of-bound check
Update out-of-bound check in parse swr port mapping.

Change-Id: I3735ff68c293fdb96dd7b004438faa999195adb2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-11 12:28:19 +05:30
Elliot Berman
1fe6a50bfb Android.mk: Fix typo in swr_dmic_dlkm
LOCAL_MODULE_KBUILD_NAME should be a/c/swr_dmic_dlkm.ko, not
a/c/swr_dmic_dlkm.o. This can confuse build system later because it
treats this intermediate file as a fully linked DLKM.

Change-Id: I2723d40c691005f7fac8a85a86cdd36989c1d046
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2021-03-10 08:56:20 -08:00
Meng Wang
eda9e79453 soc: swr-mstr-ctrl: remove unnecessary check in swr_remove_from_group
swrm->num_cfg_devs is never changed and it would cause
swr_remove_from_group doesn't work. Remove swrm->num_cfg_devs
to fix this issue.

Change-Id: Id3e39e3e95dfa32e1d81234b1669af3d2b6737bf
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-09 14:47:09 +08:00
Laxminath Kasam
b6306ce966 asoc: lpass-cdc: Update path_gain common for RX/WSA
In unified compander design, path gain for rx and
wsa macros vary. Update common logic to use
and derive required path_gain setting for respective
macros.

Change-Id: I64dcb4e36a703e8effd069d2c68b7045920a77b0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-09 12:12:01 +05:30
Vatsal Bucha
79d3ed87ca asoc: codecs: fix race condition of core vote and reg access
Auto suspend timer for core vote is triggering before read write complete.
Move the auto suspend of core vote to post read write operation.

Change-Id: I758cf57bde4e0b56320ef18f6f17adc655fc8fcb
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-03-08 06:24:35 -08:00
Laxminath Kasam
45d07c545c soc: swr-mstr: Update master port max check
In pcm port config, update max port check.

Change-Id: I6e0aa683137678962827469914633adade937132
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-08 13:51:37 +05:30
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