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

Commit bcfbd1ad authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: fm: Fix incorrect routing of fm audio to speaker"

parents 31443fcf 014b6b91
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -229,9 +229,10 @@ void audio_extn_fm_set_parameters(struct audio_device *adev,
        ALOGD("%s: FM usecase", __func__);
        if (val != 0) {
            if(val & AUDIO_DEVICE_OUT_FM
               && fmmod.is_fm_running == false)
               && fmmod.is_fm_running == false) {
                adev->primary_output->devices = val & ~AUDIO_DEVICE_OUT_FM;
                fm_start(adev);
            else if (!(val & AUDIO_DEVICE_OUT_FM)
            } else if (!(val & AUDIO_DEVICE_OUT_FM)
                     && fmmod.is_fm_running == true)
                fm_stop(adev);
       }