Add check to prevent buffer overflow for port_idx in
dai driver.
Change-Id: Id3126520e52590204fdb8bf92d3c4c52b1867354
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Use FEdai_id to calculate the buffer number and
use the same to identify the right CAL block for
ASM CAL types.
Change-Id: Iab83892f5c2f2bc54c8fa97ac084d8a04586f712
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
Use FEdai_id to calculate the buffer number and
use the same to identify the right CAL block.
Change-Id: I3a429d8d12ab670370ec947f2d789f2abf4066f1
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
For non-typical channel number playback and capture, we need to
provide asm channel map info, otherwise pcm prepare will fail.
But there is no such default asm map info in audio drivers.
This change is to provide mechanism to set asm channel map, to
ununblock non-typical channel playback and capture.
Change-Id: Idad08c6f3f50b36f5c9c0a813bc0ef493cc57c59
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
Add the q6asm_send_cal in msm_pcm_prepare for loopback driver.
This will allow to send asm calibration data to POPP
Change-Id: I649734ff735a2253c7e01fd5bdd8e9665ef5244a
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
Add machine driver for SA8295 based automotive platform,
which extended support for TDM interfaces which is used
for data transfer between SA8295 SoC and the automotive
COODEC H/W. Changes include TDM backend and refactored
automotive frontend DAI links as well as kcontrol functions
to configure TDM slot and offset configuration.
Change-Id: I82b2e4515443a5bd7bec8af34447a537cec5ecf3
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
When set amixer command, it will first read the control element before write.
If the get function is missing, the amixer command will fail.
Signed-off-by: Erin Yan <xinyey@codeaurora.org>
Change-Id: Id5eb1ead1787490d75a21b9cc9ee69bc54e0ea5b
Add flag to check if wait event initialized before access.
Change-Id: Ib4b4654dfe1b0a18506ae6fb8029296a5f780fe9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
In rx macro set interpolation rate, sample rate and
bit width is not set if IIR is connected. Set sample
rate and bit width for IIR as well. Also correct
iir_inp_mux_text to follow same sequence as reg value.
Change-Id: I2e90265c066d38ccec9f47a6d25b8224ed710d2d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
enable GPIO122 as mclk2 for externel AMP on sa6155 auto platform.
Change-Id: I9cb9012096a3a7620aeaeae5c690ae9ff168457a
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
The current AFE logging point is global, once enabled all active
AFE ports will log its data through DIAG to PC, However, diag
logging throughput is limited.
Need add kcontrol for enable/disable AFE logging by AFE port
per direction.
Change-Id: I05a12f2eb4bc5b5a3ad39b8bbf2f4148bec05002
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
1. During SSR, app_type is NONE got from this_adm struct.Add
change to get app_type from current cal block when app_type
is NONE.
2. FNN module is added in DMFE and QMVC CoPP topology. Add
change to remove topology condition to ensure hyp assign is
called when FNN module is used.
3. FNN moudle is not supported for 44.1Khz. Set the rate to
16Khz for VPM_TX_VOICE_FLUENCE_NN_COPP_TOPOLOGY.
Change-Id: Ie64a04b8d29202eda5c6153cb0dd478f15b7485b
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
transcode_loopback_session_lock is defined but not used, and cause build issue
remove the unused definition
Change-Id: I233ca61084370cd17ccd04fa51fa1c25c8885c36
Signed-off-by: Fei Tong <ftong@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>
Enable gain ctl of display port hostless playback.
Change-Id: I7beb64a657db7349ad5c3ed374389564cf68bfea
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
audiodlkm headers should be installed in audiodlkm*.bb do_insatll().
Only in this way, the DEPENDS can work for other recipes
in sstate cache condition.
If the headers are installed via audiodlkm do_compile(),
recipes depend on audiodlkm will fail
in audiodlkm sstate cache enabled condition.
Change-Id: Ieeb2fc8cd772e8cf239be74bb2021283bacb658a
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
msm_pcm_loopback_probe should be conducted only for
normal loopback devices, not low-latency.
And such kcontrol should not be added twice.
Change-Id: Iaab631019b5b964473bfaebade0697eb7c4373e7
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>