提交图

1865 次代码提交

作者 SHA1 备注 提交日期
qctecmdr
966a448ec3 Merge "asoc: codecs: lpass-cdc: remove pre ssr notifier call" 2023-10-13 05:48:48 -07:00
qctecmdr
f28495fb99 Merge "asoc: wcd939x: Support xtalk for high voltage mics" 2023-10-13 05:48:47 -07:00
qctecmdr
8266d7edb3 Merge "asoc: mbhc: update the usbss switches once the removal is done" 2023-10-13 05:48:47 -07:00
qctecmdr
b2b013a2b6 Merge "asoc: codecs: wsa883x: remove handling for pre ssr event" 2023-10-13 05:48:47 -07:00
qctecmdr
b8620755c2 Merge "asoc: codec: wcd939x: Update the readable swr slave registers" 2023-10-13 05:48:47 -07:00
qctecmdr
8c3ce03a03 Merge "asoc: codecs: wsa884x: Remove pre ssr handling" 2023-10-13 05:48:47 -07:00
Vangala, Amarnath
daea160320 asoc: lpass-cdc-va-macro: revert reset Sampling rate
Sampling rate of the decimator is reset to hw reset value during
power down event in existing code. This code was implemented for
 a safety precaution.
Remove this code as it is causing a side effect for VA use cases.

Side effect of existing code: during successive VA use cases runs,
Sampling rate is not updated as the device is not closed completely.
Due to this, decimator runs with incorrect sampling rate for
 successive runs and causes failure.

Change-Id: I5e60c656043d06c3d999de183698adfffdaa44d1
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2023-10-11 12:04:26 +05:30
Prasad Kumpatla
08004d8420 asoc: mbhc: update the usbss switches once the removal is done
update the usbss switches only once the HS removal is completed.

Change-Id: I050b30c2c407f189cefed56ec137848efb45e5b4
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-10-05 11:28:56 +05:30
Sam Rainey
08bc673260 asoc: wcd939x: Support xtalk for high voltage mics
Update zdet and xtalk to support high voltage microphones
with improved accuracy.

Change-Id: I4b0af5ade7f653de4a938162302ec21c4a09891f
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-09-29 16:56:12 -07:00
Eric Rosas
7f46f83774 asoc: Improve msm-cdc-supply vote checks and messages
In msm-cdc-supply, add checks to prevent regulator_disable()
from being called if the cdc vote has already gone through.

Also add error messages if this happens and also add debug
messages whenever on-demand supplies are getting enabled/disabled.

Change-Id: I696be0a1ea638ffcf903e81a8b61c6a8dde984a8
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-09-28 08:31:09 -07:00
Vangala, Amarnath
3c259f7f3b asoc: codecs: lpass-cdc: remove pre ssr notifier call
Remove the PRE_SSR blocking notifier call.
This is not required as early down event is not handled.

Change-Id: Ie448fa2af92edd484d282200cf350c6bddc5f99d
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2023-09-25 01:40:12 -07:00
Vangala, Amarnath
d326604d2f asoc: codecs: wsa884x: Remove pre ssr handling
Remove handling for PRE_SSR event.
Move the gpio handling during SSR to SSR UP event.

Change-Id: I2bb1b66db455c6211f1bf12c9e19d7e306a6243a
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2023-09-25 01:39:08 -07:00
Vangala, Amarnath
eac0cbb3ae asoc: codecs: wsa883x: remove handling for pre ssr event
Remove handling for PRE_SSR event and move gpio handling
 to SSR_UP event.

Change-Id: Ia4dd87bdcf2f21376fa84e0f447d978ae222e816
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2023-09-25 01:38:39 -07:00
Faiz Nabi Kuchay
80d2171c35 asoc: Add wcd937x support for Cliffs
Add wcd937x support for Cliffs.

Change-Id: I21ca52133b40b621a36a82f0caa2366a1461d255
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-09-25 13:10:27 +05:30
qctecmdr
e3de149b42 Merge "asoc: codecs: update max sampling rate of wsa881x analog driver" 2023-09-01 14:28:55 -07:00
Sairam Peri
6e38fad118 asoc: codecs: update max sampling rate of wsa881x analog driver
Updated the wsa dailink to support 384Khz HS playback.

Picked latest codec fixes to kernel6.0.

Change-Id: Ia570dc3f3ed55415ac374e1ba3bb6f2277dade96
Signed-off-by: Sairam Peri<quic_peri@quicinc.com>
2023-08-31 23:33:37 +05:30
Prasad Kumpatla
76549b668e asoc: wcd-mbhc: move component inside the WCD_USBSS
moved compponent inside the #define of WCD_USBSS, to avoid
compilation issue for unsed of WCD_USBSS_I2C in some targets.

