rhode: audio: enable aw882xx algo param store in aw_skt.bin

update the lib to store the params to aw_skt.bin,
enable algo_prof switch.

Change-Id: I34e10cc27d60f6fd2bb40500f90e916f93de7e5f
Signed-off-by: huaqin95 <huaqin95@motorola.com>
Reviewed-on: https://gerrit.mot.com/2124816
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: wangzhe <huaqin96@motorola.com>
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
huaqin95 authored and Gilberto Gambugge committed 2023-06-01 00:35:13 -03:00
1 parent 7a40ed55b7
commit 249139754c
3 files changed
+7

No files matched your search

+1
View File
@@ -3,3 +3,4 @@
*/
#define CONFIG_AW882XX_STEREO_SMARTPA 1
#define CONFIG_MBHC_DISABLE_MOISTURE_DETECT 1
#define CONFIG_AW882XX_PARAMS_STORED_IN_BIN 1
+3
View File
@@ -96,6 +96,9 @@ ifeq ($(KERNEL_BUILD), 0)
export
INCS += -include $(AUDIO_ROOT)/config/sdm450autoconf.h
endif
ifneq (,$(filter rhode%, $(TARGET_PRODUCT)))
INCS += -include $(AUDIO_ROOT)/config/rhodeautoconf.h
endif
endif
+3
View File
@@ -11031,6 +11031,9 @@ static int afe_unmap_cal_data(int32_t cal_type,
ret = afe_cmd_memory_unmap_nowait(
cal_block->map_data.q6map_handle);
atomic_set(&this_afe.mem_map_cal_index, -1);
#ifdef CONFIG_AW882XX_PARAMS_STORED_IN_BIN
atomic_set(&this_afe.mem_map_cal_handles[cal_index],0);
#endif
if (ret < 0) {
pr_err("%s: unmap did not work! cal_type %i ret %d\n",
__func__, cal_index, ret);