Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e75e9f64 authored by Trinath Thammishetty's avatar Trinath Thammishetty Committed by Garmond Leung
Browse files

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
parent 372e46d9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -279,6 +279,14 @@ void *start_input(void *thread_param)
      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+");