summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/gus.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use the MI interrupt enable/distable API instead of the MD one on i386 andkettenis2018-07-301-3/+4
| | | | | | remove the MD API. ok deraadt@
* Remove side effects from assignment. Fixes warning with cppcheck.bluhm2017-05-041-4/+4
| | | | | No binary change. OK ratchov@
* Remove unused getdev() audio driver functions.ratchov2016-09-191-28/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-57/+1
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* Cards with revision < 10 (qemu rev is 0), have no ad1848 chip andratchov2015-06-251-12/+39
| | | | | | | | | | | don't attach the ad1848 driver. But the "malloc" method of gus_hw_if is ad1848_malloc() which assumes a ad1848 is attached (and expect the softc pointer to be a struct ad1848_softc, but get a gus_softc pointer instead). Implement, the missing gus_{malloc,free,mappage,...} routines. Add the missing mtx_{enter,leave} calls, as we're at it. Found by mlarkin. ok mlarkin
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-111-49/+4
| | | | | | | | | the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-3/+3
| | | | after discussions with beck deraadt kettenis.
* ansify some function definitions.brad2013-11-151-208/+77
| | | | | | no functional change. ok sthen@
* Remove some lies in comments.kettenis2013-06-261-19/+16
|
* Since audio code is mp safe, establish isa and pci audio interruptsratchov2013-05-241-3/+4
| | | | | | | | with the IPL_MPSAFE flag. In certain circumstances, this prevents interrupt handlers from waiting the global kernel_lock possibly (hold by slower code) to be released. ok kettenis
* Introduce a global interrupt-aware mutex protecting dataratchov2013-05-151-25/+36
| | | | | | | | | | | | | structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
* Don't tinker with the MIDI registers if they aren't mapped; necessary for themiod2012-02-251-5/+7
| | | | GUS PnP.
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-1/+7
| | | | | | | | | | for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
* directly calling Debugger() is bad. turn these printf();Debugger(); seriesjasper2009-08-261-8/+2
| | | | | | into panic()'s. ok deraadt@ jsing@
* Second pass of simple timeout_add -> timeout_add_sec conversionsblambert2008-10-151-2/+2
| | | | | | | This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* allow low level audio drivers to specify a default sample format,jakemsr2008-04-211-1/+6
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* Internal interrupt counters should be compiled only if option AUDIO_DEBUGmiod2006-03-041-5/+5
| | | | rather than if option DIAGNOSTIC.
* make this compile with AUDIO_DEBUG; reported in tech@ byfgsch2005-10-191-11/+11
| | | | Gordon Willem Klok (gklok at cogeco dot ca).
* debranch SMP, have funniklas2004-06-131-2/+1
|
* Fix probe for GUS MAX cards; from NetBSD.miod2003-06-081-13/+23
| | | | mickey@ ok
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-58/+82
|
* First round of __P removal in sysmillert2002-03-141-8/+8
|
* new timeouts; some constifying; space controlmickey2001-01-291-146/+148
|
* MALLOC/FREE -> malloc/free ok art@nate2000-08-191-4/+4
|
* first attempt at isapnp gus supportderaadt1999-07-051-742/+331
|
* remove unneeded pio.h inclusionmickey1999-01-241-2/+1
|
* Midi & sequencer support from NetBSD, mostly by Lennart Augustssonniklas1999-01-021-2/+3
|
* Update audio_hw_if.downsj1998-11-031-1/+4
|
* mmap support for gus, dillema@acm.orgprovos1998-08-201-10/+11
|
* don't printf in probe routines.provos1998-05-131-4/+4
|
* Cleaned up AD1848 driver and added driver for Yamaha OPL3-SA3 to tree.csapuntz1998-05-081-285/+45
|
* update audio from NetBSD, mostly by Lennart Augustsson <augustss@cs.chalmers.se>provos1998-04-261-1086/+870
|
* move to current OpenBSD isadma APIniklas1998-01-181-18/+15
|
* sync with NETBSD 30/3/97 + adapating aria.cprovos1997-07-101-86/+44
|
* sync 0521deraadt1996-05-261-2/+3
|
* sync with 0504 -- prototypes and bus.hderaadt1996-05-071-56/+55
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-8/+13
|
* NetBSD 960317 mergeniklas1996-04-181-100/+122
|
* Fix back wrong patches.mickey1996-03-201-2/+2
|
* Merging w/ NetBSD 021796.mickey1996-03-191-2/+2
| | | | | speaker upgraded to the current. some changes to the VM stuff (ie kern_thread.c added and so).
* From NetBSD: merge of 960217niklas1996-03-081-22/+30
|
* Pass device name to interrupt establish routines so it can be recorded intholo1996-02-201-1/+1
| | | | | | | | | the device interrupt chain structures (isa, pci) Move interrupt chain structure definition to <machine/psl.h> so vmstat can get at it (i386) Remove hack to count interrupts the old way (i386)
* from netbsd:deraadt1995-12-271-3/+3
| | | | | The IST_* and IPL_* constants are not bus-specific; don't treat them as such. Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
* from netbsd; Convert IRQ, DRQ, and port numbers to intderaadt1995-12-141-37/+44
|
* initial import of NetBSD treederaadt1995-10-181-0/+4532