summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/sv.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* free(9) sizes.mpi2019-05-131-3/+3
| | | | From Jan Klemkow, ok tedu@
* Remove unused getdev() audio driver functions.ratchov2016-09-191-17/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-46/+1
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-111-67/+5
| | | | | | | | | 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@
* 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-104/+32
| | | | | | no functional change. ok sthen@
* Since audio code is mp safe, establish isa and pci audio interruptsratchov2013-05-241-3/+3
| | | | | | | | 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-9/+13
| | | | | | | | | | | | | 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/+16
| | | | | | | | | | 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
* Don't use == for string comparison.jsg2009-06-231-2/+2
| | | | "looks good to me" jakemsr@
* audio(9) says low level drivers are allowed to change the requestedjakemsr2008-10-251-5/+7
| | | | | | | | | | | | | | 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/+2
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* protect against an invalid device index possibly leading to kerneljakemsr2008-01-141-1/+4
| | | | | | crash. inspired by deanna's similar bug fix in ac97. ok ratchov
* audio encoding conversion cleanupjakemsr2007-11-051-4/+4
| | | | | | | | | | | | | - 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
* do not inline pci_mapreg_map() anymore as it is olrite now; brad@ okmickey2005-09-111-10/+4
|
* do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ okmickey2005-08-091-7/+1
|
* remove __BROKEN_INDIRECT_CONFIG cruftbrad2005-07-161-6/+1
|
* do not provide round_buffer if not needed unless explained why in commentsmickey2005-04-161-12/+2
|
* make sure round_blocksize does not produce 0 after alignmentmickey2005-04-141-2/+2
|
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-25/+30
|
* be consistant on Hz vs hzmickey2003-02-111-2/+2
|
* abs() is defined by ANSI C -- don't use a macro for it. ok niklas@nordin2002-06-111-4/+2
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-3/+3
|
* First round of __P removal in sysmillert2002-03-141-36/+36
|
* 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.
* Change pci_intr_map to take pci_attach_args as an argument.art2001-08-251-3/+2
| | | | | | | | | | | All callers actually took all arguments to pci_intr_map from pci_attach_args structs, so this simplifies code. This also allows more complicated interrupt assignment schemes like the one on sparc64. This makes sparc64 pci interrupts work. Inspired by the same change in NetBSD.
* fix dmesg outputderaadt2000-04-031-11/+8
|
* new bus_dma API, match itniklas1999-08-041-4/+3
|
* Midi & sequencer support from NetBSD, mostly by Lennart Augustssonniklas1999-01-021-2/+2
|
* Update audio_hw_if.downsj1998-11-031-1/+3
|
* make compile with AUDIO_DEBUG definedniklas1998-10-051-2/+3
|
* Unmute DAC and turn off 3-D SRS by defaultcsapuntz1998-07-131-7/+34
|
* Map DMA registers at open instead of attach time, if necessary. Less chancecsapuntz1998-07-131-49/+139
| | | | of conflicts then.
* S3 SonicVibes drivercsapuntz1998-07-071-0/+1402