Change-Id: Ia2f64182aa8330db10122e70f12066ffebe9d16b
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-08-31 15:43:40 +05:30
qctecmdr
513787652f Merge "asoc: wcd939x-mbhc: Support zdet ext FET config" 2023-08-19 00:58:49 -07:00
qctecmdr
9b48000bd5 Merge "asoc: wcd939x: Add xtalk/linearizer sysfs params" 2023-08-19 00:58:49 -07:00
qctecmdr
e8568049e3 Merge "audio-kernel: wcd: Disable 1M Pull-up resistor" 2023-08-18 02:19:20 -07:00
Phani Kumar Uppalapati
3fca2376eb audio-kernel: wcd: Disable 1M Pull-up resistor
1M Pull-up resistor within WCD causes LPD (Liquid Presence
Detection) failures. So add support for disabling 1Mohm
Pull-up resistor. Re-enable it whenever wcd enters into
audio mode.

Change-Id: Ib3115315bc61d4e6126ddf688653182417d5d54d
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-08-15 19:27:16 -07:00
Vangala, Amarnath
c2e7e60fde asoc: codecs: lpass-cdc: reset the decimator sampling rate to default
While disabling the Decimator, reset the sampling rate to default value.

Change-Id: If07aeb69ddff459d0fdf8dfd4ccb7b3d8ed97743
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2023-08-15 17:22:27 +05:30
Sam Rainey
3013d88446 asoc: wcd939x: Add xtalk/linearizer sysfs params
Add sysfs parameters to configure xtalk and linearizer
within wcd-usbss for pineapple.

Change-Id: Ie246cb66c1332727b748d648bb7b21a0f4cda377
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-08-14 18:18:26 -07:00
Sam Rainey
7610f7b4de asoc: wcd939x-mbhc: Support zdet ext FET config
Capture, write, and restore USB-SS registers relating
to the external FETs during zdet to set the proper
configuration for each channel measurement.

Change-Id: I0be46619312b66017993f9ffa5b8eab968e4dda5
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-08-14 17:24:28 -07:00
Ganapathiraju Sarath Varma
ffa772dcc9 asoc: cdc: mbhc: Return from hs_rem_irq, when hs is already removed
add check to return from the hs_rem_irq( ) if the headset
removal is already reported.

Change-Id: If9ffc1a471b80f8c9d01875b531748327032926a
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2023-08-04 01:06:09 +05:30
Prasad Kumpatla
0a93a99156 asoc: wsa884x: adjust the deglitch settings for wsa884x
Issue: when we change the UVLO_DEGLITCH_SETTING (0x3460) 6.8ms
and above, we can’t hear any audio playback from the Music app
even at max voltage (4.1V).

HW team suggest to change the UVLO_DEGLITCH_SETTING from 0x1B
to 0x1D and WSA884X_PA_FSM_TIMER0(0x3433) to 0xC0. By these
two settings playback is not getting mute.

Change-Id: I5d2d57c26d7f467ba3d2231f1642f34643f6d716
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-08-01 00:07:45 +05:30
qctecmdr
deeec3d073 Merge "asoc: lpass-codec: enable TX Core clock before codec reg access" 2023-07-27 18:34:19 -07:00
qctecmdr
36aae5ef90 Merge "asoc: codec: Unvote wcd939x vdd-px supply" 2023-07-27 18:34:19 -07:00
Vangala, Amarnath
a267ec5239 asoc: lpass-codec: enable TX Core clock before codec reg access
Enable the TX Core clock to enable access to lpass-cdc registers.

Change-Id: I3088e06e9e77ef24b2e4e802852cc3bb65542f5c
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
2023-07-25 09:27:58 +05:30
qctecmdr
07d7140867 Merge "asoc: codec: Update efuse param" 2023-07-21 19:58:19 -07:00
Eric Rosas
390ff5ccb9 asoc: codec: Update efuse param
Use correct Efuse register value for headphone 
right-channel impedance calibration.

Change-Id: Ief075b18621dd55d5d636ab5e591b9bf07da5ac8
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-07-20 15:11:11 -07:00
Eric Rosas
af6068fd31 asoc: codec: Unvote wcd939x vdd-px supply
When codec goes into suspend, disable vdd-px which
will cause an unvote in PM.

Change-Id: Ia9f958d67fc57dbf3932733797bce7b0eb742363
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-07-20 11:54:57 -07:00
Nagarjuna Paladugu
f2b64bd0b2 asoc: Bringup audio kernel for Auto AR GVM makena and lemans
audio kernel bringup changes for auto makena and  lemans LAGVM

Change-Id: If26f743a31ec68d51678d3fd2b409578bc98d2e1
Signed-off-by: Nagarjuna Paladugu <quic_npaladug@quicinc.com>
2023-07-18 20:56:41 +05:30
Sam Rainey
dc708f8a73 asoc: wcd939x-mbhc: Add zdet ramp down timeout
Add impedance detection ramp down timeout after a given interval.

