aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
Commit message (Collapse)AuthorAge
* [PATCH] clean up inline static vs static inlineJesper Juhl2005-07-27
| | | | | | | | | | | | | | | `gcc -W' likes to complain if the static keyword is not at the beginning of the declaration. This patch fixes all remaining occurrences of "inline static" up with "static inline" in the entire kernel tree (140 occurrences in 47 files). While making this change I came across a few lines with trailing whitespace that I also fixed up, I have also added or removed a blank line or two here and there, but there are no functional changes in the patch. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* [ALSA] Remove redundant NULL checks before kfreeJesper Juhl2005-06-22
| | | | | | | | | | | | | | | | Timer Midlevel,ALSA sequencer,ALSA<-OSS sequencer,Digigram VX core I2C tea6330t,GUS Library,VIA82xx driver,VIA82xx-modem driver CA0106 driver,CS46xx driver,EMU10K1/EMU10K2 driver,YMFPCI driver Digigram VX Pocket driver,Common EMU synth,USB generic driver,USB USX2Y Checking a pointer for NULL before calling kfree() on it is redundant, kfree() deals with NULL pointers just fine. This patch removes such checks from sound/ This patch also makes another, but closely related, change. It avoids casting pointers about to be kfree()'ed. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] usb-audio - fix synchronization packet interval with Audigy 2 NXClemens Ladisch2005-05-29
| | | | | | | | | | USB generic driver When a device does not provide the bRefresh field in its audio endpoint descriptors, use the bInterval field instead. Furthermore, increase the number of sync URBs for better queueing. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - claim all interfaces for Roland USB MIDI devicesClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Many Roland USB MIDI devices have two interfaces that are currently not used by the driver; claim them anyway. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - avoid unnecessary double bufferingClemens Ladisch2005-05-29
| | | | | | | | | | | | USB generic driver When a USB packet boundary falls exactly on a buffer boundary, hwptr remains at the end of the buffer which causes an overflow in the next iteration and triggers double buffering although the next packet would actually be contiguous. This patch ensures that hwptr is always smaller than buffer_size. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - sanity-check sync feedback frequency valuesClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Check that the synchronization feedback frequency values returned by the device are more or less near the nominal frequency. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - bind to control interface instead of usb_deviceClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Bind the device files to the (first) audio control interface instead of the entire USB device. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - add a proc file for Audigy 2 NX jack statusClemens Ladisch2005-05-29
| | | | | | | | | USB generic driver This patch adds a proc file for the SB Audigy 2 NX which shows the connection status of the various jacks. Unfortunately, no SPDIF input frequency (yet). Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - remove superfluous LIRC ioctlsClemens Ladisch2005-05-29
| | | | | | | | USB generic driver The ioctls for LIRC compatibility can be removed because the infrastructure and detection stuff is better done in user space. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - enable high speed (not) on Audigy 2 NXClemens Ladisch2005-05-29
| | | | | | | | | | | USB generic driver The SB Audigy 2 NX needs a special boot-up command before it works in high speed mode. However, we don't actually enable it yet because high speed synchronization doesn't seem to work with this device. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] Fix snd-usb-audio dependency on snd-hwdep.James Courtier-Dutton2005-05-29
| | | | | | | USB Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
* [ALSA] usb-audio - set sample rate attribute on Audigy 2 NX endpointsClemens Ladisch2005-05-29
| | | | | | | | USB generic driver The SB Audigy 2 NX does not advertise the sample rate attribute in its endpoint descriptors although it supports it. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - Audigy 2 NX blinkenlightsClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Adds mixer controls for the CMSS/Dolby Digital/Power LEDs on the SB Audigy 2 NX. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - make SB remote control device LIRC compatibleClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Add ioctls to the Sound Blaster remote control hwdep device so that it can be used with LIRC. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - use only one packet in synchronization feedback URBsClemens Ladisch2005-05-29
| | | | | | | | | USB generic driver Do not use more than one packet in synchronization feedback URBs because it would be pointless to send or receive more than one value at the same time. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - use proper interval between synchronization packetsClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Add sanity checks when reading the bRefresh value, and actually use it for the synchronization packets instead of polling at 1000 Hz. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - allow type 0 extension unitsClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Extension units can have type 0, so do not ignore them when constructing mixer controls. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - cache vendor/product IDsClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Cache the decoded values of idVendor/idProduct to get rid of most of those ugly le16_to_cpu() calls. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - add Extigy/Audigy 2 NX remote control supportClemens Ladisch2005-05-29
| | | | | | | | ALSA Core,USB generic driver Add an hwdep interface that supports reading remote control data from Sound Blaster Extigy and Audigy 2 NX devices. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - add mixer control notificationsClemens Ladisch2005-05-29
| | | | | | | | | USB generic driver Add support for the optional status interrupt endpoint in audio control interfaces, and translate USB status notifications into ALSA mixer control notifications. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - move mixer data into separate structClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Move all data related to audio control interfaces into a separate struct local to usbmixer.c. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - reduce size of unitbitmap arrayClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Unit/terminal IDs are 8-bit integers, so the unitbitmap variable does not need to be bigger than 256 bits. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - restrict Audigy 2 NX frequencies to 48/96 kHzClemens Ladisch2005-05-29
| | | | | | | | USB generic driver On the SB Audigy 2 NX, frequency feedback doesn't quite work when playing at 44.1 kHz, so temporarily disable this frequency. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - remove superfluous parameterClemens Ladisch2005-05-29
| | | | | | | | USB generic driver,USB USX2Y This patch removes the superfluous driver parameter from the disconnect functions. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - add selector unit names override for Audigy 2 NXClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Add a mechanism to specify source names of selector units, and add such names for the SB Audigy 2 NX. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio - show exact synchronous frequency in proc fileClemens Ladisch2005-05-29
| | | | | | | | USB generic driver In the streamX proc file, show the exact number of samples per USB frame as 16.16 hexadecimal floating point value. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] usb-audio: add Audigy 2 NX control namesClemens Ladisch2005-05-29
| | | | | | | | USB generic driver Add a mixer control map for the SB Audigy 2 NX so that we get meaningful mixer control names. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] prevent oops & dead keyboard on usb unplugging while the device is ↵Karsten Wiese2005-05-29
| | | | | | | | | | | | | | | being used USB generic driver,USB USX2Y Without this patch, some usb kobjects, which are parents to the usx2y's kobjects can be freed before the usx2y's. This led to an oops in get_kobj_path_length() and a dead keyboard, when the usx2y's kobjects were freed. The patch ensures the correct sequence. Tested ok on kernel 2.6.12-rc2. Signed-off-by: Karsten Wiese <annabellesgarden@yahoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] usb-audio - BOSS GS-10 PCM supportClemens Ladisch2005-05-29
| | | | | | | | USB generic driver This patch adds quirks to support 24-bit PCM I/O in the 'Advanced Driver' mode of the BOSS GS-10. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* [ALSA] Add mixer map for Sound Blaster MP3+Takashi Iwai2005-05-29
| | | | | | | | USB generic driver Added the mixer mapping for Sound Blaster MP3+ by Pavel Mihaylov <bin@bash.info> Signed-off-by: Takashi Iwai <tiwai@suse.de>
* [ALSA] usb-audio - allow USB MIDI quirks to specify endpoints explicitlyClemens Ladisch2005-05-29
| | | | | | | | | | USB generic driver This patch reintroduces the check for endpoint numbers that are specified explicitly in the quirk structure. This check was accidentally dropped in the last rewrite of snd_usbmidi_detect_endpoints(). Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
* Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds2005-04-16
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!