TDM dai driver supports optional clk attribute configuration and
clk freq update. To configure TDM interface as PCM mode, the clk
attribute should be Q6AFE_LPASS_CLK_ATTRIBUTE_INVERT_COUPLE_NO.
Implement set_sysclk callback function to update Quaternary TDM
RX and TX clk freq.
Change-Id: I41edaa8d99325e9582e04ddb81a6ad5b5e4435bc
Signed-off-by: Cong Tang <congt@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Allocate contiguous memory for version information instead of splitting
it across the stack and heap to centralize memory and improve
readability.
CRs-Fixed: 2104576
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Change-Id: Id7b5942522da6312da57bfef3d3c0b55934fe1d7
Add the corresponding 'cap_mask' to support 4 slots configuration in
CPU DAI driver to enable 4-channel QUAT TDM recording feature on SDM845.
Change-Id: I137d874b00fadde7513ab6c843f61becc74feac1
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Add support to update QUAT TDM TX HW parameters and
back end DAI link ops to enable QUAT TDM recording
feature on SDM845.
Change-Id: If0fccafaf563f9453559a45a59300a5bec75f449
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Add apr_reset for q6core service to enable glink channel
to close and open properly after SSR.
CRs-Fixed: 2099312
Change-Id: Ia023cdb19a6a9dc7fae3e5c28ab51ddd92d37527
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
There is a chance that glink channel memory pointer is used
after free if WDSP_REG_PKT and WDSP_CMD_PKT are received at
the same time from different threads. Fix this issue by
initializing glink link state to GLINK_LINK_STATE_DOWN.
Also limit error logs to avoid watchdog timeout issues.
Change-Id: I07c4e6f12eb057405eb59f1c0d04b890fa964ce8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
In Stereo EC reference, mute is observed in VPRx output
of 2nd channel when only speaker device uses custom MFC topology.
When handset and speaker use the same custom topology, issue is not
observed. Because when DSP VPRx module creates the
custom topology with handset configuration (1 channel and
center channel mapping) and device switch to speaker occurs
MFC conversion from center to left and right channels is successful.
But in case where handset uses default topology, when device
switch to speaker occurs, VPRx creates the custom topology
with speaker configuration(2 channels and left mapping). So,
when MFC config is received, only left->left mapping is done which
leads to mute in right channel.
Fix is to send the channel mixer configuration to MFC module
so that both left->left and left->right mapping is done.
CRs-Fixed: 2102374
Change-Id: If9be09866615e6623e78f48b9841eb068c825992
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Assign channel mapping for Quad Mic voice use case
in channel info command during voice setup
as DSP requires channel mapping to be sent with
default values.
CRs-Fixed: 2097341
Change-Id: I661f845c26f8639e5e8dffa430ecc8cb3b3e8780
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
To support DLKM audio for WCD/WSA drivers on SDM845,
update conf file to install as module(.ko) for required configs.
CRs-Fixed: 2082310
Change-Id: I359799ac8c8ac050fce1eac8741837004f9f6a0b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
When there's a dynamic channel change from mono to stereo,
volume burst is observed because center channel gain for
stereo is not initialized. Initialize center channel gain
for both mono and stereo playback.
CRs-Fixed: 2095081
Change-Id: I02254b5696a17e2792ea26a2265ab01326f5cf9e
Signed-off-by: Yidong Huang <yidongh@codeaurora.org>
Add missing FE to BE link for Multimedia10.
Change-Id: Ibf9a80c942107b1f68b5954b21f87d4f7494b1fc
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
Variable 'status' is used without initialization.
Initialize it to the right value.
Change-Id: I7f43d8905d8192e5f308e9fd00a52eb531f2f698
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Remove MCLK_CONTROL and FS_CNT_CONTROL from
the list of volatile registers so that regmap
sync happens for these registers when coming
out of power collapse. These clock registers
need to be synced otherwise codec state is not
restored correctly after power collapse.
CRs-fixed: 2053506
Change-Id: I9b5385a357f9ad05ad085603410704e916e3985e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Propagate the changes based on latest snapshot
for audio kernel source tree at below cutoff of
kernel msm-4.9 -
(040750bfa78 -
"Revert "ARM: dts: msm: Add DT node for aop-qmp
clock controller on SDM845 v2"")
CRs-Fixed: 2104096
Change-Id: I0927c40b3a188dbf892e7ec4c1c7810953724929
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
The previous commit fb24ad8485a assigns obj-y with
msm_hdmi_codec_rx.o instead of appending, thus giving
compilation error as previously assigned object files
are removed.
Fix by appending obj-y with msm_hdmi_codec_rx.o instead
of assigning.
Change-Id: I7c5ea5627e2e1888e3fc0b53a6650ab64b9a29a8
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
HDMI codec driver is not compiling as the corresponding object
file is not set in the makefile.
Add object file to SND_SOC_MSM_HDMI_CODEC_RX config.
Change-Id: I6068f551db357e5bfa73ff5b51014347f38b925c
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Propagate the changes based on latest snapshot
for audio kernel source tree at below cutoff of
kernel msm-4.9 -
(aed56b2df75 - "drm/msm/sde: update te vsync enable sequence change")
Change-Id: I7ed5102146986b81e5cb9ca55432360b3549b60c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add new conf files to support sdm670 audio.
Also update sdm845 to support required configs.
Change-Id: I3b0ac16d80bba10a3226dbe5c1b39c64b5780ac9
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Enable compilation for sdm670 audio. Update
for both internal and external codecs.
Change-Id: I030837a2c0180a5a31d0ab786ad5de607027050f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
(1996ec83a45: "ARM: dts: msm: Reduce CNOC bus voting for
USB slave on SDM845")
This change is to migrate latest snapshot of kernel drivers.
Change-Id: I84669db544773d3ce9d2d5dff0ab6943bd7d8ff9
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Enable the configs for WCD DSP Glink and avtimer drivers.
Remove the CDSP Loader config as it is not audio related.
Change-Id: Ic6101e106c1e1d91bece6f53d1572507570b6b6f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Pick the WDSP-Glink and avtimer drivers from 4.9 kernel
at below cutoff -
(80be7d6a313 - "msm: ADSPRPC: Fix for NULL pointer dereference")
This changes are done to migrate wdsp-glink/avtimer drivers
to this new audio kernel techpack.
Also remove the CDSP loader from techpack audio as it is
non-audio related.
Change-Id: I4f55429c5cbcd24920fdcb8eb2fe3aec02af320e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Propagate the changes based on latest snapshot
for audio kernel source tree.
Change-Id: I15cdbf2651ee8bf70a56b08013e1fbce16859d9b
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Add snapshot for msm_sdw codec/hdmi codec drivers for SDM targets.
The code is migrated from msm-4.9 kernel at the below cutoff -
(8efe4a8d64f: "ARM: dts: msm: add rotator vbif memtype
setting to sdm845")
This changes are done to migrate msm_sdw/hdmi codec drivers
to this new audio kernel techpack.
Change-Id: Ia807b87a7c67957512a6b38cc62ae9cb5223c8b2
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
New conf files are required to enable config for
audio techpack. Add respective files for SDM845.
This provides required config to compile required files
for SDM845 audio.
Change-Id: Ic93d0df0da03d7f891267994380729602ce64c65
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add snapshot for audio drivers for SDM targets. The code is
migrated from msm-4.9 kernel at the below cutoff -
(74ff856e8d6: "net: ipc_router: Add dynamic enable/disable
wakeup source feature")
This changes are done for new techpack addition
for audio kernel. Migrate all audio kernel drivers
to this techpack.
Change-Id: I33d580af3ba86a5cb777583efc5d4cdaf2882d93
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>