Disable compilation of q6_pdr module for msm8937
and msm8953 SPF targets as it is not supported and also
results in secondary images build error.
Change-Id: I9590ddfdfb51c35744d4cb8e2a108f5f5449864f
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
Removed unused callback method for wsa881x analog codec
from machine driver. Also update digital codec driver name
to register the codec component successfully.
Change-Id: I1c2ada4b184ee582e657748bf883b59798dd7d34
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
Add support for external mclk configuration based on input sample clock.
Change-Id: I90b40636e6c3877c5ab9d2c2a60c4d61a83b149e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
As a part of SSR/PDR, afe_close() is called. If APR handle
is NULL, BT modules were not unloaded. Unload the modules
to recover post SSR/PDR.
Change-Id: I69bdb3ab1d55ad9a0a8ed3eed069c97af9143722
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
Avoid copy to user more than requested buffer size
to avoid memory corruption.
Change-Id: Ibf1607f777a358ebd16fd8b8728809afda34eba7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Enable compilation for msm8937_32go, 8953, sdm439, sdm429 targets.
Bring in msm8952 machine driver and SDM450 auto configs.
Update asoc, codec driver to component driver to align
with kernel-4.19 ALSA.
Change-Id: I95a6ee3dbb3b9d3b89cc6961346baf1efb3cb9c8
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
Long int negative value passed as part of ucontrol structure
is assigned to int num_app_cfg_type making it positive and
leading to overflow while populating maximum supported
lsm_app_type_cfg structures.
Change-Id: I81e3c75eea82265c8e8e1b3f8f95d9e334c895c4
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
Add support for additional TDM samplerates uptil 384KHz
and uptil 32 channels
Change-Id: Ie93da52ed524a9c14c38bec2e4af42777a397951
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Add mixer controls for TDM interface in machine driver.
Change-Id: Ic177bcde59607c7ef3aecb78dfffdaf0388ed444
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Add FE and BE support for QUAT and SEN TDM interface.
Change-Id: Ic1fb96b1d5004f07849673e1e6369609652f0dc1
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Extract clk src string from dts and update in afe.
Change-Id: I5004a5364d2d557072bbafc0c3476c50e18a4479
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Add support to update clk src array from machine driver.
Update clk src for different be ids based on clock
frequency at playback.
Change-Id: Ifa09d556fd50f9e2ddef39b5e3ddd25f579f8f6e
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
To handle erroneous sequence when HLOS audio driver registers
a FFNS topology in non-island mode instead of island mode:
Call afe topology deregister to deregister any previously
created topology before registering the topology.
Change-Id: Iff871da998847ea5d3bcee417c780b8acaf70ca3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Add mixer control and callback for selecting external mclk at start of
next playback for a particular BE.
Change-Id: Ifc25eda2f14da564c6b066eb8f76049697bbd44e
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
During SSR use cases, when AFE APR handle is NULL
and AFE close is invoked, mutex unlock is done without
locking. Fix it and bail out without unlocking the
mutex in this scenario.
Change-Id: Ia2988b56425d8c2d5c726d5860c13e655e7e4ed1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
PA_ERR can happen during speaker path setup. Log the
error status in the interrupt handler and clear the error
status for next audio playback to resume properly on
the speaker.
Change-Id: I5800d9505a3036127097745aaa880b73b3e87f30
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
As per the current design in afe, if the
afe_get_cal_topology for AFE_TOPOLOGY_CAL
or send_afe_cal_type for AFE_COMMON_TX_CAL
fails, then the voice UI calblock is fetched/sent.
This is resulting in sending voice UI calblock
on a non voice UI port during concurrent usecase scenario.
Fix is to check if the calblock for get/set is for
a voice UI port or not. Added support to send this
port id info from routing driver to afe when usecase
is enabled via mixer_control.
Change-Id: I356aae61e1b9d11324e7b9f9a57953767a64b71e
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
This reverts commit 1d2a04aed6e82771bbfa3aca65fda17385ab7ed5.
Get latency query is getting failed, as check added needs vote for adsp ready state.
We need to vote for adsp ready state and add the check condition. Reverting the change
until we come up with the proposed solution
Change-Id: I2cd1ea4a7cb8cc6b9386517dd4040cc91f10aa7d
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Swr-slv address is overwritten during wsa881x_swr_probe,
hence soundwire getting incorrect slave address. While
accessing swr master from swr slave due to incorrect
address device crashed
To avoid the issue align the debugfs similar to wsa883x codec.
Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
To synchronize codec read/write with PDR/SSR, take
lock before update of mclk enable flag.
Change-Id: I3e4faa27e2e6af71fd767a6be43bbb9d234c7192
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
When AFE returns failure in setting the digital codec
core clock during PDR, it leads to LPASS register access
which results in NOC error and AHB timeout. Put the regmap
in cache only mode during clock set failure to fix this.
Change-Id: I221bf02f32b1dae19a02435220dec8a85f5dd998
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add support to parse static cps configuration from dt.
Add support to send cps configuration for speaker protection
usecases.
Change-Id: I0166a378f24cedef07393bdbb8618df944c62984
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>