summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingming Yin <mingming@codeaurora.org>2014-09-19 12:16:36 -0700
committerMingming Yin <mingming@codeaurora.org>2014-10-02 17:11:56 -0700
commitc9efb4fc1147f4dfdafeab8af96d97d6ac91f40d (patch)
tree5bf6382c28d1c4855893fbf4ed266b7bc11d02df
parent1b390418e89f0ed95176cdb80c1538d66438294f (diff)
downloadandroid_hardware_qcom_audio-c9efb4fc1147f4dfdafeab8af96d97d6ac91f40d.tar.gz
android_hardware_qcom_audio-c9efb4fc1147f4dfdafeab8af96d97d6ac91f40d.tar.bz2
android_hardware_qcom_audio-c9efb4fc1147f4dfdafeab8af96d97d6ac91f40d.zip
hal: fix 24bit compilation error with extended flag disabled
- use PCM_OUTPUT_BIT_WIDTH instead of out->bit_width to fix compilation errors while it is not defined in audio.h Change-Id: I5c494c622652226f5fd468b073bc29bdcc32d9b3
-rw-r--r--hal/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 6daa1d16..55f4f300 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -2577,7 +2577,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
}
if (config->offload_info.format == AUDIO_FORMAT_FLAC)
- out->compr_config.codec->options.flac_dec.sample_size = config->offload_info.bit_width;
+ out->compr_config.codec->options.flac_dec.sample_size = PCM_OUTPUT_BIT_WIDTH;
if (flags & AUDIO_OUTPUT_FLAG_NON_BLOCKING)
out->non_blocking = 1;