Commit grafiek

3692 Commits

Auteur SHA1 Bericht Datum
Vignesh Kulothungan
3e64caacf8 dsp: initialize head of client linked list
Client list head is initialized during audio notifier probe,
and clients cant be added to the list before it is initialized,
which can lead to undesired behavior.
Initialize client list head during declaration.

Change-Id: I03fe218399662df8ac0665f34273c8e7749c1ad2
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2021-04-01 10:25:49 -07:00
Meng Wang
37b25ca9ac soc: swr-mstr: update logic to dump soundwire register
Some soundwire register dump is skipped with current logic.
Update ppos logic to dump all soundwire registers correctly.

Change-Id: Id053e2b71705ca17caf2de2bb85f8c987790099a
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-30 08:39:20 -07:00
Linux Build Service Account
abe9637cc4 Merge "audio-kernel: Enable hdmi codec driver for taro" 2021-03-29 19:06:04 -07:00
Vikram Panduranga
9ec6a7fe92 dsp: remove export symbol for static functions
Export symbol cannot be added for static functions.

Change-Id: Ief55b7868f2c16e5a11681e24432561d45765e52
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2021-03-24 10:31:39 -07:00
qctecmdr
9cd17829df Merge "asoc: mbhc: disable/enable BCS for all headset types" 2021-03-24 01:58:25 -07:00
qctecmdr
33830980fb Merge "asoc: move some kernel headers to vendor SI" 2021-03-24 01:58:25 -07:00
Meng Wang
06e614b09f asoc: move some kernel headers to vendor SI
Move some audio kernel headers to vendor SI.

Change-Id: I41df0cdb2789359e1fded84ec0bf6c30eaa4a25f
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-24 14:10:02 +08:00
Phani Kumar Uppalapati
d689e0abe2 audio-kernel: Enable hdmi codec driver for taro
Enable hdmi codec driver compilation for taro
platform.

Change-Id: Ic0912d56427cb2b98d816258c79a7609f4237349
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2021-03-23 17:53:19 -07:00
Meng Wang
c33716c930 soc: swr-mstr-ctrl: update sampleinterval low only when disconnect swr port
Register SWRM_DP_PORT_CTRL_BANK only has sample interval low.
When disconnecting swr port, only update sampleinterval low for
active port.

Change-Id: I79e52a54c5ff1d08cf320835a8401041a10b8181
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-23 15:23:09 +08:00
Meng Wang
932b967501 asoc: lpass-cdc: remove old lpass cdc version check
lpass-cdc only support new codec after 2.5 version.
Remove old lpass cdc version check.

Change-Id: I54a53edf5bdb92f78b43d96e9413f64b0e06c306
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-22 18:25:40 -07:00
Laxminath Kasam
c5500dc6dd asoc: lpass-cdc: Add support for ADIE RTC for version 2p5
Add LPASS-CDC version 2p5 for version read.

Change-Id: I2c9fe054d18fb9f2521c0d007c1736ade31ff24b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-03-22 08:52:39 -07:00
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
Meng Wang
efae28bba9 asoc: mbhc: disable/enable BCS for all headset types
When EU headset is inserted into US headset jack and corrected as
right jack type, BCS will not be enabled. Remove the headset
type check to disable/enable BCS for all headset types.

Change-Id: I9898581727b74795cb357a19a2489761aa294f3b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-03-18 16:19:08 +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