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

Commit fb21e4e5 authored by Ravi Kumar Alamanda's avatar Ravi Kumar Alamanda Committed by Android Git Automerger
Browse files

am 888dc3d2: hal: fix hotword detection failure during music playback

* commit '888dc3d2':
  hal: fix hotword detection failure during music playback
parents a5812aab 888dc3d2
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -209,12 +209,14 @@ void audio_extn_sound_trigger_update_device_status(snd_device_t snd_device,
       return;

    if (snd_device >= SND_DEVICE_OUT_BEGIN &&
        snd_device < SND_DEVICE_OUT_END)
        snd_device < SND_DEVICE_OUT_END) {
        device_type = PCM_PLAYBACK;
    else if (snd_device >= SND_DEVICE_IN_BEGIN &&
        snd_device < SND_DEVICE_IN_END)
    } else if (snd_device >= SND_DEVICE_IN_BEGIN &&
        snd_device < SND_DEVICE_IN_END) {
        if (snd_device == SND_DEVICE_IN_CAPTURE_VI_FEEDBACK)
            return;
        device_type = PCM_CAPTURE;
    else {
    } else {
        ALOGE("%s: invalid device 0x%x, for event %d",
                           __func__, snd_device, event);
        return;