<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/usb/clock.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>2018-02-13T18:32:20Z</updated>
<entry>
<title>ALSA: usb-audio: Add sanity checks in v2 clock parsers</title>
<updated>2018-02-13T18:32:20Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2017-11-21T16:28:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50616ee84fb8386f524dcaeca95382e0b3c4e99a'/>
<id>urn:sha1:50616ee84fb8386f524dcaeca95382e0b3c4e99a</id>
<content type='text'>
commit 0a62d6c966956d77397c32836a5bbfe3af786fc1 upstream.

The helper functions to parse and look for the clock source, selector
and multiplier unit may return the descriptor with a too short length
than required, while there is no sanity check in the caller side.
Add some sanity checks in the parsers, at least, to guarantee the
given descriptor size, for avoiding the potential crashes.

Fixes: 79f920fbff56 ("ALSA: usb-audio: parse clock topology of UAC2 devices")
Reported-by: Andrey Konovalov &lt;andreyknvl@google.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: Add sanity checks for endpoint accesses</title>
<updated>2016-04-30T22:05:18Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2016-03-15T14:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0e9921c951610c287650bf70495d7ccac8bee7f'/>
<id>urn:sha1:c0e9921c951610c287650bf70495d7ccac8bee7f</id>
<content type='text'>
commit 447d6275f0c21f6cc97a88b3a0c601436a4cdf2a upstream.

Add some sanity check codes before actually accessing the endpoint via
get_endpoint() in order to avoid the invalid access through a
malformed USB descriptor.  Mostly just checking bNumEndpoints, but in
one place (snd_microii_spdif_default_get()), the validity of iface and
altsetting index is checked as well.

Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=971125
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
[bwh: Backported to 3.2: drop changes to code we don't have]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb: fix clock source validity index</title>
<updated>2012-08-09T23:25:11Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2012-08-01T08:16:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=768049e31e0ee380d0fc6884f691aca6bc397fd9'/>
<id>urn:sha1:768049e31e0ee380d0fc6884f691aca6bc397fd9</id>
<content type='text'>
commit aff252a848ce21b431ba822de3dab9c4c94571cb upstream.

uac_clock_source_is_valid() uses the control selector value to access
the bmControls bitmap of the clock source unit. This is wrong, as
control selector values start from 1, while the bitmap uses all
available bits.

In other words, "Clock Validity Control" is stored in D3..2, not D5..4
of the clock selector unit's bmControls.

Signed-off-by: Daniel Mack &lt;zonque@gmail.com&gt;
Reported-by: Andreas Koch &lt;andreas@akdesigninc.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: increase control transfer timeout</title>
<updated>2011-09-27T07:21:48Z</updated>
<author>
<name>Clemens Ladisch</name>
</author>
<published>2011-09-26T19:15:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17d900c4a1b50bc191b3ca58cbd78acc04a1c5b3'/>
<id>urn:sha1:17d900c4a1b50bc191b3ca58cbd78acc04a1c5b3</id>
<content type='text'>
There are certain devices that are reportedly so slow that they need
more than 100 ms to handle control transfers.  Therefore, increase the
timeout in mixer(_quirks).c to 1000 ms.

The timeout parameter of snd_usb_ctl_msg() is now constant, so we can
drop it.

Reported-by: Felipe Balbi &lt;balbi@ti.com&gt;
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: assume valid clock</title>
<updated>2011-05-18T09:44:44Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2011-05-18T09:28:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3bc6fbc7439a88969de97d979795ce7847950668'/>
<id>urn:sha1:3bc6fbc7439a88969de97d979795ce7847950668</id>
<content type='text'>
If the interface can't report a clock's validity, assume that it's
valid.

Signed-off-by: Daniel Mack &lt;zonque@gmail.com&gt;
Reported-by: Vicente Joel &lt;vicentejoel@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</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>
<entry>
<title>ALSA: usb-audio: silence a superfluous warning</title>
<updated>2010-07-09T13:08:12Z</updated>
<author>
<name>Clemens Ladisch</name>
</author>
<published>2010-07-08T14:38:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d32d552e665dc07384208108165592d0b524dba2'/>
<id>urn:sha1:d32d552e665dc07384208108165592d0b524dba2</id>
<content type='text'>
It is not advisable to print a warning when a device does not support
setting the sample rate because this is perfectly valid for devices with
a single rate or where rates are implicitly changed by selecting another
alternate setting.

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: simplify control interface access</title>
<updated>2010-06-23T14:10:23Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2010-06-16T15:57:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d8d4dcfd423b01ef7ea7c3c97720764b7adb6df'/>
<id>urn:sha1:3d8d4dcfd423b01ef7ea7c3c97720764b7adb6df</id>
<content type='text'>
As the control interface is now carried in struct snd_usb_audio, we can
simplify the API a little and also drop the private ctrlif field from
struct usb_mixer_interface.

Also remove a left-over function prototype in pcm.h.

Signed-off-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio: move and add some comments</title>
<updated>2010-06-23T14:09:50Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2010-06-16T15:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=157a57b6fae7d3c6d24b7623dcc6679c6d244621'/>
<id>urn:sha1:157a57b6fae7d3c6d24b7623dcc6679c6d244621</id>
<content type='text'>
Also add a list of open topics.

Signed-off-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio: clean up includes in clock.c</title>
<updated>2010-06-23T14:09:14Z</updated>
<author>
<name>Daniel Mack</name>
</author>
<published>2010-06-16T15:57:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f22aa94908352f40fce65b9a9180370fb09ecbe9'/>
<id>urn:sha1:f22aa94908352f40fce65b9a9180370fb09ecbe9</id>
<content type='text'>
Signed-off-by: Daniel Mack &lt;daniel@caiaq.de&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
