audio: hal: add support for combo backend capture
-Add support to capture 10 channel audio from two backends
6 channel from SLIM_0_TX and 4 channel from TERT_MI2S_TX.
-add support for SOURCE_DEC_TYPE to support 10 channel
generic mic capture.
Change-Id: I4fdfb7fa07d916426a0f11d88506039d0556bac7
diff --git a/hal/platform_info.c b/hal/platform_info.c
old mode 100755
new mode 100644
index da11cae..de7f187
--- a/hal/platform_info.c
+++ b/hal/platform_info.c
@@ -1225,6 +1225,10 @@
ENUM_TO_STRING(AUDIO_DEVICE_IN_LOOPBACK),
sizeof(mtmx_in_params->in_ch_info[in_ch_idx].device)))
mtmx_in_params->ec_ref_ch = mtmx_in_params->in_ch_info[in_ch_idx].ch_count;
+ else if (!strncmp(mtmx_in_params->in_ch_info[in_ch_idx].device,
+ ENUM_TO_STRING(AUDIO_DEVICE_IN_SPEAKER_MIC2),
+ sizeof(mtmx_in_params->in_ch_info[in_ch_idx].device)))
+ mtmx_in_params->i2s_ch = mtmx_in_params->in_ch_info[in_ch_idx].ch_count;
mtmx_in_params->ip_channels += mtmx_in_params->in_ch_info[in_ch_idx].ch_count;
}
@@ -1541,6 +1545,8 @@
return;
}
section = CUSTOM_MTMX_PARAM_IN_CH_INFO;
+ section_process_fn fn = section_table[section];
+ fn(attr);
} else if (strcmp(tag_name, "audio_input_source_delay") == 0) {
section = AUDIO_SOURCE_DELAY;
} else if (strcmp(tag_name, "audio_source_delay") == 0) {