Commit Graph

1478 Commits

Author SHA1 Message Date
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
Laxminath Kasam
a8ed68fe7e asoc: wsa883x: Update OTP_REG_0 as volatile reg
For WSA variant info is available in this register
OTP_REG_0. Make it volatile read-only register
to always read from hardware.

Change-Id: I1c543875748d08304b4abe6c73594bc116d08c6d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-04-15 14:18:04 +05:30
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
Linux Build Service Account
abe9637cc4 Merge "audio-kernel: Enable hdmi codec driver for taro" 2021-03-29 19:06:04 -07:00
qctecmdr
9cd17829df Merge "asoc: mbhc: disable/enable BCS for all headset types" 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
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
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
a09be5f422 Merge "asoc: lpass-cdc: Update path_gain common for RX/WSA" 2021-03-15 08:57:25 -07: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
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
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
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
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
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
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
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
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
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
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