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
This commit is contained in:
vivek mehta 2016-02-05 16:51:10 -08:00 committed by Naresh Tanniru
parent 6958d240eb
commit f447ef1e88
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ int audio_extn_utils_send_app_type_cfg(struct audio_device *adev,
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;