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
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index cd9ded8..ed353f3 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1997,8 +1997,7 @@
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 =