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

Commit 090c6207 authored by Kunlei Zhang's avatar Kunlei Zhang
Browse files

hal: remove unnecessary check for low-latency-record usecase

For voip call with using fast flag, it selects low-latency-record
usecase first. Then during usecase selection, audio-record-voip
usecase is not selected even if setting AUDIO_SOURCE_VOICE_COMMUNICATION
for the voip call. This is due to the condition of low-latency-record
usecase is checked again before voip call. 

Fix it to remove unnecessary check for low-latency-record usecase.

Change-Id: I0b36769cc643458a8b43e1c4472f336a232652ac
parent 6a6b32bf
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -9197,10 +9197,6 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
        in->stream.create_mmap_buffer = in_create_mmap_buffer;
        in->stream.get_mmap_position = in_get_mmap_position;
        ALOGV("%s: USECASE_AUDIO_RECORD_MMAP", __func__);
    } else if (in->realtime) {
        in->config = pcm_config_audio_capture_rt;
        in->config.format = pcm_format_from_audio_format(config->format);
        in->af_period_multiplier = af_period_multiplier;
    } else if (is_usb_dev && may_use_hifi_record) {
        in->usecase = USECASE_AUDIO_RECORD_HIFI;
        in->config = pcm_config_audio_capture;