summaryrefslogtreecommitdiff
path: root/sys/dev/sequencer.c
AgeCommit message (Collapse)Author
2013-10-17remove unused variableschristos
2013-04-27allocate dynamicallychristos
2012-04-09Tidy up a little, the way that midi attachment code worksplunky
- 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
2012-02-13call VOP_CLOSE() in the case we're bailing due to missing both read/write.mrg
fixes vrelel() warnings when opening /dev/music on a device that doesn't support the requested open flags.
2011-11-23Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. Fromjmcneill
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.
2009-03-18Ansify function definitions w/o arguments. Generated with sed.cegger
2009-01-11make this compilecegger
2008-07-15Use more timespecs internally. From Alexander Shishkin and me.christos
Welcome to 4.99.70, 30 more to go for 100.
2008-06-12use device_lookup_private to get softccegger
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-24Network protocol interrupts can now block on locks, so merge the globalsad
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
2008-03-21use devsw_name2chr() to look up the major number of the midi device asplunky
it is a character device
2008-03-04Split device_t/softc for midi(4), and other related cosmetic changes.cube
2008-03-01Welcome to 4.99.55:rmind
- Add a lot of missing selinit() and seldestroy() calls. - Merge selwakeup() and selnotify() calls into a single selnotify(). - Add an additional 'events' argument to selnotify() call. It will indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown, zero may be used. Note: please pass appropriate value of 'events' where possible. Proposed on: <tech-kern>
2007-12-05Do not "return 1" from kqfilter for errors. That value is passedpooka
directly to the userland caller and results in a mysterious EPERM. Instead, return EINVAL or something else sensible depending on the case.
2007-10-08Use the softint API.ad
2007-07-09Merge some of the less invasive changes from the vmlocking branch:ad
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-02-09Merge newlock2 to head.ad
2006-11-24fix spelling of accommodate; from Zapher.christos
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-22make compile for NMIDI == 0pooka
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2006-09-03- add missing initializerchristos
- comment out impossible comparison
2006-08-17Fix all the -D*DEBUG* code that it was rotting away and did not even compile.christos
Mostly from Arnaud Lacombe, many thanks!
2006-06-30Ankh-Morpork, we have a MIDI driver....chap
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@
2006-06-28Actually initialize the "struct midi_info" in midi_getinfo().tron
Problem found by GCC 4.x.
2005-12-11merge ktrace-lwp.christos
2005-06-01more cast-qual and shadow falloutdrochner
2005-05-29- add constchristos
- avoid variable shadowing.
2005-02-27nuke trailing whitespaceperry
2005-02-04de-__Pperry
2003-12-04netbsd.org -> NetBSD.orgkeihan
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.
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
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
2002-11-26si_ -> sel_christos
2002-10-23merge kqueue branch into -currentjdolecek
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
2002-01-13Call malloc(9) with M_ZERO flag instead of memset() after malloc().tsutsui
2001-11-13remove superfluous NSEQUENCER > 0 testlukem
2001-11-13add RCSIDslukem
2001-09-03Make it compile again when AUDIO_DEBUG is turned on ... in sequencesreadreinoud
and sequencerwrite were two debug messages that had a type conflict in the printf. I put in a (int) to solve it.
2000-03-23New callout mechanism with two major improvements over the oldthorpej
timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel. The old timeout()/untimeout() API has been removed from the kernel.
1999-10-11Allow larger timer variation.augustss
1998-11-25Make the copyright header conform to the NetBSD template.augustss
1998-10-20Make seq_input_event() static to avoid a name clash with the (commercial)augustss
OSS audio LKM.
1998-10-05Make MIDI input work again.augustss
Fix from Torsten Duwe <duwe@ns.lst.de>.
1998-08-24Write MIDI data from the sequencer to the device in a more sane way.augustss
1998-08-20Provide a workaround for people who want a sequencer but have no MIDI devices.augustss
1998-08-17* Redo the way the way the MIDI driver attaches to audio devices.augustss
* 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.