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

Commit f66b012d authored by Ravi Kumar Alamanda's avatar Ravi Kumar Alamanda Committed by Prashant Malani
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 606a4b46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2725,7 +2725,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
        }
        out->compr_config.fragments = COMPRESS_OFFLOAD_NUM_FRAGMENTS;
        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 =
                    config->offload_info.bit_rate;
        out->compr_config.codec->ch_in =