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

Issue 264973012: Use seq instead of rawmidi for MidiManagerAlsa (Closed)

Created:
6 years, 7 months ago by Adam Goode
Modified:
6 years, 6 months ago
Reviewers:
Takashi Toyoshima
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use seq instead of rawmidi for MidiManagerAlsa Using seq is more complicated, but allows other applications access to the MIDI hardware. I still have some more verification to do and probably some bugs to fix but I think this is a good start. Note that Chrome OS might need a new kernel module built. BUG=344410 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275732

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix C++ initialization #

Total comments: 23

Patch Set 4 : Fix crash due to negative delay in MIDI send #

Patch Set 5 : Increase MIDI send buffer size to 256, to avoid splitting sysex messages too much. #

Total comments: 4

Patch Set 6 : Address many issues from code review #

Total comments: 4

Patch Set 7 : Implement manufacturer and version, also some minor cleanups #

Patch Set 8 : Fix small mistake in midi_manager_unittest #

Total comments: 4

Patch Set 9 : Constify a few last things #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -189 lines) Patch
M media/midi/midi_manager_alsa.h View 1 2 3 4 5 2 chunks +27 lines, -8 lines 0 comments Download
M media/midi/midi_manager_alsa.cc View 1 2 3 4 5 6 7 8 5 chunks +323 lines, -179 lines 0 comments Download
M media/midi/midi_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Adam Goode
6 years, 7 months ago (2014-05-05 15:32:13 UTC) #1
Takashi Toyoshima
Hi Adam, thank you for your contribution. Is this CL ready for a review? By ...
6 years, 7 months ago (2014-05-06 13:12:29 UTC) #2
Adam Goode
On 2014/05/06 13:12:29, Takashi Toyoshima (chromium) wrote: > Hi Adam, thank you for your contribution. ...
6 years, 7 months ago (2014-05-06 14:51:09 UTC) #3
Takashi Toyoshima
> But kernel support might be missing. (snd-seq.ko is required, I do not know if ...
6 years, 7 months ago (2014-05-07 01:59:08 UTC) #4
Adam Goode
Thanks for the ls -R :) I think it's ready for review now with this ...
6 years, 7 months ago (2014-05-07 03:12:33 UTC) #5
Adam Goode
I've now manually tested sysex send/receive.
6 years, 7 months ago (2014-05-07 04:04:31 UTC) #6
Takashi Toyoshima
It's crossed. This is a quick review for Patch Set 3. I'll take a look ...
6 years, 7 months ago (2014-05-07 04:38:28 UTC) #7
Takashi Toyoshima
additional comments for patch set 5. https://codereview.chromium.org/264973012/diff/80001/media/midi/midi_manager_alsa.cc File media/midi/midi_manager_alsa.cc (right): https://codereview.chromium.org/264973012/diff/80001/media/midi/midi_manager_alsa.cc#newcode26 media/midi/midi_manager_alsa.cc:26: const size_t kSendBufferSize ...
6 years, 7 months ago (2014-05-07 13:06:12 UTC) #8
Adam Goode
https://codereview.chromium.org/264973012/diff/40001/media/midi/midi_manager_alsa.cc File media/midi/midi_manager_alsa.cc (right): https://codereview.chromium.org/264973012/diff/40001/media/midi/midi_manager_alsa.cc#newcode28 media/midi/midi_manager_alsa.cc:28: SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ; On 2014/05/07 04:38:28, Takashi Toyoshima (chromium) ...
6 years, 7 months ago (2014-05-08 03:00:53 UTC) #9
Adam Goode
Also, the tests are failing because of permissions issues. I filed https://code.google.com/p/chromium/issues/detail?id=371230.
6 years, 7 months ago (2014-05-08 03:17:30 UTC) #10
Adam Goode
Your original heuristic for extracting the manufacturer seems good. I just need to do another ...
6 years, 7 months ago (2014-05-09 01:11:50 UTC) #11
Takashi Toyoshima
It looks almost ok, and now is good timing to try this new implementation in ...
6 years, 7 months ago (2014-05-16 19:31:51 UTC) #12
Takashi Toyoshima
> but for now I'm ok to modify the test and leave TODO with crbug.com/371230 ...
6 years, 7 months ago (2014-05-16 19:34:26 UTC) #13
Adam Goode
On 2014/05/16 19:34:26, Takashi Toyoshima (chromium) wrote: > > but for now I'm ok to ...
6 years, 7 months ago (2014-05-21 03:29:51 UTC) #14
Adam Goode
I am feeling pretty good at this point. The next two things would be hotplug(!) ...
6 years, 7 months ago (2014-05-25 04:57:05 UTC) #15
Adam Goode
On 2014/05/25 04:57:05, Adam Goode wrote: > I am feeling pretty good at this point. ...
6 years, 6 months ago (2014-06-03 19:31:59 UTC) #16
Takashi Toyoshima
Sorry for late response. Now, I'm visiting MTV, and can not try this new implementation ...
6 years, 6 months ago (2014-06-04 20:28:16 UTC) #17
Adam Goode
https://codereview.chromium.org/264973012/diff/140001/media/midi/midi_manager_alsa.cc File media/midi/midi_manager_alsa.cc (right): https://codereview.chromium.org/264973012/diff/140001/media/midi/midi_manager_alsa.cc#newcode45 media/midi/midi_manager_alsa.cc:45: CardInfo(std::string name, std::string manufacturer, On 2014/06/04 20:28:17, Takashi Toyoshima ...
6 years, 6 months ago (2014-06-08 02:52:58 UTC) #18
Adam Goode
The CQ bit was checked by agoode@chromium.org
6 years, 6 months ago (2014-06-08 02:53:48 UTC) #19
Adam Goode
On 2014/06/08 02:53:48, Adam Goode wrote: > The CQ bit was checked by mailto:agoode@chromium.org Thanks ...
6 years, 6 months ago (2014-06-08 02:54:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/agoode@chromium.org/264973012/160001
6 years, 6 months ago (2014-06-08 02:54:42 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-08 05:12:07 UTC) #22
Message was sent while issue was closed.
Change committed as 275732

Powered by Google App Engine
This is Rietveld 408576698