qahw: test: fix sco recording
Output clip is playing mute while executing BTSCO recording.
To support sco recording, bt_sco parameters must be set.
Change-Id: I6b5730703b177ac2f216005957431008853f40e4
diff --git a/qahw_api/test/qahw_multi_record_test.c b/qahw_api/test/qahw_multi_record_test.c
index f0720f2..86b75dc 100644
--- a/qahw_api/test/qahw_multi_record_test.c
+++ b/qahw_api/test/qahw_multi_record_test.c
@@ -279,6 +279,14 @@
pthread_exit(0);
}
+ /* Turn BT_SCO on if bt_sco recording */
+ if(audio_is_bluetooth_sco_device(params->input_device)) {
+ int ret = -1;
+ const char * bt_sco_on = "BT_SCO=on";
+ ret = qahw_set_parameters(qahw_mod_handle, bt_sco_on);
+ fprintf(log_file, " param %s set to hal with return value %d\n", bt_sco_on, ret);
+ }
+
/* setup debug node if in kpi mode */
if (kpi_mode) {
fdLatencyNode = fopen(LATENCY_NODE,"r+");