audio-hal: testapp : MS12: Fix for dualmix hang issue
Associate stream is closed by main stream thread
when it reaches EOS.
If associated audio is longer than main audio
then associated stream thread hang indefinitely.
Change-Id: I77b6711240df58004cc0a6abd36737ac0396bca7
CRs-fixed: 2076544
diff --git a/qahw_api/test/qahw_playback_test.c b/qahw_api/test/qahw_playback_test.c
index db189eb..37baa61 100644
--- a/qahw_api/test/qahw_playback_test.c
+++ b/qahw_api/test/qahw_playback_test.c
@@ -950,11 +950,6 @@
drift_params.thread_exit = true;
pthread_join(drift_query_thread, NULL);
}
- if ((params->flags & AUDIO_OUTPUT_FLAG_MAIN) && is_assoc_active()) {
- fprintf(log_file, "Closing Associated as Main Stream reached EOF %d \n",
- params->stream_index, rc);
- stop_playback = true;
- }
rc = qahw_out_standby(params->out_handle);
if (rc) {
fprintf(log_file, "stream %d: out standby failed %d \n", params->stream_index, rc);