summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uaudio.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-3/+3
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* cast d->bmaControls to uByte * in uaudio_add_feature()robert2008-11-211-2/+2
| | | | ok jakemsr@
* fix typo in debug printf; ok ratchov@sthen2008-11-121-2/+2
|
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | 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@
* if reading (or writing) is not supported, but the device is openedjakemsr2008-06-171-3/+3
| | | | | | | for reading (or writing), return ENXIO (Device not configured) instead of EACCES (Permission denied). 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@
* spelling fix in debug printfrobert2007-12-021-2/+2
|
* audio encoding conversion cleanupjakemsr2007-11-051-4/+4
| | | | | | | | | | | | | - the endianness of the conversions don't depend on the endianness of machine the conversions are built on, but the endianness of the audio data itself. choose encoding conversions explicitly, instead of relying on #defines based on the endianness of the machine. - replace home-grown conversions with comparable conversions in auconv.c and mulaw.c - use the proper conversion for ulinear_be:16 -> slinear_le:16 in auixp(4) thanks ajacoutot@ and sthen@ for !x86 testing
* treat usb vendor/product names as a locator, and have usbd_print handle it,deraadt2007-10-111-6/+1
| | | | | | so that it shows up before the :. as a result, all the usb devices do not need to have name printing code anymore. all this now works and prints nicely because usbd_probe_and_attach() is serialized. ok kettenis
* no longer used macrosjakemsr2007-09-281-9/+1
| | | | | | spotted by brad ok ratchov
* fix emulated encodingsratchov2007-09-251-48/+54
| | | | ok jakemsr@
* KNFgilles2007-09-111-2/+2
| | | | prompted and "much better" by marco@, ok pyr@
* more M_ZERO conversions; ok krw@.fgsch2007-09-091-3/+2
|
* fix uaudio(4) devices using signed mixer controlsratchov2007-09-081-14/+30
| | | | ok jakemsr@, tested by jolan@ with 3 different devices
* Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andmbalmer2007-06-141-2/+17
| | | | | | | | USB_DECLARE_DRIVER macros. No binary change. ok dlg.
* Remove the defintion and use of some byteswap macros.mbalmer2007-06-131-6/+6
| | | | | | No binary change. ok dlg.
* Apply some KNF after the recent removal of macros and type definitions.mbalmer2007-06-131-20/+20
| | | | | | No binary change. ok ray.
* Remove the definition and use of the device_ptr_t which was a struct device *.mbalmer2007-06-121-4/+4
| | | | | | No binary change. ok mk.
* Remove the definition and use of the USBDEVNAME macro.mbalmer2007-06-101-18/+18
| | | | | | | (This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
* Remove the definition and use of the USBDEV macro. It only created confusionmbalmer2007-06-101-3/+3
| | | | | | | | and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
* Mechanical removal of USBBASEDEVICE. No binary change.mk2007-06-061-2/+2
| | | | | | Tested by thib and myself. ok mbalmer jsg
* Remove the "Static" declaration of many functions. It was defined to be emptymbalmer2007-06-051-122/+122
| | | | | | | and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
* Last part of FreeBSD/NetBSD sepcific code removal.mbalmer2007-06-041-12/+2
| | | | ok jsg@
* Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.jsg2007-05-271-10/+11
| | | | ok deraadt@ krw@ mbalmer@
* Remove logprintf macrojsg2007-05-211-3/+3
|
* In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesmiod2006-06-231-2/+2
| | | | | | something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
* free resources on close; found by Alexandre Ratchov <alex@caoua.org>mickey2006-05-041-1/+7
|
* remove a couple of unreachable statements, one found by lint, one foundjolan2006-04-211-4/+1
| | | | by my eyes
* from kent@netbsd.org:fgsch2006-01-061-11/+13
| | | | | | Call uaudio_set_speed() if and only if the selected Audio Streaming interface supports multiple sampling rates. fixed netbsd pr 27237.
* from kent@netbsd.org:fgsch2006-01-061-31/+37
| | | | | | | assign AudioNlfe to UATO_SUBWOOFER assign "phone" to telephony terimnal types. The label "phone" is used in ac97 though it is not defined as AudioN* macro. dlg@ ok.
* mostly style nits; from kent@netbsd.org.fgsch2006-01-021-161/+154
| | | | some other cosmetical changes to make future merges easier. dlg@ ok.
* fix some typos and add open/close code of sync pipe, disabled for now.fgsch2006-01-021-7/+23
| | | | from kent@netbsd.org. dlg@ ok.
* make mixer names compatible with other audio devices. from kent@netbsd.orgfgsch2006-01-021-148/+664
| | | | via netbsd pr 15441 by Kazuhito Honda. dlg@ ok this and previous diffs.
* recognize sync-pipe audio stream; disabled for now. from kent@netbsd.orgfgsch2006-01-021-8/+72
|
* add source selector support. netbsd pr 26538.fgsch2006-01-021-14/+57
|
* knf. add some debug and use const.fgsch2006-01-021-272/+265
|
* correct a typo and reorder check.fgsch2006-01-011-4/+4
|
* Rearrange to fix a potential crash when changing parameters with audioctlfgsch2006-01-011-42/+29
| | | | | and the device is closed. netbsd pr 24066. Some cleanup and also correctly set the mode via audioctl. from mycroft.
* Fix mixer wraparound. from netbsd pr 16652.fgsch2006-01-011-4/+4
|
* Move contents of sys/select.h to sys/selinfo.h in preparation for amillert2005-11-211-2/+2
| | | | | userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
* Don't keep the devinfo string on the stack, instead use malloc/free.brad2005-08-011-4/+5
| | | | | | | | This should cure some rare stack overflows. From augustss NetBSD ok dlg@ pascoe@
* reduce linecount in dmesgderaadt2004-10-181-4/+5
|
* Remove 'usb_'realloc() usage because it doesn't know the size of the olddrahn2004-08-301-7/+16
| | | | | buffer, thus may copy too much, causing a memory fault. ok millert, dlg, henning, tdeval, otto
* put "do { } while (0)" wrappers on all the debug maroc functionsderaadt2004-07-081-3/+3
|
* updated URLs from Jared Yanovich;jmc2003-11-071-4/+4
| | | | | | however, I did not apply the diff exactly. After hunting around I found URLs for the missing files, and the ../index.html link appears not to work. I replaced it with a more suitable link.
* strlcpy; millert@ okmiod2003-05-191-5/+6
|
* updates from NetBSDnate2003-05-191-95/+123
|
* string cleanup; nate okderaadt2003-05-071-16/+29
|
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-16/+22
|
* update $NetBSD$ tagsnate2002-07-251-2/+2
|