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

Commit 379ff692 authored by Kogara Naveen Kumar's avatar Kogara Naveen Kumar Committed by Gerrit - the friendly Code Review server
Browse files

audio-hal: add device condition check before getting FM usecase

adding device (DEVICE_IN_FM_TUNER) condition check before getting
FM TUNER usecase.

Change-Id: I5ce9547e738ca5d0c1ff0430f5a50c4b27733f40
parent f97da4dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9614,7 +9614,7 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
        ret = audio_extn_auto_hal_open_echo_reference_stream(in);
    }

    if (in->source == AUDIO_SOURCE_FM_TUNER) {
    if ((in->source == AUDIO_SOURCE_FM_TUNER) || (devices == AUDIO_DEVICE_IN_FM_TUNER)) {
        if(!get_usecase_from_list(adev, USECASE_AUDIO_RECORD_FM_VIRTUAL))
            in->usecase = USECASE_AUDIO_RECORD_FM_VIRTUAL;
        else {