Wykres commitów

3701 Commity

Autor SHA1 Wiadomość Data
Laxminath Kasam
01756036b5 asoc: lpass-cdc: Update swr pdev initialize order
During sound card register init call, if swr pdev
is not initialized yet respective soundwire port
config is not updated to soundwire controller device.
In macro drivers, update swr pdev into macro private
data prior to platform device add.

Change-Id: Ifa67471cfc7a10b102b573df6285e598bb0b5e5e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-04-26 07:50:25 -07:00
Meng Wang
195771b877 asoc: lpass-cdc: update correct offset for compander and softclip
Update correct offset for compander and softclip.

Change-Id: Ic4071a25911db0c6c57d550e98d63e663354f62d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-04-26 05:47:12 -07:00
Linux Build Service Account
c979dac299 Merge "asoc: lpass-cdc: Update ch_mask for wsa2_macro" 2021-04-21 01:36:12 -07:00
Meng Wang
d5cfb617e3 asoc: lpass-cdc: update correct offset to set IIR1 registers
Update correct offset to set IIR1 registers to make sidetone work.

Change-Id: I94cc7f54c5d68954565d683aee0d3e887eebedb3
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-04-21 00:35:23 -07:00
Laxminath Kasam
fefa2893b5 asoc: lpass-cdc: Update ch_mask for wsa2_macro
Update ch_mask of WSA2 macro to return based on
4-channel DMA support.

Change-Id: Iea4800dc85bf6bf1d250dfca214c58925ea328ab
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-04-21 00:35:20 -07:00
qctecmdr
d7a73f35b7 Merge "msm_common.c: fix dereference of pointer 'kctl_pdata' before NULL check" 2021-04-14 00:13:12 -07:00
Vignesh Kulothungan
e334b71c41 dsp: probe defer when remoteproc is uninitialized
There can be race condition that audio_notifier probe
function is called before remoteproc-adsp driver instance
is initialized. In such case, NULL handle would be returned.
It should not be treated as unrecovery error. Update return
status to EPROBE_DEFER upon getting NULL handle back from remoteproc

Change-Id: Id9d182949d12923a25b582142e3fe8bad85e19de
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Signed-off-by: Patrick Lai <plai@codeaurora.org>
2021-04-09 16:21:37 -07:00
Meng Wang
1167850c11 asoc: codec: change log type to reduce bootup log
Change log type from dev_info to dev_dbg to reduce
bootup log.

Change-Id: Id0c3dcec9f6658c5d5ae5833c356ac9193c64b55
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-04-07 08:31:58 +08:00
Harold Tan
fdab4dc6bf msm_common.c: fix dereference of pointer 'kctl_pdata' before NULL check
Change-Id: I8d7843b13cdfe3b0e1783acc662e4d06ae7a739a
Signed-off-by: Harold Tan <harotan@codeaurora.org>
2021-04-01 23:06:41 -07:00
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