Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use the MI interrupt enable/distable API instead of the MD one on i386 and | 2018-07-30 | 1 | -3/+4 | |
| | | | | | | remove the MD API. ok deraadt@ | ||||
* | Remove side effects from assignment. Fixes warning with cppcheck. | 2017-05-04 | 1 | -4/+4 | |
| | | | | | No binary change. OK ratchov@ | ||||
* | Remove unused getdev() audio driver functions. | 2016-09-19 | 1 | -28/+1 | |
| | |||||
* | Remove drain(), query_encoding(), mappage() and get_default_params() | 2016-09-14 | 1 | -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 and | 2015-06-25 | 1 | -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 holding | 2015-05-11 | 1 | -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 includes | 2014-09-14 | 1 | -2/+1 | |
| | | | | ok mpi@ kspillner@ | ||||
* | add a size argument to free. will be used soon, but for now default to 0. | 2014-07-12 | 1 | -3/+3 | |
| | | | | after discussions with beck deraadt kettenis. | ||||
* | ansify some function definitions. | 2013-11-15 | 1 | -208/+77 | |
| | | | | | | no functional change. ok sthen@ | ||||
* | Remove some lies in comments. | 2013-06-26 | 1 | -19/+16 | |
| | |||||
* | Since audio code is mp safe, establish isa and pci audio interrupts | 2013-05-24 | 1 | -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 data | 2013-05-15 | 1 | -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 the | 2012-02-25 | 1 | -5/+7 | |
| | | | | GUS PnP. | ||||
* | add two new members to structs audio_encoding and audio_prinfo. | 2010-07-15 | 1 | -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(); series | 2009-08-26 | 1 | -8/+2 | |
| | | | | | | into panic()'s. ok deraadt@ jsing@ | ||||
* | Second pass of simple timeout_add -> timeout_add_sec conversions | 2008-10-15 | 1 | -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. | 2008-06-26 | 1 | -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, | 2008-04-21 | 1 | -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_DEBUG | 2006-03-04 | 1 | -5/+5 | |
| | | | | rather than if option DIAGNOSTIC. | ||||
* | make this compile with AUDIO_DEBUG; reported in tech@ by | 2005-10-19 | 1 | -11/+11 | |
| | | | | Gordon Willem Klok (gklok at cogeco dot ca). | ||||
* | debranch SMP, have fun | 2004-06-13 | 1 | -2/+1 | |
| | |||||
* | Fix probe for GUS MAX cards; from NetBSD. | 2003-06-08 | 1 | -13/+23 | |
| | | | | mickey@ ok | ||||
* | strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit. | 2003-04-27 | 1 | -58/+82 | |
| | |||||
* | First round of __P removal in sys | 2002-03-14 | 1 | -8/+8 | |
| | |||||
* | new timeouts; some constifying; space control | 2001-01-29 | 1 | -146/+148 | |
| | |||||
* | MALLOC/FREE -> malloc/free ok art@ | 2000-08-19 | 1 | -4/+4 | |
| | |||||
* | first attempt at isapnp gus support | 1999-07-05 | 1 | -742/+331 | |
| | |||||
* | remove unneeded pio.h inclusion | 1999-01-24 | 1 | -2/+1 | |
| | |||||
* | Midi & sequencer support from NetBSD, mostly by Lennart Augustsson | 1999-01-02 | 1 | -2/+3 | |
| | |||||
* | Update audio_hw_if. | 1998-11-03 | 1 | -1/+4 | |
| | |||||
* | mmap support for gus, dillema@acm.org | 1998-08-20 | 1 | -10/+11 | |
| | |||||
* | don't printf in probe routines. | 1998-05-13 | 1 | -4/+4 | |
| | |||||
* | Cleaned up AD1848 driver and added driver for Yamaha OPL3-SA3 to tree. | 1998-05-08 | 1 | -285/+45 | |
| | |||||
* | update audio from NetBSD, mostly by Lennart Augustsson <augustss@cs.chalmers.se> | 1998-04-26 | 1 | -1086/+870 | |
| | |||||
* | move to current OpenBSD isadma API | 1998-01-18 | 1 | -18/+15 | |
| | |||||
* | sync with NETBSD 30/3/97 + adapating aria.c | 1997-07-10 | 1 | -86/+44 | |
| | |||||
* | sync 0521 | 1996-05-26 | 1 | -2/+3 | |
| | |||||
* | sync with 0504 -- prototypes and bus.h | 1996-05-07 | 1 | -56/+55 | |
| | |||||
* | partial sync with netbsd 960418, more to come | 1996-04-21 | 1 | -8/+13 | |
| | |||||
* | NetBSD 960317 merge | 1996-04-18 | 1 | -100/+122 | |
| | |||||
* | Fix back wrong patches. | 1996-03-20 | 1 | -2/+2 | |
| | |||||
* | Merging w/ NetBSD 021796. | 1996-03-19 | 1 | -2/+2 | |
| | | | | | speaker upgraded to the current. some changes to the VM stuff (ie kern_thread.c added and so). | ||||
* | From NetBSD: merge of 960217 | 1996-03-08 | 1 | -22/+30 | |
| | |||||
* | Pass device name to interrupt establish routines so it can be recorded in | 1996-02-20 | 1 | -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: | 1995-12-27 | 1 | -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 int | 1995-12-14 | 1 | -37/+44 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+4532 | |