During SSR and headset detection/removal interrupt
concurrencies, ssr_lock can lead to serv reg ack timeout
issues. Remove this synchronization to avoid this issue.
Change-Id: I242a013a7e9d833db21d737cbdfea2d84bbd29fa
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
In order to synchronize the core and audio hw votes
in SSR use cases, vote or unvote for these
based on clock count.
Change-Id: I0047e2cc689cc96b34992e5f6f59dae84d1d4e4b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
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>
Add wcd937x codec support in machine driver for
lagoon.
Change-Id: I4128b6026e5cc8a597fb7acd152fe9025060b442
Signed-off-by: Kunlei Zhang <kunleiz@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>
Add support for audio haptics in the machine driver.
Change-Id: Ie0509e44b5a2247fb3ad2f24adb5c9b2865a5874
Signed-off-by: Sudheer Papothi <spapothi@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>
In pulseaudio, prepare comes just after open for every
substream in loopback cases, but the 'audio_client'
is not allocated for the first substream in every pcm.
And the returned error causes the failure of pulseaudio
initialization for all loopback cases.
Change-Id: I7fb6c1f23b9cf2660e4dd519a731c7e13a809a4a
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
ADM supports certain modules that can have very large calibration sizes,
in such cases the calibration is expected to be persistent in memory.
Add new cal type ADM_AUDPROC_PERSISTENT for this purpose.
Change-Id: If85c0b6675ea7481c7d71d5c0d770bc129332026
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
Add spinlock in callback func to avoid race condition
between session_free and q6lsm_callback.
Change-Id: Ic008bf17693a2c2217c8933c2e52a7965c249bda
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
ADM supports certain modules that can have very large calibration sizes,
in such cases the calibration is expected to be persistent in memory.
Add new cal type for this purpose.
Change-Id: I2d1fb219a3748d0ead5ca2199da2b55669f2550e
Signed-off-by: Ramlal Karra <rkarra@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>
RX Master does not support div2 clk switching as div2_en bit
for rx master is floating. Do not do clk switch for rx master.
Change-Id: Iee1716fe892e792ffd17d0861a807e3711cee5d5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add a new fe dedicated for hearing aid and the support
of reading data from a new proxy port.
Change-Id: Id2e8ade6bfe5412ca6520d3cff70d6eebad7d7cc
Signed-off-by: Zhou Song <zhous@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>