Distortion is heard during CTS audio record. Do not
add delay while toggle hpf frequency and zero gate
to resolve distortion.
Change-Id: I234cfcce43a6fb5d9c372f2655abdb2f8b5c4853
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add mixer control to support BCS SWR channel selection
in bolero.
Change-Id: Id26b20d674026d1798239c0e4e7e4c2d18ba89db
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Set correct tx frame config for soundwire port
using wcd9375.
Change-Id: Icbefda65713338908e4d94935296ff30ac4e5f9c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Some prints in the driver have NULL pointer reference, correct them and
clean up on the other possible NULL pointer reference cases.
Change-Id: Iba8682014e21dd716caaaebc1231cb4fe39bdfe1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Retrieve sample rate for VI sense and update codec settings
based on it.
Change-Id: If4341bac77ecae290c44c4412a39b9e5cbf46ac0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Micbias value set does not take effect on rouleur.
Shift micbias value to correct bits.
Change-Id: Ice083e3bc30f6e8e3fe7132c633a4043329ccfa5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add NULL check for swr dmic component pointer before
using it.
CRs-Fixed: 2666974
Change-Id: I25c14c17f820ce3be7e1c7d892a2c0e29ac2b9fc
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Hold_off bit for enabling watchdog will enable mute until
there is a block reset and watchdog bits aren't toggled.
Disable hold_off bit so that wcd is recovered from mute
instantly once watchdog occurred.
Change-Id: Ia87593ead05dde4e31a0afefd6ffaca89bb95448
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Update the configuration and gain settings as per hardware
sequence recommendation for soundwire haptics usecase.
Change-Id: I09b86026f664fec3105af4a8180168fda457d4fd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Check for valid pointer before access in wsa883x driver
to avoid dereference.
Change-Id: I1c7c158063d178b489ea1e71be745ed3ca32fb16
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
SND_SOC_DAPM_MIXER_E widget is powered up before SND_SOC_DAPM_ADC_E
which causes mute on wcd mic recording. Adjust wcd938x_tx_connect_port
and swr_slvdev_datapath_control sequence to fix it.
Change-Id: I3dbfb239dcfbd65102d0d98be40326be71cf8479
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Update HPHL and HPHR sequence to avoid clicks and pops
by setting the LDIV and RDIV values in HD2
coefficients and increasing ramp time.
Change-Id: Ib47d14255a098511393b4b75392854c8b34dc0d3
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Mute is observed in amic record sometimes in concurrency with
sva. This is because if record is over tx0 then digital clk
is not enabled. Enable clk after enabling micbias to resolve mute.
Change-Id: Iba3aa4fade0ac5889218eaee2c5d2c4bd4431d50
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Enable compander based on mixer ctl set for ear path.
Change-Id: Ie6287469f1baa9dba239d369bd5a29ed8e44522f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Remove wsa soundwire device from master device list only during
critical error and not for probe defer.
Change-Id: I5c4f71a4735de4bb459094043d41a6b5c560a6fd
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Pop is heard with special headset with silence record
during SSR. Resolve pop by allowing sufficient time for
wcd937x_reset post SSR and again initialize registers
post SSR.
Change-Id: I80e70a98a72b247dca878673a30651647b676659
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
For bolero 2.1 with SWR_TX in va macro, update SVA fixes.
Change-Id: I250df0fe476bc2c0439ab491a17dea2e7ac18707
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Playback pauses during aux cable insertion as removal of
cable is reported followed by insertion. Report removal
of current cable only when headset connected to other end
of extension cable and not lineout.
Change-Id: I08933f4a88493136a518ee72646aa10b1f06eb70
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
If button press and release interrupts occur at same time
processing button release first would treat the button event
as fake, as it is not preceeded with press event. Hence
process button press before button release in irq driver.
Change-Id: I36d5ad8a3571f4bd32d309a060a6988f29ff27ad
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Moisture detection is not disabled properly if threshold
remains set as 24k even if duty cycle is disabled.
This is leading into headset not getting detected
sometimes. Disable threshold as well if duty cycle disabled.
Change-Id: Ic90c65d8bbaa965cf147f95edf5add8980889e1f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
When LPI SVA is enabled, start recording and stop LPI SVA, wakeup irq
is not deregistered as tx_swr_clk_cnt is not 0. Add new check for
va_swr_clk_cnt to resolve the issue.
Change-Id: I441394f26b42f554169400194d021309ef70af9e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Add rouleur codec support in bengal machine driver
to create codec entry and invoke mbhc hs detect
functions for respective codecs. Correct the logic
for headset detection pull up current and
volatile registers for digital part of rouleur codec.
Change-Id: I22545dc796c215c1501e883796546c97d8ca8698
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>