<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/usb/endpoint.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-05-13T14:02:17Z</updated>
<entry>
<title>ALSA: usb: Add quirk for 192KHz recording on E-Mu devices</title>
<updated>2013-05-13T14:02:17Z</updated>
<author>
<name>Calvin Owens</name>
</author>
<published>2013-04-13T03:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40de8047654debace75db0f04aebbbaace5bdd26'/>
<id>urn:sha1:40de8047654debace75db0f04aebbbaace5bdd26</id>
<content type='text'>
commit 1539d4f82ad534431cc67935e8e442ccf107d17d upstream.

When recording at 176.2KHz or 192Khz, the device adds a 32-bit length
header to the capture packets, which obviously needs to be ignored for
recording to work properly.

Userspace expected:  L0 L1 L2 R0 R1 R2
...but actually got: R2 L0 L1 L2 R0 R1

Also, the last byte of the length header being interpreted as L0 of
the first sample caused spikes every 0.5ms, resulting in a loud 16KHz
tone (about the highest 'B' on a piano) being present throughout
captures.

Tested at all sample rates on an E-Mu 0404USB, and tested for
regressions on a generic USB headset.

Signed-off-by: Calvin Owens &lt;jcalvinowens@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
[bwh: Backported to 3.2: adjust filenames, context]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio: Fix regression by disconnection-race-fix patch</title>
<updated>2013-02-06T04:33:56Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2013-01-22T16:43:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6d3e269cd51bdfe7ea77bdf1242626a5d6529b85'/>
<id>urn:sha1:6d3e269cd51bdfe7ea77bdf1242626a5d6529b85</id>
<content type='text'>
[NOTE: the regression below is found only in 3.2-3.4 stable trees, so
       there is no upstream commit corresponding to this patch]

The recent fix for the race at disconnection of usb-audio devices
(upstream commit 978520b7) triggers Oops when a device is unplugged
while playing on 3.2 and 3.4 kernels.  The culprit is that the
shutdown flag check was wrongly added around the urb deactivation code
snippet.  The urb deactivation code has to be performed even after the
device disconnected.  Otherwise it remains undead and pokes the wild
access in the end.

The regression fix is simply reverting the shutdown flag check in that
code.

Reported-and-tested-by: Chris J Arges &lt;christopherarges@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio: Fix races at disconnection</title>
<updated>2012-11-16T16:46:48Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2012-10-12T13:12:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b40a2450225ea92981da4540f437e34661c6180b'/>
<id>urn:sha1:b40a2450225ea92981da4540f437e34661c6180b</id>
<content type='text'>
commit 978520b75f0a1ce82b17e1e8186417250de6d545 upstream.

Close some races at disconnection of a USB audio device by adding the
chip-&gt;shutdown_mutex and chip-&gt;shutdown check at appropriate places.

The spots to put bandaids are:
- PCM prepare, hw_params and hw_free
- where the usb device is accessed for communication or get speed, in
 mixer.c and others; the device speed is now cached in subs-&gt;speed
 instead of accessing to chip-&gt;dev

The accesses in PCM open and close don't need the mutex protection
because these are already handled in the core PCM disconnection code.

The autosuspend/autoresume codes are still uncovered by this patch
because of possible mutex deadlocks.  They'll be covered by the
upcoming change to rwsem.

Also the mixer codes are untouched, too.  These will be fixed in
another patch, too.

Reported-by: Matthieu CASTET &lt;matthieu.castet@parrot.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio - Avoid flood of frame-active debug messages</title>
<updated>2012-01-26T00:13:09Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2012-01-09T10:37:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b4133832cf270a39c961edf9777d2187eb2b7977'/>
<id>urn:sha1:b4133832cf270a39c961edf9777d2187eb2b7977</id>
<content type='text'>
commit 80c8a2a372599e604b04a9c568952fe39cd1851d upstream.

