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

Commit a995a357 authored by Ravi Kumar Alamanda's avatar Ravi Kumar Alamanda Committed by Glenn Kasten
Browse files

qcom/audio/hal: Fix the issue audio not routed to headset

- Boot the phone without headset plugged in, plug in headset and
  play music. Audio is heard on speaker instead of headset.
- The devices of output stream corresponding to music playback
  is not being updated correctly.
- Fix by correcting the output device uption logic in
  out_set_parameters()

Bug: 8239898
Change-Id: Ie24de09847533660d2280744d33cba7d7fb7d535
parent 75d924d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1273,7 +1273,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
                out->devices = val;
            }
            stop_voice_call(adev);
        } else if ((adev->out_device != (audio_devices_t)val) && (val != 0)) {
        } else if ((out->devices != (audio_devices_t)val) && (val != 0)) {
            if (!out->standby || adev->in_call) {
                adev->out_device = get_active_out_devices(adev, out->usecase) | val;
                ret = select_devices(adev);