hal_mpq: Fix the underrun issue in the offload playback
The cmd_pending variable was not updated correctly leading to the
underrun
Change-Id: Ic5a779c2caf737da097ce9165242f1bdbfa737aa
diff --git a/hal_mpq/audio_stream_out.c b/hal_mpq/audio_stream_out.c
index 7ef3255..c475a1e 100644
--- a/hal_mpq/audio_stream_out.c
+++ b/hal_mpq/audio_stream_out.c
@@ -2139,6 +2139,7 @@
/* TODO:disnable this if ms12 */
if (ret >= 0 && ret < (ssize_t)bytes) {
+ handle->cmd_pending = true;
send_offload_cmd_l(out, OFFLOAD_CMD_WAIT_FOR_BUFFER);
}
return ret;