From 9282ba39a31b4ef2c39eb380b56962732e8d458e Mon Sep 17 00:00:00 2001 From: Chaithanya Krishna Bacharaju Date: Tue, 7 Feb 2017 09:42:11 +0530 Subject: [PATCH] configs: Modify sound trigger mixer controls Update sound trigger mixer controls to support pre-processing of captured data in ADM when requested. The existing mixer controls would be used when LSM directly connects to AFE. When LSM connects to ADM, regular recording path is used till LSM. Add support to handle cases where ADSP and CPE modes can have different module and param ids. Copy tasha sound trigger mixer paths xml to system/etc/ location on target. Change-Id: I1615f369b76706814dc80e0b19d013ca9f3a4890 --- configs/sdm660/sdm660.mk | 1 + configs/sdm660/sound_trigger_mixer_paths.xml | 75 ++++++++++++ .../sound_trigger_mixer_paths_wcd9340.xml | 108 ++++++++++++++++++ .../sdm660/sound_trigger_platform_info.xml | 41 ++++++- 4 files changed, 220 insertions(+), 5 deletions(-) diff --git a/configs/sdm660/sdm660.mk b/configs/sdm660/sdm660.mk index 2ee6312d..b1aa24f3 100644 --- a/configs/sdm660/sdm660.mk +++ b/configs/sdm660/sdm660.mk @@ -85,6 +85,7 @@ PRODUCT_COPY_FILES += \ hardware/qcom/audio/configs/sdm660/audio_platform_info.xml:system/etc/audio_platform_info.xml \ hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \ + hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths_wcd9335.xml:system/etc/sound_trigger_mixer_paths_wcd9335.xml \ hardware/qcom/audio/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml:system/etc/sound_trigger_mixer_paths_wcd9340.xml \ hardware/qcom/audio/configs/sdm660/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ hardware/qcom/audio/configs/sdm660/graphite_ipc_platform_info.xml:system/etc/graphite_ipc_platform_info.xml diff --git a/configs/sdm660/sound_trigger_mixer_paths.xml b/configs/sdm660/sound_trigger_mixer_paths.xml index d6735608..7619e26d 100644 --- a/configs/sdm660/sound_trigger_mixer_paths.xml +++ b/configs/sdm660/sound_trigger_mixer_paths.xml @@ -46,6 +46,11 @@ + + + + + @@ -95,9 +100,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml b/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml index cfbf9f90..545f46b9 100644 --- a/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml +++ b/configs/sdm660/sound_trigger_mixer_paths_wcd9340.xml @@ -56,48 +56,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -129,4 +201,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/sdm660/sound_trigger_platform_info.xml b/configs/sdm660/sound_trigger_platform_info.xml index f870d046..80d62d92 100644 --- a/configs/sdm660/sound_trigger_platform_info.xml +++ b/configs/sdm660/sound_trigger_platform_info.xml @@ -32,11 +32,18 @@ + + + + + + + @@ -57,6 +64,9 @@ + + + @@ -75,11 +85,25 @@ - - - - + in non-graphite firmware (note these must come after gcs params) + Extends flexibility to have different ids based on execution type. + valid execution_type values: "WDSP" "ADSP" --> + + + + + + + + + + + + + + + + @@ -98,6 +122,13 @@ + + + + + + +