Page MenuHomeFreeBSD

sound: Add kqueue support to MIDI
Needs ReviewPublic

Authored by meka_tilda.center on Thu, Dec 25, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 8, 3:37 AM
Unknown Object (File)
Thu, Jan 8, 3:33 AM
Unknown Object (File)
Sun, Jan 4, 11:32 PM
Unknown Object (File)
Wed, Dec 31, 9:59 AM
Unknown Object (File)
Wed, Dec 31, 3:53 AM
Unknown Object (File)
Tue, Dec 30, 7:42 PM
Unknown Object (File)
Mon, Dec 29, 2:10 PM
Unknown Object (File)
Sat, Dec 27, 12:22 PM
Subscribers

Details

Reviewers
christos
Summary

Recently sound(4) got support for kqueue, so this is natural extension.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

meka_tilda.center added inline comments.
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?

Use lock instead of qlock which will be removed in the future.

As midi_destroy will be removed, adapt this patch for that.

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.

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.

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.

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.

But I tested it only with USB MIDI. Anyway, why do you think it will not work? What am I missing?

Anyway, why do you think it will not work?

Because this code currently does not run with USB MIDI at all. All the USB MIDI code in snd_uaudio(4).

You can rebase it already. I just committed the patches.

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.