Commit cfd3dbaf authored by Guido Urdaneta's avatar Guido Urdaneta Committed by Commit Bot

Fix group ID for default and communications input device.

The group ID for the default/communications input device should be based on
the device ID of the corresponding real device.
This was working correctly for input devices that had an associated output
device, but it was using the default ID instead of the real ID when there
was no associated device.

Bug: 828377
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Id3ff8d30dc6857d73beb55f216fbe52d89b9f2c0
Reviewed-on: https://chromium-review.googlesource.com/992319Reviewed-by: default avatarMax Morin <maxmorin@chromium.org>
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547831}
parent cbd39350
...@@ -539,7 +539,7 @@ std::string AudioManagerBase::GetGroupIDInput( ...@@ -539,7 +539,7 @@ std::string AudioManagerBase::GetGroupIDInput(
if (output_device_id.empty()) { if (output_device_id.empty()) {
// Some characters are added to avoid accidentally // Some characters are added to avoid accidentally
// giving the input the same group id as an output. // giving the input the same group id as an output.
return input_device_id + "input"; return real_input_device_id + "input";
} }
return GetGroupIDOutput(output_device_id); return GetGroupIDOutput(output_device_id);
} }
......
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