Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [chap-midi] src/sys/dev



Module Name:    src
Committed By:   chap
Date:           Sat May 20 03:32:45 UTC 2006

Modified Files:
        src/sys/dev [chap-midi]: midi.c midi_if.h midisyn.c midisynvar.h
            midivar.h sequencer.c sequencervar.h
        src/sys/dev/usb [chap-midi]: umidi.c umidi_quirks.c umidi_quirks.h
            umidivar.h

Log Message:
The two choices CN_SEQ_GLOBAL and CN_SEQ_PER_EP cannot cover all devices,
some are wired arbitrarily oddly and need a CN_FIXED quirk to specify
the cable number mappings explicitly.  But then as a result of those
mappings, the automatically bound mididevice unit numbers might not match
the order of the device's physical jacks or blinkenlights, so an MD_FIXED
quirk is needed to specify that order as well.  It turns out the cn_base
field added earlier was neither necessary (at the time) nor sufficient
(to handle CN_FIXED), so it's gone now.

Q: How do you tell when you've got the cable number associations wrong on
   a Midisport 2x4?
A: Everything works right except data-rate throttling - you'll be able to
   send data to certain ports at rates far in excess of the MIDI data rate
   (and lose most of it). If you never transmit that fast, you'll never
   notice.

So testing for a sane data transfer rate (use dd to blast a stream of MIDI
data at the rmidi device, it'll report the rate on completion) is probably
a wise testing step when adding support for a new umidi device.


To generate a diff of this commit:
cvs rdiff -r1.43.2.12 -r1.43.2.13 src/sys/dev/midi.c
cvs rdiff -r1.17.14.6 -r1.17.14.7 src/sys/dev/midi_if.h
cvs rdiff -r1.17.2.6 -r1.17.2.7 src/sys/dev/midisyn.c
cvs rdiff -r1.9.14.6 -r1.9.14.7 src/sys/dev/midisynvar.h
cvs rdiff -r1.11.14.12 -r1.11.14.13 src/sys/dev/midivar.h
cvs rdiff -r1.30.14.12 -r1.30.14.13 src/sys/dev/sequencer.c
cvs rdiff -r1.10.14.4 -r1.10.14.5 src/sys/dev/sequencervar.h
cvs rdiff -r1.25.2.8 -r1.25.2.9 src/sys/dev/usb/umidi.c
cvs rdiff -r1.10.2.5 -r1.10.2.6 src/sys/dev/usb/umidi_quirks.c
cvs rdiff -r1.4.14.5 -r1.4.14.6 src/sys/dev/usb/umidi_quirks.h
cvs rdiff -r1.8.14.6 -r1.8.14.7 src/sys/dev/usb/umidivar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index