summaryrefslogtreecommitdiff
path: root/sys/dev/pci/eso.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-05-29specify alternate default audio parameters to make the default expansionJacob Meuser
factor 1 also obsoletes a XXX workaround in azalia 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-02-17some cleaning.Brad Smith
- ANSI - remove use of static - remove some #ifdef's - remove some white space ok jakemsr@ dlg@
2007-11-11bring in ~7 years worth of improvements and bug fixes from NetBSDJacob Meuser
user noticible highlights: - recording works - setting the blockize works correctly - added master volume mute ok ratchov
2005-08-09do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in ↵Michael Shalayeff
pcisubmatch(); kettenis@ testing; brad@ ok
2005-04-14make sure round_blocksize does not produce 0 after alignmentMichael Shalayeff
2003-05-01- initialize sc_pa before using itJason Wright
- fix another uninitialized variable - ditch htopci() and pcitoh()... they are completely wrong with bus_space(9) partially from NetBSD; ok mickey/millert upshot: now works on sparc64 (and probably macppc)
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2002-06-09fix resuming the eso through the powerhook; from marius aamodt eriksen ↵Michael Shalayeff
<marius@gone.crockster.net> via pr2704; from the #40 train
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
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-10-31Change the audio_hm_if->mappage interface to return paddr_t and take off_tArtur Grabowski
as the mmap offset.
2001-09-21Correct some pryntf() usage: get the correct number of arguments in theMiod Vallat
correct order.
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.
2000-07-19As in NetBSD, added direction to allocm/round_buffer_size APIs.Constantine Sapuntzakis
Accomplished by adding functions to audio_hw_if instead of redoing current ones so as to minimize need to change drivers. For Neomagic, tell the AC97 subsystem that we don't support reads.
2000-04-03fix dmesg outputTheo de Raadt
2000-01-11off by oneTheo de Raadt
1999-12-05Pass device mode to query_encoding in the structure to fill, soMarc Espie
that devices that don't need it are not affected. eso has those weird 16 bits mode that differ in endianess depending on READ/WRITE. Use this to avoid setting AUDIO_FLAGS_EMULATED needlessly. Reorder eso modes slightly so that emulated modes are always last.
1999-12-04rev E nameTheo de Raadt
1999-08-08dmesg output correctionsTheo de Raadt
1999-08-05simplify dmesg reportingTheo de Raadt
1999-08-05Use config_defer when a silicon bug hitsNiklas Hallqvist
1999-08-05mv isa/mpu401var.h ic/mpuvar.hTheo de Raadt
1999-08-04ESS Solo-1 PCI audio card driver, from NetBSDNiklas Hallqvist