Add change to properly handle the pointers by setting them to
NULL after free and adding some null checks before dereferencing.
Change-Id: I3e52b9a6885a8d8a91c09f75fe92ba69e3eb555f
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
Update Kbuild and header files in msm_audio_ion_vm.c
and apr_vm.c for kernel 5.4 gvm audio bring up.
Change-Id: I6bcd0e49f783aaec43a64ad308b817a474b30dc7
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
LV Platform use the same ARCH cause Kbuild mismatch issue
Change-Id: I803aeb3bbee45566b1f9e66b4a6c8b8c26ba86f3
Signed-off-by: Fei Tong <ftong@codeaurora.org>
Set params for a module should be done after sending
the topology information in which the module resides in.
Send cps configuration after sending afe topology.
Send cps configuration only for speaker protected usecases.
Change-Id: I89c7df9f0d70862813aa7a2bd1ea1afc2ddcc882
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
During PDR/SSR, hyp assign is not called when stop
call in below cases:
1. cvs and mvm handle are not null
2. disable voice path failure during device switch
Fix it by ensuring unmap memory is called during
PDR/SSR.
Change-Id: I37b66a6f6dc29934dde0b0814ab44b784ebe2aea
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
To handle erroneous scenario when audio afe driver registers
a FFNS topology in non-island mode instead of island mode,
add capability for audio afe driver to deregister previously
created topology before registering a new topology for SVA.
Change-Id: Iff871da998847ea5d3bcee417c780b8acaf70ca3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
AUDIO_RX_MONO_VOIP module in COPreP topology doesn't support
stereo input. Update channel number to mono for
AUDIO_RX_MONO_VOIP_COPP_TOPOLOGY.
Change-Id: I23632808cfcf82496f0e8f9618e28915974fc584
Signed-off-by: Kunlei Zhang <kunleiz@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>
Add support to query module parameters from ADSP.
Change-Id: Ie63dd95cf27277f9c836becc98952d48971a3ec3
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
Add support for CMA heap allocation during call.
Change-Id: I65cd291a9db56bf53d9bb9b4e6c7236da9d7288c
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
Debug logs arguments are not correct in adsp loader
during an error scenario. Correct the arguments to
fix compilation error.
Change-Id: Ibdba5ce1332b287c84a38512fba8764298f4dd80
Apply the cached value of device mute setting to dsp,
after voc state moves to RUN.
Change-Id: I82bc9ab2d49a199f0277b1694cd00311eddd6115
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
Only load depacketizer module for aptx_adaptive and ldac playback
use-case during dynamic load of BT modules, decoder module loading
not required.
Change-Id: If7ec559f5cc7ff428b8e0e4fac1f34e7f2469c8e
Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
For multi COPP feature it could only allow POPPs with same app_type
to connect single COPP. But it's possible to connect different POPPs
with different app_type to single COPP, to achieve this, it should
skip the app_type check when create copp_idx.
Change-Id: I9da6e84b8ef4a5e13d29d71c016b114ea759b94f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
Reset music_info playback states during SSR to fix incall music session
failure after SSR.
Music delivery session requests are getting ignored if the state is not reset.
Change-Id: I7dd736baa538fb3697c874230c5a9c02f90b6a06
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
Backward compatibility change to set 'feedback path cfg' to AFE_MODULE_FEEDBACK,
to support 3rd party spkr protection algorithms.
Change-Id: I9af731902fbc5bc69f130a4f30d8fc5f18ceaace
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
CONFIG_MSM_QDSP6_PDR is not enabled on Auto targets.
Change-Id: If7ac374bbe88635eeb328593b4d3a9f01a716c5c
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
To reduce kernel logs, change unnecessary pr_info to
pr_debug in audio drivers.
Change-Id: I6df096b50c81b2fe7e315e7f278708bc9d46a050
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Remove reset of rx ec ref channel for adm after using,
if the channel value is not changed, user space won't
set it to driver again, then causing adm opening failed.
Add void param in function definition to
avoid compilation errors when strict prototypes
flag is defined.
Change-Id: I4515c730139fff18638805cd70db24ec1886f127
For Source Tracking adm_get_param, param_hdr (struct param_hdr_v3) size
being sent was different as param_hdr(struct param_hdr_v1)size used for
offset of virtual memory to copy the param data in out-band case get_param.
Change-Id: I01dd4f704cc5b6994f1203a0e28199a6936cba7f
Signed-off-by: Avinash Chandra <avicha@codeaurora.org>
Changes to support silent restart of adsp subsys
based on the apr callback when packet transfer
to adsp timesout.
Change-Id: Icedb76907a441792d1953a08dd071791e5b08706
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
Fix out of bound memory access in q6afe_load_avcs_modules()
for afe_avcs_payload_port_mapping structure.
Change-Id: Ibe0e90e4fbedc2cf6a88abd9f3845643020a904a