summaryrefslogtreecommitdiff
path: root/sys/dev/isa/opl_ess.c
AgeCommit message (Collapse)Author
2022-09-24Remove unnecessary include of <sys/malloc.h>.thorpej
2019-05-08Merge isaki-audio2 branch, the overhaul of audio subsystem.isaki
- Interrupt-oriented system rather than thread-oriented. - Improve stability, quality and performance. - Split playback and record cleanly. Improve halfduplex support. - Many bugs are fixed including deadlocks, resource leaks, abuses, etc. - Simplify audio filter mechanism. The encoding/channels/frequency conversions are completely handled in the upper layer. So the hard- ware driver only converts its hardware encoding (if necessary). - audio_hw_if changes: - Obsoletes query_encoding and add query_format instead. - Obsoletes set_params and add set_format instead. - Remove drain, setfd, mappage. - The call sequences are changed. - ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted. - ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced. - cleanup config attributes: au*conv and mulaw. - All hardware drivers should follow it (I've done as much as possible). Some file paths are changed: - dev/audio.c -> dev/audio/audio.c (rewritten) - dev/audiovar.h -> dev/audio/audiovar.h - dev/audio_dai.h -> dev/audio/audio_dai.h - dev/audio_if.h -> dev/audio/audio_if.h - dev/audiobell.c -> dev/audio/audiobell.c - dev/audiobellvar.h -> dev/audio/audiobellvar.h - dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
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
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.
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-03-15Split device_t and softc for opl(4). That should have been done along withcube
midi(4), because opl_softc embed a midi_softc. Fixes PR#38242 by Onno van der Linden.
2007-10-19machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.had
2006-11-16__unused removal on arguments; approved by core.christos
2006-10-12- sprinkle __unused on function decls.christos
- fix a couple of unused bugs - no more -Wno-unused for i386
2006-06-09stack police: Introduce an opl_match function that uses malloc instead ofchristos
allocating ~2K of softc on the stack.
2005-12-11merge ktrace-lwp.christos
2005-02-04de-__Pperry
2002-10-02Fix sizeof and whitespace bug from the script I'm using to do thethorpej
CFATTACH_DECL conversion. (Grumble.)
2002-10-02Use CFATTACH_DECL().thorpej
2002-09-27Declare all cfattach structures const.thorpej
2001-11-13add RCSIDlukem
1999-04-13Make copyrights conform.augustss
1998-12-08Make the OPL information string more informative.augustss
1998-08-26Make the OPL driver turn on the sound on sound cards that require it.augustss
That makes it much more likely that we get any sound. DUH!
1998-08-25Attach the OPL FM synth to the ESS driver.augustss
It probes, but alas, no sound.