26 Sep, 2011
1 commit
-
Before clearing the probing flag in the error exit path, check that the
chip pointer is not NULL.Signed-off-by: Thomas Pfaff
Cc: [2.6.39+]
Signed-off-by: Takashi Iwai
23 Sep, 2011
1 commit
-
The Terratec Aureon 5.1 USB sound card support is broken since kernel
2.6.39.
2.6.39 introduced power management support for USB sound cards that added
a probing flag in struct snd_usb_audio.During the probe of the card it gives following error message :
usb 7-2: new full speed USB device number 2 using uhci_hcd
cannot find UAC_HEADER
snd-usb-audio: probe of 7-2:1.3 failed with error -5
input: USB Audio as
/devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.3/input/input6
generic-usb 0003:0CCD:0028.0001: input: USB HID v1.00 Device [USB Audio]
on usb-0000:00:1d.1-2/input3I can not comment about that "cannot find UAC_HEADER" error, but until
2.6.38 the card worked anyway.
With 2.6.39 chip->probing remains 1 on error exit, and any later ioctl
stops in snd_usb_autoresume with -ENODEV.Signed-off-by: Thomas Pfaff
Cc: [2.6.39+]
Signed-off-by: Takashi Iwai
19 Aug, 2011
1 commit
-
The recent fix for testing dB range at the mixer creation time seems
to cause regressions in some devices. In such devices, reading the dB
info at probing time gives an error, thus both dBmin and dBmax are still
zero, and TLV flag isn't set although the later read of dB info succeeds.This patch adds a workaround for such a case by assuming that the later
read will succeed. In future, a similar test should be performed in a
case where a wrong dB range is seen even in the later read.Signed-off-by: Takashi Iwai
Cc:
15 Aug, 2011
1 commit
-
The snd_usb_caiaq driver currently assumes that output urbs are serviced
in time and doesn't track when and whether they are given back by the
USB core. That usually works fine, but due to temporary limitations of
the XHCI stack, we faced that urbs were submitted more than once with
this approach.As it's no good practice to fire and forget urbs anyway, this patch
introduces a proper bit mask to track which requests have been submitted
and given back.That alone however doesn't make the driver work in case the host
controller is broken and doesn't give back urbs at all, and the output
stream will stop once all pre-allocated output urbs are consumed. But
it does prevent crashes of the controller stack in such cases.See http://bugzilla.kernel.org/show_bug.cgi?id=40702 for more details.
Signed-off-by: Daniel Mack
Reported-and-tested-by: Matej Laitl
Cc: Sarah Sharp
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai
11 Aug, 2011
1 commit
-
This fixes faulty outbount packets in case the inbound packets
received from the hardware are fragmented and contain bogus input
iso frames. The bug has been there for ages, but for some strange
reasons, it was only triggered by newer machines in 64bit mode.Signed-off-by: Daniel Mack
Reported-and-tested-by: William Light
Reported-by: Pedro Ribeiro
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai
10 Aug, 2011
1 commit
-
Signed-off-by: Kazutomo Yoshii
Signed-off-by: Takashi Iwai
06 Aug, 2011
2 commits
-
Signed-off-by: Daniel Mack
Reported-by: Renato
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai -
Purely cosmetic, but fixes the following build warning.
CC [M] sound/usb/quirks.o
sound/usb/quirks.c: In function ‘snd_usb_apply_boot_quirk’:
sound/usb/quirks.c:429:6: warning: ‘err’ may be used uninitialized in this function [-Wuninitialized]Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai
05 Aug, 2011
1 commit
-
Signed-off-by: Miller Puckette
Signed-off-by: Takashi Iwai
04 Aug, 2011
3 commits
-
When creating the mixers for an USB audio device, the current code looks
at the host interface stored in mixer->chip->ctrl_if. Change this and
rather keep a local pointer to the interface that was given when
snd_usb_create_mixer() was called.Signed-off-by: Daniel Mack
Reported-by: Nicolai Krakowiak
Reported-by: Lean-Yves LENHOF
Acked-by: Clemens Ladisch
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai -
Signed-off-by: Nicolai Krakowiak
Acked-by: Daniel Mack
Acked-by: Clemens Ladisch
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai -
The Focusrite Scarlett 18i6 USB has them that way, which is probably a
bug. Anyway, the driver should simply ignore this fact.Signed-off-by: Daniel Mack
Reported-by: Nicolai Krakowiak
Cc: stable@kernel.org
Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai
22 Jul, 2011
1 commit
-
Add support for Roland/BOSS BR-800 (0582:011e) to snd-usb-audio driver.
This allows playback and recording, which has been tested and found to
work. The third interface should be MIDI (MTC/SMPTE?) for DAW interface
and is set as per ME-25, but this has not been tested. SDHC card access
is already supported by usb-storage for Backup/Rhythm Editor/Wave
Convertor mode which should not conflict with this.Signed-off-by: David G Turner
Signed-off-by: Takashi Iwai
13 Jul, 2011
1 commit
-
This patch gives M-Audio Fast Track Pro and M-Audio Quattro quirks and
endpoints to boot and setup those devices with special options (digital
inputs and outputs, 24 bits mode, etc...). M-Audio Audiophile quirks are
just adapted to match the new global M-Audio parameters.Special configurations can be then loaded through a modprobe conf file.
For example, to set the 24 bits mode on the Fast Track Pro add
/etc/modprobe.d/fast_track_pro.conf :options snd_usb_audio vid=0x763 pid=0x2012 device_setup=0x08
Here is a list of the possibilities in this example :
http://files.parisson.com/debian/fast-track-pro.confSigned-off-by: Guillaume Pellerin
Signed-off-by: Takashi Iwai
08 Jul, 2011
1 commit
-
Signed-off-by: Pavel Roskin
Signed-off-by: Takashi Iwai
17 Jun, 2011
3 commits
-
Since commit f2b3614cefb6 (Don't check DMA time-out too shortly),
drivers need no longer restrict their PCM period length to be shorter
than 10 seconds.Signed-off-by: Clemens Ladisch
Signed-off-by: Takashi Iwai -
Fixed remaining issues of the signedness bug discovered by Dan Carpenter.
A check was remaining that tests if unsigned rt->rate is >= 0.
Changed that so that rt->rate now consistently uses ARRAY_SIZE(rates)
as invalid rate value and not -1.Signed-off-by: Torsten Schenk
Signed-off-by: Takashi Iwai
14 Jun, 2011
1 commit
-
We have a double-free bug in
sound/usb/6fire/firmware.c::usb6fire_fw_ezusb_upload().
We already call release_firmware(fw) on line 258, so when we then do it
again after usb6fire_fw_ezusb_write() returns
Signed-off-by: Takashi Iwai
04 Jun, 2011
1 commit
-
CM6206: Turn off de-emphasis channel status bit in S/PDIF output.
Signed-off-by: Eric Lammerts
Signed-off-by: Takashi Iwai
03 Jun, 2011
1 commit
-
One of the error paths in
sound/usb/6fire/firmware.c::usb6fire_fw_ezusb_upload() neglects to free
the memory allocated for the firmware before returning, thus leaking the
memory.Signed-off-by: Jesper Juhl
Signed-off-by: Takashi Iwai
25 May, 2011
5 commits
-
Make use of the freshly introduced methods to re-use standard mixer
handling and add some controls that are hidden but implemented in a
standard conform way on M-Audio's FastTrack devices.Signed-off-by: Daniel Mack
Original-code-by: Felix Homann
Signed-off-by: Takashi Iwai -
This quirk type will let the driver assume that there is a standard
mixer on a given interface, or that a specific mixer quirks will handle
the device.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
In order to allow quirks functions to hook up to the standard feature
unit op tables, this patch exports a pointer to the struct that is used
internally.That way, all the code handling the control can be kept private, and
external code can reference the symbol to re-use it.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
This patch renames add_control_to_empty() to snd_usb_mixer_add_control()
and exports it, so the quirks functions can make use of it.Also, as "struct mixer_build" is private to mixer.c, rewrite the
function to take an argument of type "struct usb_mixer_interface"
instead.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
This is needed for upcoming changes to the quirks mechanism.
Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai
22 May, 2011
1 commit
18 May, 2011
8 commits
-
USB X-Fi S51 Pro volume and mute from the volume knob on the unit.
Compiled and tested with 2.6.39-rc7-git12Signed-off-by: Mathieu Bouffard
Signed-off-by: Takashi Iwai -
That way, the class compliant MIDI interface is also handled.
Signed-off-by: Daniel Mack
Reported-and-tested-by: Grant Diffey
Signed-off-by: Takashi Iwai -
If the interface can't report a clock's validity, assume that it's
valid.Signed-off-by: Daniel Mack
Reported-by: Vicente Joel
Signed-off-by: Takashi Iwai -
Signed-off-by: Daniel Mack
Reported-by: Jeffrey Scott Flesher
Signed-off-by: Takashi Iwai -
Signed-off-by: Daniel Mack
Reported-and-tested-by: Frédéric Jaume
Signed-off-by: Takashi Iwai -
This was a flaw in the reading of the spec tables - Native Instrument's
"Komplete Audio 6" device has no such extra controls.This patch also fixes the device name in two comments.
Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Just in case a prototype changes, we'll be warned. This also fixes a
sparse warning.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai -
Just defining it to nothing is dangerous as it can alter the code
execution flow, for example when used in as only function in a
conditional code block.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai
29 Apr, 2011
1 commit
-
This patch adds support for the Terratec Aureon 7.1 USB which uses a
C-Media cm6206 and needs all the quirks already found in the past.Signed-off-by: Wolfgang Breyha
Signed-off-by: Takashi Iwai
28 Apr, 2011
1 commit
-
Some crappy USB-audio devices give broken dB ranges, e.g. both min and max
are 0dB. This confuses the volume control that prefers dB expression such
as alsactl or PulseAudio. In such a case, it's much better not to expose
the broken dB information.Signed-off-by: Takashi Iwai
26 Apr, 2011
1 commit
-
Signed-off-by: Daniel Mack
Cc: Torsten Schenk
Signed-off-by: Takashi Iwai
14 Apr, 2011
1 commit
-
This new device by Native Instruments is also compliant to the USB
standard v2.0, but hides this detail at when connected.It needs the same boot quirks than other models, and also has two
non-class-compliant mixer controls.Signed-off-by: Daniel Mack
Signed-off-by: Takashi Iwai
11 Apr, 2011
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
ALSA: hda - Don't query connections for widgets have no connections
ALSA: HDA: Fix single internal mic on ALC275 (Sony Vaio VPCSB1C5E)
ALSA: hda - HDMI: Fix MCP7x audio infoframe checksums
ALSA: usb-audio: define another USB ID for a buggy USB MIDI cable
ALSA: HDA: Fix dock mic for Lenovo X220-tablet
ASoC: format_register_str: Don't clip register values
ASoC: PXA: Fix oops in __pxa2xx_pcm_prepare
ASoC: zylonite: set .codec_dai_name in initializer