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>
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>
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>
Add machine driver support for WCD937x.
Change-Id: I863b95255caf99565dfc7c74b0f54891f58dc0df
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
As per current code there isn't a way to load custom adsp-mdt image.
Use kernel api to load custom adsp-mdt.
Change-Id: I42f1186741dff0b9bd953e536eb33907d3c6cb90
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
Enable wcd938x codec for blair and holi platforms.
Change-Id: I43f8feaace951ad439fcbba86204113b2b95330b
Signed-off-by: Sairam Peri<quic_peri@quicinc.com>
add dt flag for enable and disable sleep api.
Change-Id: I97e9aa8c319d478b2fa979c38f5cc4559e1fb435
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Enable compilation of wcd937x on palawan.
Change-Id: Ib9521fe83cba88a1ac36972938f2a3921d5efecb
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
Modify the inputs of the target registration to accept
multiple variants and allow for an optional "product"
parameter.
Also some refactoring done to promote ease of use.
Change-Id: Ib18cd36734fc35326b8dc675f548d47d9a95cf1c
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
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>
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>
Add support for CPU LPR API for pineapple target.
Change-Id: Ic934591b254fcf7af41c4e49396c81ba75530529
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
While disabling the Decimator, reset the sampling rate to default value.
Change-Id: If07aeb69ddff459d0fdf8dfd4ccb7b3d8ed97743
Signed-off-by: Vangala, Amarnath <quic_avangala@quicinc.com>
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>
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>
Add support for modules to be built with Bazel for Blair.
Change-Id: I7b15deca72d7411c1ee9630b325c47777749c6fe
Signed-off-by: Satish Babu Patakokila <quic_spatakok@quicinc.com>
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>
Post SSR when audio notifier service up notification
is received lpi_dev_up flag is not updated.
This is causing lpi read/write failures.
Update lpi_dev_up irrespective of initial_boot.
Change-Id: Ifab3709c45144988deb36192d0b1da7da77939d0
Signed-off-by: Sairam Peri <quic_peri@quicinc.com>
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>
Add logic to handle invalid address passed to swrm_peek and swrm_poke
debugfs node.
Change-Id: I46443734e6b4b758276cdf8fd28a022d37112bfc
Signed-off-by: Faiz Nabi Kuchay <quic_fkuchay@quicinc.com>
Updated FM dailink to btfm_fm_slim_tx to enable FM usecase.
Change-Id: I053f28517dd4a31bdc6e156a6f57de9163a751b8
Signed-off-by: Sairam Peri <quic_peri@quicinc.com>
Use correct Efuse register value for headphone
right-channel impedance calibration.
Change-Id: Ief075b18621dd55d5d636ab5e591b9bf07da5ac8
Signed-off-by: Eric Rosas <quic_erosas@quicinc.com>
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>