summaryrefslogtreecommitdiff
path: root/sys/dev/pci/auvia.c
AgeCommit message (Collapse)Author
2008-10-25audio(9) says low level drivers are allowed to change the requestedJacob Meuser
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@
2008-10-23S/PDIF output support in ac97(4), auich(4) and auvia(4)Jacob Meuser
from NetBSD tested by a few with no regressions. optical works for jsg@. ok ratchov@
2008-10-02according to the alsa driver for these devices, the hardware providesJacob Meuser
256 buffer descriptors, and the 256th descriptor is flakey. this driver uses one descriptor for each block of the buffer, so we need to make sure buffer size / block size < 256, or we will run out of usable descriptors. lets me play youtube videos via gnash on my auvia equipped machine. ok ratchov@
2008-09-24remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok ratchov@
2008-08-12VT8233+ uses a different register base for capturingJacob Meuser
from NetBSD. fixes recording for kili@, martynas@ and me.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-05-25use ac97 default parameters for auich(4), auixp(4) and auvia(4).Jacob Meuser
they may have codecs which only handle 48kHz sampling rates. ok ratchov@
2008-04-21allow low level audio drivers to specify a default sample format,Jacob Meuser
instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
2008-03-30todd@ has 82c686 based auvia(4) devices that do full-duplexJacob Meuser
properly. restore full-duplex capabilities for 82c686 based devices.
2008-03-24auvia(4) doesn't record properly, so don't claim full-duplexJacob Meuser
capabilities.
2008-01-15bring in lots of ac97(4) and auvia(4) updates from NetBSDJacob Meuser
user visible changes: - when setting up ac97(4) mixer items, for some features like surround sound, check if the feature if supported by the codec and only add items for that feature if it is - auvia(4) now supports multichannel playback with at least some multichannel ac97(4) codecs fixes problems for me and ajacoutot with different auvia(4) devices/codecs. no regressions reported by testers. if you have an ac97(4) audio device and are using mixerctl.conf(5), you may want/need to update it. ok ratchov
2005-05-06Remove debug printf which crept in; spotted by drahn@Miod Vallat
2005-04-16do not provide round_buffer if not needed unless explained why in commentsMichael Shalayeff
2005-04-14make sure round_blocksize does not produce 0 after alignmentMichael Shalayeff
2005-04-11Make sure that the requested size is a multiple of block size inMatthieu Herrb
auvia_build_dma_ops(). Patch by miod@, ok deraadt@.
2004-12-07Don't link to ac97 specs from individual drivers.Jonathan Gray
ok mickey@
2004-09-14remove unused variable; netbsd, ok theoPeter Valchev
2004-01-09remove uvm_extern.hBrad Smith
tested on alpha, i386, powerpc, sparc64, m68k. ok miod@
2003-10-19Put fix from NetBSD:Alexander Yurchenko
Enable auvia_reset_codec's code and wait until the card is available. Fixes 'invalid codec' problems (at least with AD1980). ok mickey@
2003-05-21Endian fix for this driver, now works on big endian machines, ok mickey@Dale Rahn
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2003-02-28remove non-typo changes. sorry folksMichael Shalayeff
2003-02-28typo; from weissmanndudeMichael Shalayeff
2002-11-19Add a simplistic table driven lookup routine and use it where appropriate.Jason Wright
2002-06-03wrong cutnpaster; problem reported by Tim Tickel <twt@globodom.com> via pr2711Michael Shalayeff
2002-06-02knf, spaces, no \n in panicMichael Shalayeff
2002-05-31put the right thing into the audio name; pt out by Sebastian Stark ↵Michael Shalayeff
<seb@todesplanet.de>
2002-05-30proper support for vt8233; from freebsd; tested by Jolan Luff ↵Michael Shalayeff
<jolan@encryptedemail.net>
2002-05-08kt266 is reported to be doing auvia alright by Ian McWilliam ↵Michael Shalayeff
<ianm@cit.uws.edu.au>
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-20make all audio drivers use the new allocm and round_buffersize decl's.Eric Jackson
will ease porting, and generally cleans up a bit
2001-11-19remove local hack and use ac97_set_rate; tested by form@Michael Shalayeff
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-10-31Change the audio_hm_if->mappage interface to return paddr_t and take off_tArtur Grabowski
as the mmap offset.
2001-08-25Change pci_intr_map to take pci_attach_args as an argument.Artur Grabowski
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.
2001-06-12Make pci_mapreg_map take an extra argument where we canNiklas Hallqvist
put a size limitation of the PCI region to map. That makes the PERC 3/Di raid controller usable, as it publishes too much PCI memory for us to map in the kernel virtual memory. As we only access the first 256 byte it is of no use to map 128MB of kvm.
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-05-16extended registers are now in ac97.hMichael Shalayeff
2001-04-21correct dmesgTheo de Raadt
2001-04-16dmesg cleanupsTheo de Raadt
2001-03-14count interrupts proper; pointed out and tested by form@Michael Shalayeff
2000-12-27behave nicely w/ fixed rate codecs; from netbsd; testing by Igor Lulic ↵Michael Shalayeff
<il11@mail.csuchico.edu>
2000-10-14Add $OpenBSD$ tags.Aaron Campbell
2000-07-20new auvia and fms drivers from netbsd (testing requests sent out, since i ↵Theo de Raadt
cannot find any of these devices)