summaryrefslogtreecommitdiff
path: root/sys/dev/audio.c
AgeCommit message (Collapse)Author
2005-06-02correctly close the audio device in audio_open() if one of theJoris Vink
precision parameters is zero. ok tedu@
2005-04-14Make sure recording is started before we return EWOULDBLOCK in a read().Brad Smith
From NetBSD ok mickey@
2004-07-10replace strange cpp magic by straight codeVincent Labrecque
ok deraadt@
2004-01-09remove uvm_extern.hBrad Smith
tested on alpha, i386, powerpc, sparc64, m68k. ok miod@
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-01-26compute record high water mark from record parameters not play parameters; ↵Jason Wright
from NetBSD kern/19614
2002-08-26space cleanup; some from grendel@zeitbombe.orgMichael Shalayeff
2002-06-16implement kqueue for audio; tested on wiggy and niels@ okMichael Shalayeff
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-06correct monitor port matching.Federico G. Schwindt
2002-02-04if we have a monitor port, don't get it, set it.Federico G. Schwindt
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
2002-01-10return ENOTTY not EINVAL in default: in *ioctl()Michael Shalayeff
2002-01-09make sure mixer was opened for write for AUDIO_MIXER_WRITEMichael 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-11-01Change d_mmap in struct cdevsw from:Artur Grabowski
int (*d_mmap) __P((dev_t, int, int)); to: paddr_t (*d_mmap) __P((dev_t, off_t, int)); This allows us to mmap devices past 4GB offsets.
2001-10-31Change the audio_hm_if->mappage interface to return paddr_t and take off_tArtur Grabowski
as the mmap offset.
2001-09-20occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok
2001-08-11no need to include vm_prot.h here.Artur Grabowski
2001-07-27Correct return values from audiommap.Artur Grabowski
2001-07-03Make the audio device play nice with revoke(2) by having it resetHugh Graham
both directions if neither read nor write flags are set on close. Cleared by niklas and with some analysis by bjc.
2001-01-28Add a field to mixer_devinto_t that indicates the minimum delta to changeAaron Campbell
mixer value. A value of 0 indicates that the driver doesn't supply a delta. The change is backwards compatible. From NetBSD (needed for uaudio(4) update).
2000-11-09cast pointer to a long for alpha's sake; pointed out by ericj@Michael Shalayeff
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-05-24Permit detach of audio devices, such as uaudio. Selected codeHakan Olsson
from NetBSD/Lennart Augustsson. (niklas@ ok)
2000-04-10make .mpg playing more usefull, i.e. supply entropyMichael Shalayeff
2000-01-03Remove dependencies between midi & audio. midi now will compile onFederico G. Schwindt
speaker only systems.
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-11-20ioctl arguments are u_long.Marc Espie
Replaces `undefined' code with `defined' behavior... gcc 2.96 performs switch cases range analysis, warns about unreachable cases, and weeds them out. In switch(i) { case VALUE: } VALUE is first coerced into the type of i. If i is signed, VALUE is unsigned and exceeds i range, you lose... the result of the conversion is undefined.
1999-06-19From NetBSD:Jason Wright
Don't clobber the error returned by uiomove() when starting the audio output (in case we got a partial block).
1999-01-02Midi & sequencer support from NetBSD, mostly by Lennart AugustssonNiklas Hallqvist
1998-11-20careful off handling in mmap routinesTheo de Raadt
1998-11-03Partial sync with NetBSD, adds new trigger methods.Jason Downs
1998-07-24Kill the god damned COMPAT_12. Thanks, guys.Jason Downs
1998-04-26update audio from NetBSD, mostly by Lennart Augustsson <augustss@cs.chalmers.se>Niels Provos
1998-04-25Change a '< sc->sc_lowat' to '<= sc->sc_lowat' for consistency with rest ofTodd C. Miller
source. I've had this in my tree forever and I don't recall the originator.
1997-07-10sync with NETBSD 30/3/97 + adapating aria.cNiels Provos
1997-04-09change space to "_" in tsleep() stringkstailey
1996-05-26sync 0521Theo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-18NetBSD 960317 mergeNiklas Hallqvist
1996-03-02From NetBSD: sync with 960217 sourcesNiklas Hallqvist
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1996-01-08from netbsd; Make the block size always a whole number of samplesTheo de Raadt
1995-11-20provide floor for sampling rate; from khym@bga.com; netbsd pr#1770Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt