audio: fix potential messy offload state.

Bug: 119035383
Test: manual audio test

Change-Id: Ie87e1fa330bb7904fde2c429db5392ab24001510
Signed-off-by: juyuchen <juyuchen@google.com>
(cherry picked from commit b0f5bfd12c03317d179e1cec64149f3216756af5)
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 9f90d93..cb3e9c8 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2968,6 +2968,8 @@
 
     ALOGV("%s", __func__);
     lock_output_stream(out);
+    out->offload_state = OFFLOAD_STATE_IDLE;
+    out->playback_started = 0;
     for (;;) {
         struct offload_cmd *cmd = NULL;
         stream_callback_event_t event;