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

Skip to content
Commit 1a1d26c8 authored by kunleiz's avatar kunleiz Committed by Gerrit - the friendly Code Review server
Browse files

hal: use handset-mic as input device when USB headset is unplugged.

During VoIP call, when USB headset is unplugged, AUDIO_DEVICE_OUT_USB_DEVICE
is first disconnected. This causes compress-voip stops, and other active
playback usecases output devices route to handset. But input device still
routes to AUDIO_DEVICE_IN_USB_HEADSET. When device restore happens, input
device selects AUDIO_DEVICE_IN_USB_HEADSET even if USB headset is not existed.
This causes mute issue happens.

Fix it by checking USB headset device state to select handset as input device
when USB headset is unplugged.

CRs-Fixed: 2264971
Change-Id: I69b2f0f030309a28256cf69330f85069994f3ea0
parent 63831272
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment