Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2869933002: cros: Create virtual device name only when two audio nodes sharing the same device index (Closed)

Created:
3 years, 7 months ago by Qiang(Joe) Xu
Modified:
3 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Create virtual device name only when two audio nodes sharing the same device index Changes: On kevin, audio input source dropdown list displays both "Mic" and "Built-in mic". This is not expected. For new devices, like kevin, internal-mic/mic and internal-speaker/headphone may not share the same device index, meanwhile, headphone and line-out may share the same device index. This cl is to fix this by creating virtual device name only when two audio nodes sharing the same device index. Currently will cover three cases: (1) Show "Built-in mic" when internal-mic and mic share dev_index, otherwise show "Mic" and "Internal mic" separately. (2) Show "Built-in speaker" when internal-speaker and headphone share dev_index, otherwise show "Speaker" and "Headphone" separately. (3) Show "Headphone/Line Out" when headphone and line-out share dev_index, otherwise show "Headphone" and "Line Out" separately. TBR=dgreid@chromium.org BUG=718220 TEST=tested on kevin and veyron_minnie, the label name works properly on https://webrtc.github.io/samples/src/content/devices/input-output/. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2869933002 Cr-Commit-Position: refs/heads/master@{#471020} Committed: https://chromium.googlesource.com/chromium/src/+/69b678b8b026433cb8fe4948ab5b723f0bef189c

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -29 lines) Patch
M media/audio/cras/audio_manager_cras.cc View 3 chunks +39 lines, -29 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
Qiang(Joe) Xu
+dgreid, changes are based on the discussion from issue 718220. +tommi, for owner review. Thanks!
3 years, 7 months ago (2017-05-08 20:29:22 UTC) #7
Qiang(Joe) Xu
On 2017/05/08 20:29:22, Qiang(Joe) Xu wrote: > +dgreid, changes are based on the discussion from ...
3 years, 7 months ago (2017-05-10 17:57:53 UTC) #8
tommi (sloooow) - chröme
lgtm. (sorry for the delay, I thought had replied)
3 years, 7 months ago (2017-05-10 17:59:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2869933002/1
3 years, 7 months ago (2017-05-11 16:58:29 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 18:41:19 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/69b678b8b026433cb8fe4948ab5b...

Powered by Google App Engine
This is Rietveld 408576698