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

Commit 75359994 authored by npaladug's avatar npaladug Committed by Nagarjuna Paladugu
Browse files

HAL: fix for carplay latency not picking low latency path

Pick the proper config depending on car_audio_stream and
sampling rate.

Change-Id: Ia23d3ef2fe93c1a9055143177c33825ba95a4ed2
Suggeted-By: Bargavi Belagod Manjunatha
parent e8ce99f1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -8901,6 +8901,14 @@ int adev_open_output_stream(struct audio_hw_device *dev,
                        out->pm_qos_mixer_path);
            }
            out->config = pcm_config_low_latency;
            if (compare_device_type(&out->device_list, AUDIO_DEVICE_OUT_BUS)) {
                ret = audio_extn_auto_hal_open_output_stream(out);
                if (ret) {
                    ALOGE("%s: Failed to open output stream for bus device", __func__);
                    ret = -EINVAL;
                    goto error_open;
                }
            }
        } else if (out->flags & AUDIO_OUTPUT_FLAG_DEEP_BUFFER) {
            out->usecase = USECASE_AUDIO_PLAYBACK_DEEP_BUFFER;
            out->config = pcm_config_deep_buffer;