hal: dolby: send correct sample rate to ADM
- fix the error where HDMI passthrough check was compiled out
this was causing to set wrong sample rate and opening ADM at
4 times the content sample rate.
Change-Id: I2f1c81ab7b1430d63844c27e5b6adb730c4fa9ee
CRs-Fixed: 968703
diff --git a/hal/audio_extn/utils.c b/hal/audio_extn/utils.c
index 5a5ca52..043045e 100644
--- a/hal/audio_extn/utils.c
+++ b/hal/audio_extn/utils.c
@@ -663,7 +663,7 @@
app_type_cfg[len++] = acdb_dev_id;
if (((usecase->stream.out->format == AUDIO_FORMAT_E_AC3) ||
(usecase->stream.out->format == AUDIO_FORMAT_E_AC3_JOC))
- && audio_extn_dolby_is_passthrough_stream(usecase->stream.out)) {
+ && audio_extn_dolby_is_passthrough_stream(usecase->stream.out->flags)) {
app_type_cfg[len++] = sample_rate * 4;
} else {
app_type_cfg[len++] = sample_rate;