summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uaudio.c
AgeCommit message (Collapse)Author
2009-11-03don't take playback blocksize constraints into account when roundingJacob Meuser
blocksizes if the device doesn't support playback.
2009-11-03don't claim to support full-duplex if the device doesn't support bothJacob Meuser
recording and playback
2009-11-03provide a get_default_params method. tries aucat(1) defaults firstJacob Meuser
but returns the closest parameters the device supports. ok rathcov
2009-11-03rewrite supported audio parameter matching codeJacob Meuser
- easier to read/follow - if can't match desired parameters exactly, find closest match instead of returning an error. this is how most other audio drivers work. ok ratchov
2009-10-17remove bogus quirk. these devices do not lie about their type, butJacob Meuser
they do have bSynchAddress set to 0 in their endpoint descriptor. uaudio(4) used to not handle that correctly, but now does. positive response from krw, deraadt, ratchov
2009-10-15If the bSynchAddress of the AudioStreaming isochronous audio dataJacob Meuser
endpoint descriptor is set to 0, it means that a synchronization pipe is not needed.
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2008-11-21cast d->bmaControls to uByte * in uaudio_add_feature()Robert Nagy
ok jakemsr@
2008-11-12fix typo in debug printf; ok ratchov@Stuart Henderson
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-06-17if reading (or writing) is not supported, but the device is openedJacob Meuser
for reading (or writing), return ENXIO (Device not configured) instead of EACCES (Permission denied). 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@
2007-12-02spelling fix in debug printfRobert Nagy
2007-11-05audio encoding conversion cleanupJacob Meuser
- 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
2007-10-11treat usb vendor/product names as a locator, and have usbd_print handle it,Theo de Raadt
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
2007-09-28no longer used macrosJacob Meuser
spotted by brad ok ratchov
2007-09-25fix emulated encodingsAlexandre Ratchov
ok jakemsr@
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-09more M_ZERO conversions; ok krw@.Federico G. Schwindt
2007-09-08fix uaudio(4) devices using signed mixer controlsAlexandre Ratchov
ok jakemsr@, tested by jolan@ with 3 different devices
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
2007-06-13Remove the defintion and use of some byteswap macros.Marc Balmer
No binary change. ok dlg.
2007-06-13Apply some KNF after the recent removal of macros and type definitions.Marc Balmer
No binary change. ok ray.
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-10Remove the definition and use of the USBDEVNAME macro.Marc Balmer
(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.
2007-06-10Remove the definition and use of the USBDEV macro. It only created confusionMarc Balmer
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
2007-06-06Mechanical removal of USBBASEDEVICE. No binary change.Michael Knudsen
Tested by thib and myself. ok mbalmer jsg
2007-06-05Remove the "Static" declaration of many functions. It was defined to be emptyMarc Balmer
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.
2007-06-04Last part of FreeBSD/NetBSD sepcific code removal.Marc Balmer
ok jsg@
2007-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-05-21Remove logprintf macroJonathan Gray
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
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@
2006-05-04free resources on close; found by Alexandre Ratchov <alex@caoua.org>Michael Shalayeff
2006-04-21remove a couple of unreachable statements, one found by lint, one foundJolan Luff
by my eyes
2006-01-06from kent@netbsd.org:Federico G. Schwindt
Call uaudio_set_speed() if and only if the selected Audio Streaming interface supports multiple sampling rates. fixed netbsd pr 27237.
2006-01-06from kent@netbsd.org:Federico G. Schwindt
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.
2006-01-02mostly style nits; from kent@netbsd.org.Federico G. Schwindt
some other cosmetical changes to make future merges easier. dlg@ ok.
2006-01-02fix some typos and add open/close code of sync pipe, disabled for now.Federico G. Schwindt
from kent@netbsd.org. dlg@ ok.
2006-01-02make mixer names compatible with other audio devices. from kent@netbsd.orgFederico G. Schwindt
via netbsd pr 15441 by Kazuhito Honda. dlg@ ok this and previous diffs.
2006-01-02recognize sync-pipe audio stream; disabled for now. from kent@netbsd.orgFederico G. Schwindt
2006-01-02add source selector support. netbsd pr 26538.Federico G. Schwindt
2006-01-02knf. add some debug and use const.Federico G. Schwindt
2006-01-01correct a typo and reorder check.Federico G. Schwindt
2006-01-01Rearrange to fix a potential crash when changing parameters with audioctlFederico G. Schwindt
and the device is closed. netbsd pr 24066. Some cleanup and also correctly set the mode via audioctl. from mycroft.
2006-01-01Fix mixer wraparound. from netbsd pr 16652.Federico G. Schwindt
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for aTodd C. Miller
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-08-01Don't keep the devinfo string on the stack, instead use malloc/free.Brad Smith
This should cure some rare stack overflows. From augustss NetBSD ok dlg@ pascoe@
2004-10-18reduce linecount in dmesgTheo de Raadt
2004-08-30Remove 'usb_'realloc() usage because it doesn't know the size of the oldDale Rahn
buffer, thus may copy too much, causing a memory fault. ok millert, dlg, henning, tdeval, otto
2004-07-08put "do { } while (0)" wrappers on all the debug maroc functionsTheo de Raadt