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
This commit is contained in:
parent
75d924d063
commit
a995a357b5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue