hal: edid: Update EDID parsing logic
Previously, the only sample rate that hal stored was the highest
supported sample rate. Hal would return false on Sample Rates(sr)
that were lower than the highest supported sr from the sink.
Streams were forced to be played at the highest sr that the
sink supported. A similar change was done in for bytes per
sample as well.
Change-Id: I41591958739562334d9409cffad4f55e1cc5e0bc
CRs-Fixed: 1084185
diff --git a/hal/edid.h b/hal/edid.h
index 387b17e..6a82103 100644
--- a/hal/edid.h
+++ b/hal/edid.h
@@ -79,8 +79,8 @@
typedef struct edid_audio_block_info {
edid_audio_format_id format_id;
- int sampling_freq;
- int bits_per_sample;
+ int sampling_freq_bitmask;
+ int bits_per_sample_bitmask;
int channels;
} edid_audio_block_info;
@@ -100,5 +100,6 @@
bool edid_is_supported_sr(edid_audio_info* info, int sr);
bool edid_is_supported_bps(edid_audio_info* info, int bps);
+int edid_get_highest_supported_sr(edid_audio_info* info);
#endif /* EDID_H */