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

Issue 2079843003: Allow AudioManagerCras enumerate audio devices from CRAS not just defaults (Closed)

Created:
4 years, 6 months ago by Qiang(Joe) Xu
Modified:
4 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow AudioManagerCras enumerate audio devices from CRAS not just defaults BUG=605198 TEST=add unittest in audio_manager_unittest; unittest doesn't include beamformingdevices case yet as I am still not quite clear about its usage. tested with https://webrtc.github.io/samples/src/content/devices/input-output/, showing enumerating audio devices in a format of (default) plus other chromeos audio devices. Committed: https://crrev.com/86ab42900db31a6c8853b9154ae9942a001022cb Cr-Commit-Position: refs/heads/master@{#405290}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : gn build unittest direct deps on chromeos #

Patch Set 4 : exclude is_chromecast deps on chromeos #

Total comments: 2

Patch Set 5 : incorporate tommi's comment #

Total comments: 4

Patch Set 6 : incorporate Dale's comments #

Patch Set 7 : rebase #

Patch Set 8 : nit: using display_name instead of device_name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -14 lines) Patch
M media/audio/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M media/audio/audio_manager_unittest.cc View 1 2 3 4 7 chunks +203 lines, -0 lines 0 comments Download
M media/audio/cras/audio_manager_cras.h View 1 chunk +2 lines, -0 lines 0 comments Download
M media/audio/cras/audio_manager_cras.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -14 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079843003/20001
4 years, 6 months ago (2016-06-17 22:05:17 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/202849)
4 years, 6 months ago (2016-06-17 22:13:31 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079843003/40001
4 years, 6 months ago (2016-06-17 22:18:45 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/83309) cast_shell_linux on ...
4 years, 6 months ago (2016-06-17 22:22:28 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2079843003/60001
4 years, 6 months ago (2016-06-17 22:45:18 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/202881)
4 years, 6 months ago (2016-06-17 22:52:47 UTC) #12
Qiang(Joe) Xu
+tommi for media/audio ownner review +dgreid as audio_manager_cras related review +dalecurtis for DEPS review, please ...
4 years, 6 months ago (2016-06-17 23:48:39 UTC) #15
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/2079843003/diff/60001/media/audio/audio_manager_unittest.cc File media/audio/audio_manager_unittest.cc (right): https://codereview.chromium.org/2079843003/diff/60001/media/audio/audio_manager_unittest.cc#newcode304 media/audio/audio_manager_unittest.cc:304: ++it; nit: move this to just above the ...
4 years, 6 months ago (2016-06-18 14:00:37 UTC) #16
Qiang(Joe) Xu
Updated based on tommi's comments. Dale, Dylan, could you please take a look? thanks https://codereview.chromium.org/2079843003/diff/60001/media/audio/audio_manager_unittest.cc ...
4 years, 5 months ago (2016-07-06 16:27:02 UTC) #17
DaleCurtis
lgtm https://codereview.chromium.org/2079843003/diff/80001/media/audio/cras/audio_manager_cras.cc File media/audio/cras/audio_manager_cras.cc (right): https://codereview.chromium.org/2079843003/diff/80001/media/audio/cras/audio_manager_cras.cc#newcode168 media/audio/cras/audio_manager_cras.cc:168: device_names->push_back(device_name); Does emplace_back(device.device_name, base::Uint64ToString(device.id)) work? https://codereview.chromium.org/2079843003/diff/80001/media/audio/cras/audio_manager_cras.cc#newcode172 media/audio/cras/audio_manager_cras.cc:172: device_names->push_front(media::AudioDeviceName::CreateDefault()); ...
4 years, 5 months ago (2016-07-06 18:58:53 UTC) #18
Qiang(Joe) Xu
https://codereview.chromium.org/2079843003/diff/80001/media/audio/cras/audio_manager_cras.cc File media/audio/cras/audio_manager_cras.cc (right): https://codereview.chromium.org/2079843003/diff/80001/media/audio/cras/audio_manager_cras.cc#newcode168 media/audio/cras/audio_manager_cras.cc:168: device_names->push_back(device_name); On 2016/07/06 18:58:52, DaleCurtis wrote: > Does emplace_back(device.device_name, ...
4 years, 5 months ago (2016-07-07 00:32:45 UTC) #19
DaleCurtis
lgtm
4 years, 5 months ago (2016-07-07 17:18:53 UTC) #20
Qiang(Joe) Xu
Update: Since chromeos audio tray view is using device.display_name: https://cs.chromium.org/chromium/src/ash/common/system/chromeos/audio/audio_detailed_view.cc?sq=package:chromium&l=20 A nit in audio_manager_cras is ...
4 years, 5 months ago (2016-07-11 21:11:04 UTC) #22
dgreid
lgtm
4 years, 5 months ago (2016-07-13 18:45:57 UTC) #23
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/2079843003/140001
4 years, 5 months ago (2016-07-13 18:50:28 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-13 21:28:41 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 21:29:33 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 21:30:27 UTC) #31
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/86ab42900db31a6c8853b9154ae9942a001022cb
Cr-Commit-Position: refs/heads/master@{#405290}

Powered by Google App Engine
This is Rietveld 408576698