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
Race condition observed while processing the
get/set_pp_params and adm_close command.
Synchronise adm open, close and get/set_pp_params
by sending the apr cmd pkt using the same lock.
Change-Id: I9a1ebcedc91f78f3940846688f8569ec9088e1e7
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
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>
For WSA variant info is available in this register
OTP_REG_0. Make it volatile read-only register
to always read from hardware.
Change-Id: I1c543875748d08304b4abe6c73594bc116d08c6d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
In afe_get_cal_sp_th_vi_param functions, data size
should check with size of cal_type_header. The check
is not present which might lead to out of bounds access.
Update condition to ensure data_size is greater than
or equal to size of cal_type_header.
Change-Id: Ib2904f53243f4fb858131511812fd90de32b4656
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Race condition observed while processing the
set_pp_params command responses sent back to back
by adsp for commands sent from adm and rtac.
Handle this by synchronising the get/set pp_params
command in both the drivers.
Change-Id: Id89d98217dc5cad3703e5d545ddee21cb145c874
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
The PCM_RATE bit field in LPASS_TX_CDC_TXn_TX_PATH_CTL
ranges from 0 to 6.
In the current implementation of tx-macro, the value
read is mapped directly to the sample rate instead of
the indices. Change is to correct this.
Add the delay based on pcm_rate in va-macro as well.
Change-Id: I6cb7e58e71f2a25356608611f1dfed83171706f6
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Remove unnessary log message for virtual port or it will print a lot of error
message while driver work normal.
Change-Id: Ie8d6e955fc4eaeda169bb92bdc58769c9c005a4e
Signed-off-by: Fei Tong <ftong@codeaurora.org>
Add DP port hostless frontend for port mixer usecases.
Change-Id: I54fe24731efd592d2c1867e9a878be57e5ebbd52
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Clear the common_client mmap_handle_list when a RESET_EVENT is
received to avoid access to stale, unmapped handles
Change-Id: Ifcb7e98db45c476d159ac57a50333ea95391da8b
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
In VoIP FNN and audio record concurrence, FNN model shared memory
is wrong to unmap when audio record stop.
Fix it by checking FNN topology and app type to ensure the memory
is unmapped properly.
Change-Id: If24b6aa75d41b629a3ef33b9585d9d7d82aa9b25
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>