summaryrefslogtreecommitdiffstats
path: root/sys/dev/isa/ess.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ansijsg2021-03-071-5/+2
|
* Remove unused getdev() audio driver functions.ratchov2016-09-191-24/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-71/+3
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* Reimplement the audio driver in a simpler way, removing unused/unusableratchov2015-06-251-3/+6
| | | | | | functionality. Same API and ABI except for the removed bits and no behaviour change for programs using libsndio. With help from armani@ and mpi@, thanks.
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-111-50/+8
| | | | | | | | | 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@
* ansify some function definitions.brad2013-11-151-176/+64
| | | | | | no functional change. ok sthen@
* Since audio code is mp safe, establish isa and pci audio interruptsratchov2013-05-241-3/+5
| | | | | | | | 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-23/+37
| | | | | | | | | | | | | 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
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-9/+14
| | | | | | | | | | 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
* timeout_add -> timeout_add_msecblambert2010-06-301-6/+6
| | | | ok jakemsr@, who promises to deal with any fallout, because he's a stand-up guy
* audio(9) says low level drivers are allowed to change the requestedjakemsr2008-10-251-6/+9
| | | | | | | | | | | | | | values of the audio_params structure during AUDIO_SETINFO if the hardware cannot be set to exactly the requested mode. some drivers do this sometimes. others always return EINVAL if there isn't an exact match. be more consistent. only return EINVAL if an absurd parameter was requested, otherwise return a supported set of parameters, as close as possible to what was requested. with/ok ratchov@
* allow low level audio drivers to specify a default sample format,jakemsr2008-04-211-1/+3
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* audio encoding conversion cleanupjakemsr2007-11-051-3/+3
| | | | | | | | | | | | | - the endianness of the conversions don't depend on the endianness of machine the conversions are built on, but the endianness of the audio data itself. choose encoding conversions explicitly, instead of relying on #defines based on the endianness of the machine. - replace home-grown conversions with comparable conversions in auconv.c and mulaw.c - use the proper conversion for ulinear_be:16 -> slinear_le:16 in auixp(4) thanks ajacoutot@ and sthen@ for !x86 testing
* Fix size in snprintf() call; previous value turned out to be correct by luck.miod2006-02-221-2/+2
|
* make sure aligment does not return zero block sizemickey2005-04-151-2/+2
|
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-62/+100
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-7/+7
|
* First round of __P removal in sysmillert2002-03-141-69/+69
|
* make all audio drivers use the new allocm and round_buffersize decl's.ericj2002-01-201-8/+10
| | | | will ease porting, and generally cleans up a bit
* Change the audio_hm_if->mappage interface to return paddr_t and take off_tart2001-10-311-4/+4
| | | | as the mmap offset.
* do not reset the volume after playback; landy@alumni.caltech.eduderaadt2001-07-181-7/+5
|
* new timeouts; spacesmickey2001-01-291-56/+60
|
* Sync w/NetBSD. Add support for ES18[67][89] - Nonaka Kimihiro + muting control fixkstailey1999-09-301-28/+79
|
* ESS audio driver ported from NetBSD, some mixer problems with X-based mixersniklas1999-06-221-0/+2642
otherwise OK (mixerctl works quite OK, very strange). At the moment it is polled only, but it works quite OK that way too.