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

Issue 10592014: media/audio/linux: Add CrasInputStream. (Closed)

Created:
8 years, 6 months ago by dgreid
Modified:
8 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

media/audio/linux: Add CrasInputStream. This parallels the CrasOutputStream that was added previously. ChromeOS already talks to CRAS for audio input, through an alsa plug in. Remove that unneeded layer. Only built when use_cras is set. A following patch will pull the CRAS client connection up a level and share one client connection for all input and output streams that are active. BUG=chromium-os:25410 TEST=Newly added cras_input_unittest to media_unittests. Manual test with apprtc and youtube.com/my_webcam. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146881

Patch Set 1 #

Total comments: 24

Patch Set 2 : Now better after input from xians. #

Total comments: 26

Patch Set 3 : new #

Total comments: 15

Patch Set 4 : allow repeated starts #

Total comments: 10

Patch Set 5 : don't allow re-start, use event in UT, and clean up set-volume. #

Total comments: 4

Patch Set 6 : Add scoped traces for capture tests. #

Total comments: 1

Patch Set 7 : fix order of includes #

Patch Set 8 : rebase before trying cq #

Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -18 lines) Patch
M media/audio/linux/audio_manager_linux.cc View 1 2 chunks +17 lines, -18 lines 0 comments Download
A media/audio/linux/cras_input.h View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
A media/audio/linux/cras_input.cc View 1 2 3 4 5 6 7 1 chunk +278 lines, -0 lines 0 comments Download
A media/audio/linux/cras_input_unittest.cc View 1 2 3 4 5 6 1 chunk +212 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
dgreid
Finally got time to hook up the input side properly. Thanks for looking.
8 years, 6 months ago (2012-06-20 05:44:02 UTC) #1
no longer working on chromium
It looks really nice. Some comments for the first look. http://codereview.chromium.org/10592014/diff/1/media/audio/linux/audio_manager_linux.cc File media/audio/linux/audio_manager_linux.cc (right): http://codereview.chromium.org/10592014/diff/1/media/audio/linux/audio_manager_linux.cc#newcode305 ...
8 years, 6 months ago (2012-06-20 10:45:26 UTC) #2
dgreid
Thanks xians, comments addressed. http://codereview.chromium.org/10592014/diff/1/media/audio/linux/audio_manager_linux.cc File media/audio/linux/audio_manager_linux.cc (right): http://codereview.chromium.org/10592014/diff/1/media/audio/linux/audio_manager_linux.cc#newcode305 media/audio/linux/audio_manager_linux.cc:305: stream = new CrasInputStream(params, this); ...
8 years, 6 months ago (2012-06-20 17:14:25 UTC) #3
scherkus (not reviewing)
http://codereview.chromium.org/10592014/diff/4002/media/audio/linux/cras_input.cc File media/audio/linux/cras_input.cc (right): http://codereview.chromium.org/10592014/diff/4002/media/audio/linux/cras_input.cc#newcode24 media/audio/linux/cras_input.cc:24: num_channels_(params.channels()), if you save params_ do you need to ...
8 years, 6 months ago (2012-06-21 21:39:46 UTC) #4
dgreid
Thanks for helping Andrew, sorry I didn't get a response up earlier, was a crazy ...
8 years, 6 months ago (2012-06-22 05:36:32 UTC) #5
no longer working on chromium
http://codereview.chromium.org/10592014/diff/10001/media/audio/linux/cras_input.cc File media/audio/linux/cras_input.cc (right): http://codereview.chromium.org/10592014/diff/10001/media/audio/linux/cras_input.cc#newcode100 media/audio/linux/cras_input.cc:100: DCHECK(callback); Currently we don't have user case for it, ...
8 years, 6 months ago (2012-06-25 15:59:27 UTC) #6
dgreid
http://codereview.chromium.org/10592014/diff/10001/media/audio/linux/cras_input.cc File media/audio/linux/cras_input.cc (right): http://codereview.chromium.org/10592014/diff/10001/media/audio/linux/cras_input.cc#newcode100 media/audio/linux/cras_input.cc:100: DCHECK(callback); On 2012/06/25 15:59:27, xians1 wrote: > Currently we ...
8 years, 6 months ago (2012-06-25 21:29:28 UTC) #7
no longer working on chromium
http://codereview.chromium.org/10592014/diff/10001/media/audio/linux/cras_input.cc File media/audio/linux/cras_input.cc (right): http://codereview.chromium.org/10592014/diff/10001/media/audio/linux/cras_input.cc#newcode89 media/audio/linux/cras_input.cc:89: if (callback_) I think the speech recognition team needs ...
8 years, 6 months ago (2012-06-26 21:42:49 UTC) #8
scherkus (not reviewing)
http://codereview.chromium.org/10592014/diff/19001/media/audio/linux/cras_input.cc File media/audio/linux/cras_input.cc (right): http://codereview.chromium.org/10592014/diff/19001/media/audio/linux/cras_input.cc#newcode259 media/audio/linux/cras_input.cc:259: return static_cast<double>(current_volume); maddening!! want to add some docs to ...
8 years, 6 months ago (2012-06-26 22:10:10 UTC) #9
dgreid
Thanks for the commetns fells much better now, will push new patch set in the ...
8 years, 6 months ago (2012-06-27 07:58:07 UTC) #10
dgreid
Now with faster-running unit test, and disabled double-start. The volume setting was re-work. If this ...
8 years, 5 months ago (2012-06-27 22:20:10 UTC) #11
scherkus (not reviewing)
LGTM w/ nits on tests http://codereview.chromium.org/10592014/diff/29001/media/audio/linux/cras_input_unittest.cc File media/audio/linux/cras_input_unittest.cc (right): http://codereview.chromium.org/10592014/diff/29001/media/audio/linux/cras_input_unittest.cc#newcode183 media/audio/linux/cras_input_unittest.cc:183: nit: remove extra blank ...
8 years, 5 months ago (2012-06-28 01:36:44 UTC) #12
scherkus (not reviewing)
note I'm heading off to vacation so I'll be OOO for the next ~10 days!
8 years, 5 months ago (2012-06-28 01:36:59 UTC) #13
dgreid
http://codereview.chromium.org/10592014/diff/29001/media/audio/linux/cras_input_unittest.cc File media/audio/linux/cras_input_unittest.cc (right): http://codereview.chromium.org/10592014/diff/29001/media/audio/linux/cras_input_unittest.cc#newcode183 media/audio/linux/cras_input_unittest.cc:183: On 2012/06/28 01:36:44, scherkus wrote: > nit: remove extra ...
8 years, 5 months ago (2012-06-28 01:52:36 UTC) #14
dgreid
On 2012/06/28 01:36:59, scherkus wrote: > note I'm heading off to vacation so I'll be ...
8 years, 5 months ago (2012-06-28 01:53:01 UTC) #15
no longer working on chromium
On 2012/06/28 01:53:01, dgreid wrote: > On 2012/06/28 01:36:59, scherkus wrote: > > note I'm ...
8 years, 5 months ago (2012-06-29 14:40:52 UTC) #16
no longer working on chromium
http://codereview.chromium.org/10592014/diff/30006/media/audio/linux/cras_input_unittest.cc File media/audio/linux/cras_input_unittest.cc (right): http://codereview.chromium.org/10592014/diff/30006/media/audio/linux/cras_input_unittest.cc#newcode11 media/audio/linux/cras_input_unittest.cc:11: #include "base/synchronization/waitable_event.h" fix the order.
8 years, 5 months ago (2012-06-29 14:40:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10592014/46001
8 years, 5 months ago (2012-07-12 20:26:47 UTC) #18
commit-bot: I haz the power
Try job failure for 10592014-46001 (retry) (retry) on mac_rel for step "browser_tests". It's a second ...
8 years, 5 months ago (2012-07-12 22:03:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10592014/46001
8 years, 5 months ago (2012-07-13 16:40:04 UTC) #20
commit-bot: I haz the power
Try job failure for 10592014-46001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-13 17:54:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10592014/46001
8 years, 5 months ago (2012-07-13 19:51:42 UTC) #22
commit-bot: I haz the power
Try job failure for 10592014-46001 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-13 21:04:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10592014/46001
8 years, 5 months ago (2012-07-14 00:23:37 UTC) #24
commit-bot: I haz the power
Try job failure for 10592014-46001 (retry) on win_rel for step "runhooks". It's a second try, ...
8 years, 5 months ago (2012-07-14 00:34:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgreid@chromium.org/10592014/46001
8 years, 5 months ago (2012-07-16 19:55:45 UTC) #26
commit-bot: I haz the power
8 years, 5 months ago (2012-07-16 21:06:59 UTC) #27
Change committed as 146881

Powered by Google App Engine
This is Rietveld 408576698