Update register value for new fab id for tanggu.
Change-Id: I13594dbd311bbeab115753e0bec1a748158f8100
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Crash is happening in q6afe_get_avcs_modules in
APTX-Adaptive case. Check for format_id as
aptx_adaptive or lc3 to resolve crash.
Change-Id: I3e47bf38010a20df746455e35e316fa2103bc04a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Depending on efuse reg value, if fab id is enabled,
change resistor divider output to P12 for both hphl and hphr.
Change-Id: If5e0caac2648f6e0b8c089bb56883a442b5a8ecd
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
To avoid out of bound value of output/input
channel add the check.
Change-Id: I25b7616d6fc08c2d0bb530dfb1457471dc25861c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
Due to datalane mismatch, update rx frame config to use DATA_LANE0 for
khaje qrd.
Change-Id: I0f5720ab1d7b7c585f7df986481c28568385f09d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Memory allocation for wcd-cpe ramdump fails as memory is
not allocated from CMA reserve leading to CPE configuration
failure.
So force driver to allocate memory from CMA by
initializing the device’s coherent_dma_mask and dma_mask.
Fixes the SVA CPE sound model loading issue on tashalite variants.
Change-Id: Ic47017009aee666e364c7ec3ac62725c77a36b3c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
Due to datalane mismatch, update rx frame config to use DATA_LANE0 for
khaje qrd.
Change-Id: I0f5720ab1d7b7c585f7df986481c28568385f09d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Random issue of delayed voice component probe is observed
sometimes happening after sound card registration. This causes
voice component driver probe not getting called during card registration and
results in voice mixer controls like CVD_Version missed out from sound mixer controls.
This results in crash in audio HAL acdb initialization flow.
Fix is to check for voice pcm probe status in machine driver and
defer until done.
Change-Id: Ib4e380da90d3dd66f054b46227e9fb79648b7524
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
Register for the widgets and interconnections in routing
driver only when the respective interfaces are supported.
Add config based approach for CDC_DMA interface.
Change-Id: I56a8a3c14896cd1e267a4099e90ca480d13e2d6f
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
Added configs to disable CDC_DMA interface in sdm450 autoconf.
This is done to disable mixer controls and related
intercon routes in routing driver to avoid registration of
unnecessary sound controls to optimize audio sound card loading.
Change-Id: I6040f5f8ff5c0e09960bbb0332c7890f2b183f04
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.
Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
Add support of wsa883x on qrb5165.
Since both qrb5165 and sxr2130 use the same kona`s config,
qrb5165 also needs to support wsa883x compilation,
otherwise carsh will appear.
Change-Id: Ibc9606b41bc3ae89672f8c4588c91c601cd8ea4c
Signed-off-by: Shuai Zhang <shuzhan@qti.qualcomm.com>
Enable wsa881x-temp-sensor only for bengal, since
sdm450 uses both analog and digital wsa and would
cause symbolic error as wsa881x-temp-sensor would
be enabled twice.
Change-Id: Ibe78bee9a4400f5c4a355056b53d0bf726546f55
Signed-off-by: Sujin Panicker <c_spanic@qti.qualcomm.com>
Static route created between playback/capture widgets of
cpu and codec dai of same dai link cause codec path to get powered up first
followed by BE DAI start during device switch use-case like
audio playback on wsa-speaker and switch occurs to headphones upon insertion,
leading to audio playback failure.
Set the dynamic bit of BE DAI links of slimbus to update the backend parameters
before codec path setup.
Change-Id: I876efc10dace85069f980da864f017feee1b40ba
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
In analog codec and soundwire codec probe functions,
ADSP Audio PD up status is not checked which leads
to LPASS registers access during bootup
even before ADSP is ready.
Check for ADSP ready state in the respective
probe functions to fix this.
CRs-Fixed: 2202958
Change-Id: I8e05d30ef55cde58e8002d1040b3701280b91861
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Catch any unexpected behavior with else case to
prevent invalid memory access.
Change-Id: I0edad1c645031286ba0528a52fd11655f445df35
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
When afe port starts failed, allocated port should
be released to avoid subsequent allocation failed.
Change-Id: If0cacce296d14135d23bf45e47de5b253372ea31
Signed-off-by: Zhou Song <zhous@codeaurora.org>
wcd9335 codec on 8953/8937 uses div clk2.
Add support for the same in audio clock driver.
Change-Id: Ia4e40b6f7c993fc3ff9e66eebd9e08c7a9a46f23
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Add check to return if session id is invalid.
Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
Changes to align with snd_soc_component model of
kernel 4.19 to get the right component handle
for cpe and tasha codec drivers.
Change-Id: Id7a28f4957d28bdc89458cb31348e7d7a5483e56
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
VBG Fine Voltage should be changed to 0.5V for second source
target. Set it to corresponding value in init.
Change-Id: Ica73f45d7cb4f5f623d3333680894625603ca92c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>