audio: stop reading sound trigger lab data on SSR
While sound trigger lab data being read, if CPE SSR
happens the pcm read returns -ENETRESET. Instead of
updating the sound card sate, mark the sound trigger
state as inactive to avoid reading the lab data from
driver. Marking the session as inactive handle both
CPE and ADSP SSR scenarios where HAL is prevented
to read from kernel.
Change-Id: Id82eed597c01265a7d26f17e5ac3c5cd0e17adbf
CRs-fixed: 790726
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index ba24b6b..d0e01e5 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -232,6 +232,7 @@
audio_format_t format;
audio_io_handle_t capture_handle;
bool is_st_session;
+ bool is_st_session_active;
struct audio_device *dev;
};