summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/autri.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* autri(4): tsleep(9) -> tsleep_nsec(9); ok ratchov@cheloha2020-01-111-2/+3
|
* Add sizes for free() in autri(4).fcambus2019-12-041-3/+3
| | | | OK mpi@
* Simplify the activate() functions of auglx(4), autri(4), andratchov2016-12-201-10/+3
| | | | auvia(4). From Michael W. Bombardieri <mb at ii.net>. Thanks.
* Remove unused getdev() audio driver functions.ratchov2016-09-191-34/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-50/+2
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* Don't claim the autri(4) driver supports big-ending, signed 8-bit,ratchov2015-06-101-32/+6
| | | | or unsigned 16-bit samples. Fixes sound on big endian machines.
* Use first 4 channels of the board. The previous channel settingratchov2015-06-101-3/+3
| | | | | | caused DMA on the wrong memory location during recording. ok kettenis@
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-111-47/+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.
* Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt2013-12-061-7/+3
| | | | | | | | kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
* ansify some function definitions.brad2013-11-151-143/+48
| | | | | | 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/+14
| | | | | | | | | | | | | 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
* If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;ratchov2012-03-301-9/+5
| | | | | | | just return and make the midi(4) driver retry later. UART buffers are large enough for this, except eap(4) which uses interrupts for output. help from and ok jsg@
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-3/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* use nitems(); no binary change for drivers that are compiled on amd64.jasper2011-04-031-4/+3
| | | | ok claudio@
* audio(4) and ac97(4) style suspend/resumejakemsr2010-09-211-4/+12
|
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-10/+1
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* Since the changes in neo(4) work, it is very likely that the exact samederaadt2010-08-271-9/+19
| | | | | mechnical changes work in these drivers too. Testing can occur after this commit.
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-1/+5
| | | | | | | | | | 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
* these files don't need to include proc.h anymore. ok oga for agptedu2010-04-081-2/+1
|
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-2/+2
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* audio(9) says low level drivers are allowed to change the requestedjakemsr2008-10-251-7/+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/+2
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* More comment typos from Diego Casati. Including winners like funtion, allmost,krw2007-05-261-2/+2
| | | | oustside, seqencer, toghether, nessissary, etc.
* "interupt" -> "interrupt" in various comments. Mostly from Diego Casati.krw2007-05-251-3/+3
|
* Add optional flush method to MIDI hardware interface.jsg2006-04-071-1/+2
| | | | | | | Allow umidi(4) to send multiple events in a single USB transfer. This greatly improves the number of interrupts umidi is able to generate. From Alexandre Ratchov.
* IBM makes a pcn card that shows up as:brad2006-02-221-3/+16
| | | | | | | | | | Trident Microsystems 4DWAVE DX (ethernet network, revision 0x25) Unfortunately, this is an autri sound card. Special case the match routines for both drivers so if_pcn properly picks it up and autri does not. From NetBSD ok mickey@, tested by martin@
* do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ okmickey2005-08-091-8/+2
|
* 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-9/+9
|
* flag stereo channels as reversed. those rare people without swapped stereotedu2003-03-091-2/+7
| | | | | | can use config -e to set flags to 0x0001. ok deraadt@ mickey@
* - Fix playback problem on SiS7018.fgsch2002-11-291-9/+19
| | | | | | | | - mute the volume for interrupt channel. - add some improvements for device initialization. - Fix recording problem on SiS7018. From NetBSD via Gabriel Gonzalez.
* Add a simplistic table driven lookup routine and use it where appropriate.jason2002-11-191-26/+9
|
* do not read the codec regs, it seems to shutter the sound; from grendel@zeitbombe.org, reported and tested by rayl@spamcop.netmickey2002-10-041-1/+9
|
* time-bind the codec r/w loops, still does not solve problems on transmeta; tested by jason@ on sparc64; deraadt@ okmickey2002-09-261-4/+7
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-9/+8
|
* First round of __P removal in sysmillert2002-03-141-50/+44
|
* make all audio drivers use the new allocm and round_buffersize decl's.ericj2002-01-201-5/+3
| | | | will ease porting, and generally cleans up a bit
* choose one AC97 name and stick with it a bit more oftenderaadt2001-12-051-13/+13
|
* recover ugly irq print, cleanup on failure to attachmickey2001-12-011-4/+8
|
* remove static on functions.mickey2001-11-261-25/+25
| | | | | | from netbsd: Don't use a static variable in the power hook. It doesn't work with more than one device.
* Trident 4DWAVE-DX/NX, SiS 7018, ALi M5451 Sound Driver; from SOMEYA Yoshihiko and KUROSAWA Takahiro; tested by Matt Behrens <matt@zigg.com>mickey2001-11-261-0/+1620