Update SOC_SINGLE_SX_TLV to SOC_SINGLE_S8_TLV to make codec
driver compatiable with upstream driver.
Change-Id: I4061b015d715978f3b294ad630f53b64bf66c2b7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
HW vote and unvote is currently called from multiple
clients leading to synchronization issues
during SSR/PDR scenarios. Synchronize all the vote requests
by using digital codec resource manager.
Change-Id: I7e63f69ab5d761a3bb4c7ce70bbef2e8bfd76cfb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
AFE driver maintains the clk id for each port.
AFE driver has no clue of the master port in META I2S port.
Add support to set the clk id for META I2S port.
Change-Id: Ic531e94df5503f5ff95364830c5177e9cd86af6c
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Add mixer controls support in routing driver to
adjust the source PLL clock drift.
Change-Id: I211330793f8650902130905f308dc5d4b73e09fa
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
- Add support to adjust drift in audio interface
clock source PLL.
- ADSP adjusts the source clock based on clk id. Add support
in AFE driver to get clk id based on the AFE port.
Change-Id: I45ceb6579bb15e32541051e0ba936a2d903e4923
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
When adsp variant read from fuse registers is not
supported, add support to read the fw name
and load the same.
Change-Id: Icf9aeee8b4c607a6f768f0d73ab0e55d78dc8ac9
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add default case for switch to avoid the
Null pointer dereference for the map and num_ports
variable in for loop.
Change-Id: I59c9dc6e5396bcb409876378c811143da1c81551
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
For RX DC droop setting, ensure update proper
value during powerup/powerdown based on
sample rate.
Change-Id: I269d41452911e1999b2dbdf4fa22e383aa973848
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Update PDM watchdog interrupt sequence for rouleur
codec. Add HPH PA gain registers in regmap and update
defaults. Update mic bias register bits and rouleur
version for ADIE RTC to work.
Change-Id: I1bbb41efcdd9a0a8b38fcd4beadbd5d639a4b858
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
As rouleur codec supports only 5 buttons and headset
vref max value is 1.7V, use a separate mbhc config
structure to initizlize mbhc.
Change-Id: Icd78d8c10f3d4dd3585c76c407d2d323c20cbe3f
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Before access the wsa register check the spkr status bit in
power-down sequence.
Change-Id: I5e07ee56e17701275784fd4c413bc214c5893989
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>
Add port config for Rx swr master in order to
support the rouleur codec in scuba target.
Change-Id: Ic278d02f222686afc6ff976c4b1c3bb499ed903f
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
There is noise on ear path during hph and ear concurrency.
Set proper HPH_V_PA voltage when both hph PA is in
class-H mode to resolve noise.
Change-Id: Ifbbfb5691687dcb2202358c1e387252954d58db2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Fix pop at end of DSD playback by muting
csra devices during hw_free.
Change-Id: Ie084ade6aeb310ee28e4478b4673075ca69153c9
Signed-off-by: Sanjana <sanjb@codeaurora.org>
Update mute register of csra66x0 codec when
called from hw_free api.
Change-Id: I728d1ca3076899ad0e6dea4dcac28416b3e40b18
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Fix qos value to 300 micro seconds to prevent core
from going into low power mode when low latency
session is active.
Also pin this qos to core 1 & core 2 where audio
and glink threads are running to let other cores
to go to low power modes if possible.
Change-Id: Ic97936303b5006c44ec2bb080e3558e54f6d8068
Signed-off-by: Zhou Song <zhous@codeaurora.org>
Remove reslock usage from device wakeup vote and unvote functions.
Mutex lock 'reslock' is to used only within runtime resume
and suspend functions, to avoid race conditions between them.
Change-Id: I221b00db2e762a0803b898a62cd98db1fe3ae3fa
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
spin_lock is acquired in process context and trying do the
operation in process context,while the interrupt came and
the same lock is trying to take in interrupt context which
leads to deadlock.To avoid this we are using spin_lock_irqsave
instead of spin_lock.
Change-Id: I9c4a3ac65d92b0612d7c4845212647c51a72065b
Signed-off-by: Prasad Kumpatla <nkumpat@codeaurora.org>