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>
Update mask of wsa macro to apply sample rate
as per config send during hw_params at powerup.
Change-Id: Icf9b40fecf655c06cc60d56ac31808e886f8a49d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Update haptics playback sequence to properly disable the soundwire
ports during the teardown path.
Change-Id: Ic6f23c8dae172104f8ae4659293b5ec6ce4ffa1f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
If va_macro_tx_va_mclk_enable returns error,
va macro autosuspend will not be called.
Add autosuspend before return.
Change-Id: Iea3728fab2d240514ca4a7e02ef535edce977ee8
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Enable and disable FS_CLK gen at every
mclk enable and disable call to handle
fs_clk gen count.
Change-Id: I87e1cf112a48029cf0d6e7227fcc5167e973fdad
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
During SSR/PDR, bring down wsa at down
event and restore after SSR up event.
Change-Id: I9a8d3c109144cb0a911cd7597bffc220b0ce95b7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add routing_lock mutex to protect global variables in _get() & _put()
callback of Listen App Type Config mixer control.
Change-Id: I6857a6e72dcb7f21633919b716910577af4906d2
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
In WSA analog driver, disable MCLK only if clock enabled.
Change-Id: I3a6aa42dc258e3c6ad1ceccdf74f0136338d79b2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
For bolero 2.x, update dmic clk_div to use 1.2M
instead of 600k if non-island usecase.
Change-Id: Ia057283c164de576cfd05f4c64f6db24db589ead
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Glitch is coming sometimes during amic record.
Correct sequence to resolve the glitch.
Change-Id: I3c062632229826f6fe32e2f1ea9e07381c21d902
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
When multiple LSM sessions are running, lsm port index might
be overwritten with index of different sessions during
concurrent LPI and Non LPI session switches. Maintain
lsm port index on a per session basis to avoid this issue.
Change-Id: I943ea7899b977e06f467a140a9d1c9feb31c58bd
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Remove soundwire driver ops to avoid deadlock during audio
sub system restart.
Handle SWR DMICs enable/disable during usecase.
CRs-Fixed: 2648763
Change-Id: I73cc95ae389da9dee742544f29ceca9d9b7ac9c6
Add SENARY_MI2S_TX to ec_ref_rx and ext_ec_ref_rx so
it can be used for Audio EC reference and Voice
external EC reference.
CRs-Fixed: 2576685
Change-Id: I08253e705f26293255eea41140fd3461ee300b6b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Doa tracking params are applicable only for LE platforms.
Add respective check for the same. Also add config to
enable doa params for LE.
Change-Id: Ia8c2fd095deb44a3dd0b958da0b73c94dbc7d819
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
There is higher noise during headset btn press on some
headsets. Change hold time after button release to 600ms
to resolve the noise.
Change-Id: I87e5e13ce39849090da3d3e50ec53e7fd5fdc0e7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add DOA_PARAMS_ENABLED flag to enable tracking params for LE.
Change-Id: I54f40a72338ab09e43d002d19c74f845c5afcd49
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add mixer control support to send ffecns freeze
event.
Change-Id: I86bfd27aac312f85ebbde1f35ff4f65f589c6fec
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
Currently, the length of timeout in adm_open for waiting response
from ADSP is 1 second. To prevent unnecessary timeout that results
adm_open failure, increase the length of timeout to 2 seconds.
Change-Id: I670f44964538c3176130c4bb5f8b7a3b3eaf8d8b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Handset record does not resume if pdr is performed
during record. Make VA DMIC_CTL registers as volatile
to write proper value of register to hw.
Change-Id: I2cc10d2eab18e3e8126c56caffa126195c02b4e3
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>