Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ccf3978 authored by Eric Laurent's avatar Eric Laurent
Browse files

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
parent b09e4a04
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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 =