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

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

Merge "Merge 74c5a539 on remote branch"

parents d11d74e7 021165f9
Loading
Loading
Loading
Loading
+1 −14
Original line number Diff line number Diff line
@@ -243,22 +243,9 @@ void audio_extn_fm_set_parameters(struct audio_device *adev,
        if (ret >= 0) {
            val = atoi(value);
            if(val > 0)
                /*
                 * Only when wsa does present and is in analog mode,
                 * fm will stop/start here.
                 * To-do: when the kernel codec type query change
                 * is ready, enum of wsa mode should be checked here.
                 * Currently, platform_get_wsa_mode will directly return
                 * 1 when wsa is in analog mode.
                 */
                if (platform_get_wsa_mode(adev) == 1) {
                    fm_stop(adev);
                    fm_start(adev);
                } else {
                select_devices(adev, USECASE_AUDIO_PLAYBACK_FM);
        }
    }
    }
    if (fmmod.restart_fm && (fmmod.scard_state == SND_CARD_STATE_ONLINE)) {
        ALOGD("sound card is ONLINE, restart FM");
        fmmod.restart_fm = 0;