Change-Id: Ia03bc82ec0bb653e6ccd1b6d14c1a9cb996e8ecd
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-07-05 11:51:40 -07:00
qctecmdr
eff813c736 Merge "asoc: codec: Add surge reset routine for wcd939x" 2023-06-29 19:10:27 -07:00
Eric Rosas
4d7a95f88e asoc: codec: Add surge reset routine for wcd939x
Enable wcd939x surge reset routine. Add callback for
the event within mbhc and enable it for wcd939x.

Change-Id: Iabc8c3367ae2eca5982db4526c6860e5eba63b76
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
2023-06-29 14:17:16 -07:00
Sam Rainey
68eb5f668d asoc: wcd939x: Add linearizer support
Add linearizer software changes, including calculating and writing
software calibration codes.

Change-Id: I964c23cbd1806c25d422bac606ed51e5dc0212e3
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-06-29 08:52:25 -07:00
Sam Rainey
4e6ea745c2 asoc: wcd939x: Update MBHC zdet and xtalk
Update MBHC zdet for Harmonium 2.0. Update impedance parameters and
xtalk implementation.

Change-Id: I85e0a5c8816cd54d4892a10ac18bdf1420e92e89
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2023-06-29 08:50:27 -07:00
qctecmdr
069af6015e Merge "asoc: wcd939x: Use local trim for version 2.0" 2023-06-29 04:43:40 -07:00
qctecmdr
c9aa83ed22 Merge "asoc: wcd939x: add support for 2Vpk and 1.4Vpk modes" 2023-06-29 01:12:50 -07:00
qctecmdr
69a087fc8e Merge "asoc: lpass-cdc: Add check for array bound overflow" 2023-06-29 01:12:50 -07:00
qctecmdr
b0ea759df3 Merge "asoc: lpass_cdc: Program FS_CTL reg based on input used" 2023-06-28 13:17:46 -07:00
Phani Kumar Uppalapati
1ddeec779c asoc: wcd939x: Use local trim for version 2.0
For test program < 3, use local default trim values
for harmonium 2.0 version.

Change-Id: I8cdcbe83ddae4626cef1f3dc4bfab3b2c285a0ca
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-06-27 10:15:50 -07:00
Phani Kumar Uppalapati
429f5cc596 asoc: wcd939x: add support for 2Vpk and 1.4Vpk modes
Update wcd939x register settings for 2.15V VDD_RX supply
and for 2Vpk and 1.4Vpk modes depending on the headphone
load impedance values.

Change-Id: Iae5e6087fe96d22c9b9f8b755c468d2e6dface4e
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2023-06-27 10:13:48 -07:00
Deepali Jindal
3daac9507a asoc: lpass-cdc: Add check for array bound overflow
In lpass_cdc_wsa_macro_config_compander function,
add check for wsa_sys_gain array's index to make sure
it won't go out of bound.

Change-Id: I9d8512726de959e7a0d9e875e966140d70412e25
Signed-off-by: Deepali Jindal <quic_deepjind@quicinc.com>
2023-06-22 10:53:05 +05:30
Prasad Kumpatla
d6edf04acd asoc: codec: wcd939x: Update the readable swr slave registers
Update the readable swr slave registers while taking the regdumps.

Change-Id: Id38efceb49b6a223f51c24c6d88865b2116b3d29
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2023-06-20 02:39:30 -07:00
Ganapathiraju Sarath Varma
d41a40721c asoc: lpass_cdc: Program FS_CTL reg based on input used
Program WSA_DATA_FS_CTL reg based on input used(wsa rx/wsa2 rx)
and also update the channelmap based on mixer cntl.

Change-Id: I0cfac1d9b25dd1211824bcea2753bb6c1131f767
Signed-off-by: Ganapathiraju Sarath Varma <quic_ganavarm@quicinc.com>
2023-06-13 07:57:21 -07:00
Faiz Nabi Kuchay
e460678dab soc: codecs: remove redundant WSA AIF_CPS control
Remove redundant WSA AIF_CPS control.

Change-Id: Iae150ed81acfa4013a08b90e10744e6c49b30537
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-06-11 22:50:04 -07:00
qctecmdr
0709b47e97 Merge "asoc: wcd939x: avoid static sbu1/2 connections to gnd/mic" 2023-06-11 09:17:21 -07:00
Faiz Nabi Kuchay
42973a5dfc asoc: codecs: Enable main path clk before enabling mix path
Mix path clk is gated by main path clk, as per current logic we are not
enabling main path clk for mix path use-cases.

Enable main path clk before enabling mix path for UPD dedicated backend
to work.

Change-Id: I209d1eaf25f4ef08bbd534f5ecc858e465ce7e18
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
2023-06-06 11:39:25 -07:00