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

Commit 209f990c authored by Ravi Kumar Alamanda's avatar Ravi Kumar Alamanda Committed by Gerrit - the friendly Code Review server
Browse files

hal: pass samplerate as is to tiny compress

ALSA framework in offload mode now supports 12kHz and 24kHz and
hence the sample rate value can be directly sent down to the
driver.

Change-Id: I1669f2d7dfd3bacae093b63e700cf27317aac0a5
parent 6653a096
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2847,7 +2847,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
        }
        }
        out->compr_config.fragments = COMPRESS_OFFLOAD_NUM_FRAGMENTS;
        out->compr_config.fragments = COMPRESS_OFFLOAD_NUM_FRAGMENTS;
        out->compr_config.codec->sample_rate =
        out->compr_config.codec->sample_rate =
                    compress_get_alsa_rate(config->offload_info.sample_rate);
                    config->offload_info.sample_rate;
        out->compr_config.codec->bit_rate =
        out->compr_config.codec->bit_rate =
                    config->offload_info.bit_rate;
                    config->offload_info.bit_rate;
        out->compr_config.codec->ch_in =
        out->compr_config.codec->ch_in =