summaryrefslogtreecommitdiffstats
path: root/sys/arch/sgi/dev/mavb.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove the unused interrupt type (edge/level) from the mace interruptvisa2018-12-031-2/+2
| | | | | | | | handler registration. The code is inherited from isa(4), but on the O2, although some interrupt sources on CRIME are edge-triggered, all the MACE interrupts are level-triggered. From miod@
* Remove unused getdev() audio driver functions.ratchov2016-09-191-16/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-38/+2
| | | | | 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-213/+16
| | | | | | | | | 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@
* Format string fixes and removal of -Wno-format for sgi. Based upon anmiod2014-05-191-5/+5
| | | | initial diff from jasper@
* enable 24-bit, lsb-aligned encoding, which is the device'sratchov2013-06-211-5/+12
| | | | | native one. Allows encoding conversions to be handled in userland
* Introduce a global interrupt-aware mutex protecting dataratchov2013-05-151-4/+11
| | | | | | | | | | | | | 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 include <mips64/archtype.h> unless you really need it.miod2012-10-031-4/+1
|
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-1/+11
| | | | | | | | | | 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-07-021-5/+5
| | | | ok miod@ some time ago
* * always move the same amount of data (256 frames) in the interrupt handlerjakemsr2009-11-181-68/+271
| | | | | | | | | * round blocksizes to multiples of 256 frames * fix display of record.source.volume and add record.mic.preamp mixer controls * add recording support ok kettenis@. ok ratchov@ on a slightly different version.
* Better crime/mace interrupt handling; interrupt information is no longermiod2009-10-261-11/+12
| | | | | | | | specified in the kernel configuration file, but is provided by macebus(4) as part of the child device attachment args, and provide both crime and mace interrupt bitmasks; this allows us to only really enable interrupt sources we care about, and to avoid invoking interrupt handler we don't need to for the few mace interrupts multiplexed at the crime level.
* allow low level audio drivers to specify a default sample format,jakemsr2008-04-211-2/+3
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* Completely overhault attachment rules on sgi. No more indirect configurationmiod2008-02-201-5/+2
| | | | | | | | inherited from OpenBSD/arc machines with ISA bus; mainbus children match on device name and other hierarchies match on simplified locators. As a bonus, attachment lines in dmesg will now print their locators. ok jsing@
* Check for codec presence in match(), and don't attach if none is found.miod2007-05-201-9/+10
| | | | ok kettenis@
* make sure aligment does not return zero block sizemickey2005-04-151-2/+2
|
* Fix MACE ISA ringbuffer alignment.kettenis2005-01-241-2/+2
|
* Tweak mixer label. Whitespace.kettenis2005-01-241-3/+3
|
* Split out register definitions.kettenis2005-01-021-141/+11
|
* Add OpenBSD tag. Better mixer support.kettenis2005-01-021-17/+395
|
* Moosehead A/V Board audio driver.kettenis2005-01-021-0/+977