With some buggy devices, the usb-audio driver may give "frame xxx active"
kernel messages too often.  Better to keep it as debug-only using
snd_printdd(), and also add the rate-limit for avoiding floods.

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=738681

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ALSA: snd-usb: move code from urb.c to endpoint.c</title>
<updated>2011-09-14T15:07:03Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2011-09-14T10:46:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c731bc96ad641a5fa3d50a87b474652505507282'/>
<id>urn:sha1:c731bc96ad641a5fa3d50a87b474652505507282</id>
<content type='text'>
No code altered at this point, simply preparing for upcoming
refactorizations.

Signed-off-by: Daniel Mack &lt;zonque@gmail.com&gt;
Acked-by: Clemens Ladisch &lt;clemens@ladisch.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb: re-order code</title>
<updated>2011-09-14T15:07:02Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2011-09-12T16:54:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8e8babf561c9560f37b9bd80407ebaf90ad2ca4'/>
<id>urn:sha1:e8e8babf561c9560f37b9bd80407ebaf90ad2ca4</id>
<content type='text'>
Move code from endpoint.c into a new file called stream.c and rename
functions so that their names actually reflect what they're doing.

This way, endpoint.c will be available to functions that hold all the
endpoint logic.

Signed-off-by: Daniel Mack &lt;zonque@gmail.com&gt;
Acked-by: Clemens Ladisch &lt;clemens@ladisch.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb: Accept UAC2 FORMAT_TYPE descriptors with bLength &gt; 6</title>
<updated>2011-08-04T14:23:47Z</updated>
<author>
<name>Clemens Ladisch</name>
</author>
<published>2011-08-04T14:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=824818b148db42173446707df4cbd61cd7133272'/>
<id>urn:sha1:824818b148db42173446707df4cbd61cd7133272</id>
<content type='text'>
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 &lt;zonque@gmail.com&gt;
Reported-by: Nicolai Krakowiak &lt;nicolai.krakowiak@gmail.com&gt;
Cc: stable@kernel.org
Signed-off-by: Clemens Ladisch &lt;clemens@ladisch.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio - Add quirks for M-Audio Fast Track Pro and Quattro</title>
<updated>2011-07-12T16:15:45Z</updated>
<author>
<name>Guillaume Pellerin</name>
</author>
<published>2011-07-12T16:13:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0f5733b0c883158b13366ae34b5e4bd52a1ac346'/>
<id>urn:sha1:0f5733b0c883158b13366ae34b5e4bd52a1ac346</id>
<content type='text'>
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.conf

Signed-off-by: Guillaume Pellerin &lt;yomguy@parisson.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>Merge branch 'fix/misc' into topic/misc</title>
<updated>2010-09-03T20:38:52Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2010-09-03T20:38:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=68885a3ff38ed51fa02f241feb405c9922a90ee0'/>
<id>urn:sha1:68885a3ff38ed51fa02f241feb405c9922a90ee0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ALSA: usb-audio: fix detection of vendor-specific device protocol settings</title>
<updated>2010-09-03T20:36:39Z</updated>
<author>
<name>Clemens Ladisch</name>
</author>
<published>2010-09-03T08:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a2acad8298a42b7be684a32fafaf83332bba9c2b'/>
<id>urn:sha1:a2acad8298a42b7be684a32fafaf83332bba9c2b</id>
<content type='text'>
The Audio Class v2 support code in 2.6.35 added checks for the
bInterfaceProtocol field.  However, there are devices (usually those
detected by vendor-specific quirks) that do not have one of the
predefined values in this field, which made the driver reject them.

To fix this regression, restore the old behaviour, i.e., assume that
a device with an unknown bInterfaceProtocol field (other than
UAC_VERSION_2) has more or less UAC-v1-compatible descriptors.

[compile warning fixes by tiwai]

Signed-off-by: Clemens Ladisch &lt;clemens@ladisch.de&gt;
Cc: Daniel Mack &lt;daniel@caiaq.de&gt;
Cc: &lt;stable@kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
