summaryrefslogtreecommitdiffstats
path: root/hal/audio_hw.c
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-10-23 14:42:59 -0700
committerEric Laurent <elaurent@google.com>2014-10-23 17:16:03 -0700
commit1ccf397856de169071b9290bf2f6a4a5bb7c6371 (patch)
tree982b0f1fad2c8004123d27648f8cbd49adb103f6 /hal/audio_hw.c
parentb09e4a04c7a8ca770affbf48f154222ccd083f4b (diff)
downloadhardware_qcom_audio-1ccf397856de169071b9290bf2f6a4a5bb7c6371.tar.gz
hardware_qcom_audio-1ccf397856de169071b9290bf2f6a4a5bb7c6371.tar.bz2
hardware_qcom_audio-1ccf397856de169071b9290bf2f6a4a5bb7c6371.zip
compress offload: use new sample rate representation.
Pass directly the sample rate value to struct snd_codec instead of the ALSA enum. Bug: 17398311. Change-Id: I79483773807ce3b0b146fde28d6498444c69fe89
Diffstat (limited to 'hal/audio_hw.c')
-rw-r--r--hal/audio_hw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index cd9ded89..ed353f31 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1997,8 +1997,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
get_snd_codec_id(config->offload_info.format);
out->compr_config.fragment_size = COMPRESS_OFFLOAD_FRAGMENT_SIZE;
out->compr_config.fragments = COMPRESS_OFFLOAD_NUM_FRAGMENTS;
- out->compr_config.codec->sample_rate =
- compress_get_alsa_rate(config->offload_info.sample_rate);
+ out->compr_config.codec->sample_rate = config->offload_info.sample_rate;
out->compr_config.codec->bit_rate =
config->offload_info.bit_rate;
out->compr_config.codec->ch_in =