The NetBSD Project

CVS log for src/sys/dev/midisynvar.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:48 2012 UTC (14 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +2 -4 lines
sync to latest -current.

Revision 1.12.34.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:26 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +3 -4 lines
sync with head

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Apr 9 10:18:16 2012 UTC (14 years, 7 months ago) by plunky
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base-20171202, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -4 lines
Tidy up a little, the way that midi attachment code works

- change midi_attach() to omit the 'parent' arg (there are
  only two callers of this and it is not used)

- change midisyn_attach() to midisyn_init(), so not needing a midi_softc,
  and fix the midi_pcppi driver to set hw_if and hw_hdl directly in
  its midi_softc before calling midi_attach()

- add a device_t to opl_softc structure, change opl drivers to store
  the device 'self' in opl_softc and fix opl_attach() to use this
  opl_softc->dev field directly rather than a field in an otherwise
  unused midi_softc

- remove unnecessary midi_softc from opl and cms drivers (child device
  provides that)

reviewed by mrg

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Nov 23 23:07:31 2011 UTC (14 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1 lines
Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

  Add MP locking to the audio drivers.

  Making the audio drivers MP safe is necessary before efforts
  can be made to make the VM system MP safe.

  The are two locks per device instance, an ISR lock and
  a character device lock. The ISR lock replaces calls to
  splaudio()/splx(), and will be held across calls to device
  methods which were called at splaudio() before (e.g.
  trigger_output). The character device lock is held across
  calls to nearly all of the methods, excluding some only
  used for initialization, e.g. get_locks.

Welcome to 5.99.57.

Revision 1.12.36.1: download - view: text, markup, annotated - select for diffs
Sat Nov 19 21:49:35 2011 UTC (15 years ago) by jmcneill
Branches: jmcneill-audiomp3
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -1 lines
port ad-audiomp2 branch changes to 5.99.56
todo:
 - port ad-audiomp2 pcppi changes
 - these drivers need to be fixed:
   - emuxki
   - gcscaudio
   - hdafg
   - uaudio
   - umidi
   - MD audio drivers

Revision 1.12.12.1: download - view: text, markup, annotated - select for diffs
Tue Dec 9 13:09:13 2008 UTC (17 years, 11 months ago) by ad
Branches: ad-audiomp2
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -1 lines
Checkpoint work on MIDI.

Revision 1.11.36.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:12 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +1 -8 lines
Sync with HEAD.

Revision 1.11.38.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:30 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +1 -8 lines
sync with head.

Revision 1.11.40.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:49 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +1 -8 lines
sync with head.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:47 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base
Branch point for: yamt-pagecache, jmcneill-audiomp3, ad-audiomp2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -8 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.8.12.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:15 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.8.12.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.12.2: +2 -2 lines
sync with head.

Revision 1.10.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:05 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -2 lines
Sync with HEAD.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:43 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.8.12.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:50 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.8.12.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.12.1: +128 -17 lines
sync with head.

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:09 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +128 -17 lines
sync with head

Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:52 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +128 -17 lines
sync with head

Revision 1.9.16.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:17 2006 UTC (20 years, 4 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +128 -17 lines
Merge from HEAD.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jun 30 13:56:25 2006 UTC (20 years, 4 months ago) by chap
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +128 -17 lines
Ankh-Morpork, we have a MIDI driver....

Merge from chap-midi branch, after
~month for review
Comments by thorpej@ drochner@ and Alexandre Ratchov

Incorporated: points by thorpej@ drochner@; preliminary support for
a stats-collecting ioctl suggested by martin@ from comments by A.R.

PR kern/32441 kern/32442 kern/32567 kern/32588 kern/32694 kern/33590
kern/33614 and one instance of kern/32651

ok martin@

Revision 1.8.12.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:12 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
sync with head.

Revision 1.9.14.17: download - view: text, markup, annotated - select for diffs
Sat Jun 10 22:32:27 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.16: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.14.16: +5 -1 lines
Now with support for the following MIDI controls -

  Channel Volume
  Expression

- the following heretofore unimplemented message -

  Pitch Bend

- and the following registered parameters -

  Pitch Bend Range
  Channel Fine Tuning
  Channel Coarse Tuning

Volume and Expression are handled by all synth chip drivers but pcppi
(which has a fixed volume). All of the pitch controls will be effective
(at least for new notes struck after a change) for all current synth
drivers but cms (that driver discards all the fractional pitch bits and
calculates its own frequency by a table lookup; it should be possible to
do better with knowledge of the formula behind the table, but I have
found no cms docs).  If a driver provides repitchv and relevelv methods
for changing the pitch/level of a sounding voice, then changes to these
parameters will take effect in real time and not just for subsequent notes.
The effect can be heard (for repitchv) over pcppi.

Heads up: if you build with libprop earlier than 2006.05.28, you can enjoy
the exhilarating experience of seeing kernel memory stomped. ;)

Revision 1.9.14.16: download - view: text, markup, annotated - select for diffs
Fri Jun 9 17:05:28 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.15: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.15: +9 -37 lines
Bit of housecleaning.

"miditune" wasn't a good name for the pitch representation (even if it
did come from the MIDI Tuning Specification) because for too many people
a 'tune' is a little ditty, not a single pitch. Changed the name to
midipitch and added a typedef midipitch_t; renamed the associated macros
consistently.

The type and operations on it are now in <sys/midiio.h> because they could
show up in userland for manipulation of the MIDI Tuning messages that
RP-012 defines. The macro MIDIPITCH_TO_HZ18 expands in userland to
ordinary libm calls, and in-kernel to the no-floating-point version in
midisyn. A few more operations are defined in userland where libm is
available.

At the same time, made midipitch_t signed. It has the bits to spare,
and such manipulations as adding several corrections and clamping the
result will be simpler with it signed.

Revision 1.9.14.15: download - view: text, markup, annotated - select for diffs
Thu Jun 8 13:21:48 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.14: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.14: +84 -7 lines
Rototill of midisyn <-> synth driver i/f.

The DOALLOC and FREQXLATE flags are on the way out. Whether a driver wants
allocation service is deducible from whether it provides an allocv method, and
anyway none does. As for freq, they all get a miditune and can convert it
whichever way they want.

Controller handling with midictl is hooked in but few controllers watched yet.

Some macros for manipulating the miditune type are currently in midisynvar.h
but should perhaps be exported in midiio.h.

opl no longer has its own master volume state (there was no setter for it
anyway, it never changed); soon that will be handled centrally in midisyn.

Builds a kernel. Not all functionality tested yet.

Revision 1.9.14.14: download - view: text, markup, annotated - select for diffs
Thu Jun 8 04:55:23 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.13: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.13: +50 -8 lines
Now with some conversions allowing relatively standard units to be used in
the i/f to synth drivers so everybody means the same thing. For volume
levels, centibels should be ample resolution, and the MIDI Tuning format
specified in RP-012 is a good way to pass around pitches. A nice thing
about both of these formats is that they're manipulated additively.

Next up: redefine the appropriate methods to use these parameter formats.

Revision 1.9.14.13: download - view: text, markup, annotated - select for diffs
Wed Jun 7 05:31:43 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.12: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.12: +13 -5 lines
Done pruning unused and ill-defined methods. Several bits of code that
actually did nothing have been replaced with comments explaining what
ought to be done there someday. This is actually progress. Everything
should still work, save PAN for opl, the only preexisting functionality
that's actually gone at this point, but it will be back soon.

Revision 1.9.14.12: download - view: text, markup, annotated - select for diffs
Wed Jun 7 01:23:09 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.11: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.11: +2 -3 lines
The midisyn clients now use designated initializers so the method
structure can evolve. Only opl currently provides any methods beyond
open/close/note-on/note-off. Only cms takes a note number; the others
want a frequency. This is good because it is much easier that way to
put a common handler for tuning/pitchbend/portamento in midisyn itself.

Next up, axe most methods nobody implements. Split note-on into two
methods, one with a frequency, one with a note number, of which a driver
provides one or the other. So far all of the clients delegate voice
allocation to midisyn, so clarify that the method is getting an actual
voice number for the device and not a MIDI channel. If a device that can
do its own allocation is later to be supported, let appropriate different
methods be added then.

Revision 1.9.14.11: download - view: text, markup, annotated - select for diffs
Wed Jun 7 00:09:39 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.10: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.10: +13 -2 lines
midisyn now uses midictl instead of punting every ctl_change message
uninterpreted down to the MD synth driver (most of which don't even
try to field it).  Right now that means no control change has any effect
right now, but that is a loss of functionality only for OPL, which handled
the following extensive set of control messages:  { PAN }

Now to do some tillage of the midisyn <-> md synth interface with the goal
of adding a method for communicating /cooked/ control messages down. Won't
be much tillage because there are only 3 children in the tree and the two
that aren't opl have no ctl logic at all.  Start by making them all use
designated initializers for their method structures, so the set of methods
can evolve without a versioning nightmare. Then probably prune a number of
methods that NOBODY implements, where it's not clear they're defined the
best way to begin with, and they can easily re-evolve (possibly in better
form) when there is actual interest in implementing them.

Revision 1.9.14.10: download - view: text, markup, annotated - select for diffs
Sat May 20 04:31:59 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.9: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.9: +3 -3 lines
Now for Phase Two. The patched files have been rolled forward again, with
a naive mechanical resolution of conflicts. Now to compare the diffs and
make sure the resolutions made sense. Sleep first.

Revision 1.9.14.9: download - view: text, markup, annotated - select for diffs
Sat May 20 03:43:58 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
CVS tags: chap-midi-ph2
Diff to: previous 1.9.14.8: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.8: +0 -0 lines
Learned of two ugly corners in MIDI protocol that made the state machine
overly pedantic. Both have to do with the End SysEx byte, 0xf7. First, it
is allowed not only at the end of a SysEx message, but anywhere else any
status byte can appear (and in that case has no meaning). Second, it is
not even required at the end of a SysEx message - any subsequent status
byte implicitly ends the SysEx, and this is not considered an error.

I don't like these provisions because they make it even harder to detect
errors in a corrupted MIDI stream, but as MIDI gets sent increasingly over
error-correcting transports I suppose that is less of a concern. In any
case, though midi(4) will accept data (input from device or data from
write(2)) with stray or dropped End SysEx bytes, it will always ensure
that output to the device, and data for read(2), has End SysEx only and
always at the ends of SysEx messages.

Revision 1.9.14.8: download - view: text, markup, annotated - select for diffs
Sat May 20 03:41:28 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.7: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.7: +0 -0 lines
Spotted a bug in a buffer condition. Never saw any symptom, but it's a
bug nonetheless.

Revision 1.9.14.7: download - view: text, markup, annotated - select for diffs
Sat May 20 03:32:45 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.6: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.6: +0 -0 lines
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.

Revision 1.9.14.6: download - view: text, markup, annotated - select for diffs
Sat May 20 03:31:22 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.5: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.5: +0 -0 lines
Patch to account explicitly for the prior inconsistency in the treatment of
cable numbers. Also contains a (functionally insignificant) change to the
declaration of endpoint buffers introduced in kern/32441, which will be
useful in a forthcoming patch.  This patch should be fuzz-free on 2.0
source after the 32441 and 32442 patches.

Revision 1.9.14.5: download - view: text, markup, annotated - select for diffs
Sat May 20 03:27:31 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.4: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.4: +0 -0 lines
Active Sense now handled for receive as well as for transmit. Following the
spec, if no Active Sense is seen on receive, no special behavior applies,
but if an Active Sense is seen then any absence of received data exceeding
300ms thereafter will be signalled as a read EOF on the rmidi device.
Receipt of any further data will clear the EOF condition, and operation
resumes as if no Active Sense has been seen.

Also moved some selnotify's out of locks so they don't deadlock against
the corresponding kevent filters.

This concludes this round of midi hacking (except for possibly improving
the safety of how pending callouts and interrupts are canceled on device
detach. Other fixes/enhancements to the midi subsystems will get their
own patches.

Revision 1.9.14.4: download - view: text, markup, annotated - select for diffs
Sat May 20 03:24:33 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.3: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.3: +0 -0 lines
The FST now handles the equivalence between NoteOn (velocity 0) and a
NoteOff with velocity 64, both for canonicalizing (always produce NoteOff)
and compressing (produce whichever allows a current running status to be
exploited). The code from sequencer that attempted to model this behavior
and running status has been superseded and removed. Also removed the
EBADF checks I added to sequencer earlier, as they're handled in a layer
above.

Revision 1.9.14.3: download - view: text, markup, annotated - select for diffs
Sat May 20 03:22:31 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.2: +0 -0 lines
umidi now uses hw_if_ext and no longer has its own approximate midi state
machine.  This patch is relative to umidi.c and umidivar.h already patched
by midiman.pat (kern/32441).

Revision 1.9.14.2: download - view: text, markup, annotated - select for diffs
Sat May 20 03:19:02 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
Diff to: previous 1.9.14.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.14.1: +1 -3 lines
Added hw_if_ext for hw drivers that want their messages intact rather than
byte by byte. Works with midisyn - must still integrate and test with
umidi.

Revision 1.9.14.1: download - view: text, markup, annotated - select for diffs
Sat May 20 02:15:21 2006 UTC (20 years, 6 months ago) by chap
Branches: chap-midi
CVS tags: chap-midi-ph1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Now for Phase One. The patches to be applied in sequence were created
and tested against 2.0 sources. To begin, let CVS roll the affected files
back to that historic state. The reverse operation will be used (and
will involve some manual merging) after the patches have been applied.
Naturally, intermediate stages on this branch will not be directly
compilable (unless merged into a 2.0 checkout).

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:53 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, gdamore-uart, chap-midi
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
merge ktrace-lwp.

Revision 1.6.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:19 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.4: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.4: +2 -2 lines
Sync with HEAD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Oct 29 12:57:16 2004 UTC (22 years ago) by yamt
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
constify audio_hw_if, midi_hw_if, and radio_hw_if.

Revision 1.6.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:25 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.3: preferred, colored
Changes since revision 1.6.2.3: +2 -2 lines
Fix the sync with head I botched.

Revision 1.6.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:28 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.2: preferred, colored
Changes since revision 1.6.2.2: +2 -2 lines
Sync with HEAD.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:44:54 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.6.2.1: preferred, colored
Changes since revision 1.6.2.1: +2 -2 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 4 13:57:30 2003 UTC (22 years, 11 months ago) by keihan
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
netbsd.org -> NetBSD.org

This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:01 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:01 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -1 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:31 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.3.24.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:52:48 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +14 -14 lines
Sync kqueue branch with -current.

Revision 1.3.26.1: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:01 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +14 -14 lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.3.22.1: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:10:55 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +14 -14 lines
Catch up to -current.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Oct 2 22:41:22 2001 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +14 -14 lines
ANSIfy.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Nov 25 22:17:07 1998 UTC (27 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej_scsipi, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Make the copyright header conform to the NetBSD template.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Aug 17 21:16:12 1998 UTC (28 years, 3 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc-base, chs-ubc
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +19 -3 lines
* Redo the way the way the MIDI driver attaches to audio devices.
* Improve the midisyn layer a little.
* Add a driver for the Yamaha OPL[23] FM synths.
  The opl driver is not finished yet; it sounds pretty awful.

For some strange reason I cannot get any FM sound from my SB64 cards,
but a regular SB16 works fine.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Aug 12 18:14:02 1998 UTC (28 years, 3 months ago) by augustss
Branches: MAIN
Add a layer to handle emulation of MIDI for synthesizers.
It handles decoding of MIDI commands, voice allocation, and translation
it notes to frequencies.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>