Commit dc923915 authored by Jenny Zhang's avatar Jenny Zhang Committed by Commit Bot

Switch to 35mm headphone and mic by priority when they are hot plugged.

Bug: 849594
Change-Id: Idcfd987a4e2d3357a81905b1f003ab1e81302298
Reviewed-on: https://chromium-review.googlesource.com/1087749Reviewed-by: default avatarJenny Zhang <jennyz@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Jenny Zhang <jennyz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564945}
parent bfef0176
......@@ -1247,7 +1247,7 @@ void CrasAudioHandler::HandleHotPlugDevice(
// device.
if (hotplug_device.type == AUDIO_TYPE_HEADPHONE ||
hotplug_device.type == AUDIO_TYPE_MIC) {
SwitchToDevice(hotplug_device, true, ACTIVATE_BY_USER);
SwitchToDevice(hotplug_device, true, ACTIVATE_BY_PRIORITY);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment