Recently sound(4) got support for kqueue, so this is natural extension.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| sys/dev/sound/midi/midi.c | ||
|---|---|---|
| 769 | I didn't find anything like CHN_F_DEAD in dsp.c so what do I need to check? | |
There are a lot of MIDI patches in review that simplify the code, so this won't apply. I can rewrite it on top of them if you want.
Also I suppose you know this code does not work for USB MIDI, at the moment. I will eventually make USB MIDI attach to it, but currently this only works for physical MIDI.
I expected to rebase this patch as you merge other patches, so feel free to leave this patch for later and I'll rebase it.
But I tested it only with USB MIDI. Anyway, why do you think it will not work? What am I missing?
Because this code currently does not run with USB MIDI at all. All the USB MIDI code in snd_uaudio(4).
I rebased this patch, but the problem is that I don't have the hardware to test it. I'll try to find cheap PCIe card to test this patch.
For testing you can use snd_dummy(4), I added some basic MIDI support, although you might need to make it more functional because it basically does more or less nothing currently.
snd_midi has a hiwat (high watermark) field which is used in midi_poll() as well. Also please provide a diff with full context.