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
This commit is contained in:
Mingming Yin 2014-09-19 12:16:36 -07:00
parent 1b390418e8
commit c9efb4fc11
1 changed files with 1 additions and 1 deletions

View File

@ -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;