audio: hal: Add support to send codec specific data in gapless
Codec specific metadata is sent only for first stream in gapless
playback.
This causes incorrect configuration to be set for second
stream and distortions are observed due to framedrops in adsp.
Add support to send codec specific format data of second stream
during gapless playback.
Use vorbis bitstream format info from metadata instead of hardcoding.
This avoids sending gapless metadata each time set parameters
is called during vorbis playback.
Set flag to send new metadata at start of session for first track
and for the next stream in gapless after return from partial drain.
Change-Id: I3d8be22a4e28c50335820cab1e2b924f3b3b2d1c
diff --git a/hal/audio_hw.h b/hal/audio_hw.h
index 67f5279..88f5f15 100644
--- a/hal/audio_hw.h
+++ b/hal/audio_hw.h
@@ -213,6 +213,8 @@
void *offload_cookie;
struct compr_gapless_mdata gapless_mdata;
int send_new_metadata;
+ bool send_next_track_params;
+ bool is_compr_metadata_avail;
unsigned int bit_width;
struct audio_device *dev;