<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/sound/usb/caiaq, branch master</title>
<subtitle>Linux Kernel</subtitle>
<id>https://git.etezian.org/cgit.cgi/linux.git/atom?h=master</id>
<link rel='self' href='https://git.etezian.org/cgit.cgi/linux.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/'/>
<updated>2016-08-11T21:05:57+00:00</updated>
<entry>
<title>ALSA: usb: caiaq: audio: don't print error when allocating urb fails</title>
<updated>2016-08-11T21:05:57+00:00</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa-dev@sang-engineering.com</email>
</author>
<published>2016-08-11T20:40:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=289ef679086cf0389173a3c08174df2cacc536f3'/>
<id>urn:sha1:289ef679086cf0389173a3c08174df2cacc536f3</id>
<content type='text'>
kmalloc will print enough information in case of failure.

Signed-off-by: Wolfram Sang &lt;wsa-dev@sang-engineering.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb-caiaq: fix stream count check</title>
<updated>2015-01-05T07:56:19+00:00</updated>
<author>
<name>Daniel Mack</name>
<email>daniel@zonque.org</email>
</author>
<published>2015-01-04T18:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=49cdd5b641933fda6324fc901eaf856924ba6a27'/>
<id>urn:sha1:49cdd5b641933fda6324fc901eaf856924ba6a27</id>
<content type='text'>
Commit 897c329bc ("ALSA: usb: caiaq: check for cdev-&gt;n_streams &gt; 1")
introduced a safety check to protect against bogus data provided by
devices. However, the n_streams variable is already divided by
CHANNELS_PER_STREAM, so the correct check is 'n_streams &gt; 0'.

Fix this to un-break support for stereo devices.

Signed-off-by: Daniel Mack &lt;daniel@zonque.org&gt;
Cc: stable@kernel.org [v3.18+]
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb: caiaq: check for cdev-&gt;n_streams &gt; 1</title>
<updated>2014-10-07T12:34:25+00:00</updated>
<author>
<name>Daniel Mack</name>
<email>daniel@zonque.org</email>
</author>
<published>2014-10-07T12:25:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=897c329bcb2206dd025cdb7ba84831a4f3c872d0'/>
<id>urn:sha1:897c329bcb2206dd025cdb7ba84831a4f3c872d0</id>
<content type='text'>
Coverity spotted a possible DIV0 condition when cdev-&gt;n_streams is 0.

Fix this by making sure the value is &gt; 1 in snd_usb_caiaq_audio_init().

Signed-off-by: Daniel Mack &lt;daniel@zonque.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb-caiaq: Fix LED commands for Kore controller</title>
<updated>2014-09-22T06:52:14+00:00</updated>
<author>
<name>Daniel Mack</name>
<email>daniel@zonque.org</email>
</author>
<published>2014-09-21T21:55:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=e76bf634870e3c5e3a767ad575f1d404c9f1cab8'/>
<id>urn:sha1:e76bf634870e3c5e3a767ad575f1d404c9f1cab8</id>
<content type='text'>
KoreController and KoreController2 need an EP1_CMD_DIMM_LEDS command to set
their LEDs, not EP1_CMD_WRITE_IO.

Signed-off-by: Daniel Mack &lt;daniel@zonque.org&gt;
Reported-and-tested-by: Brad Wilson &lt;brad.wilson.00@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb: Convert to snd_card_new() with a device pointer</title>
<updated>2014-02-12T10:18:00+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2014-01-29T13:22:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=874b8d422e26e21dd432657e25f679c75440c1bc'/>
<id>urn:sha1:874b8d422e26e21dd432657e25f679c75440c1bc</id>
<content type='text'>
Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb-caiaq: LED support for Maschine Controller</title>
<updated>2013-09-30T09:19:16+00:00</updated>
<author>
<name>Hannes Gräuler</name>
<email>hgraeule@uos.de</email>
</author>
<published>2013-09-28T19:51:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=d2724de1874917be2a12939657820616742bd8ec'/>
<id>urn:sha1:d2724de1874917be2a12939657820616742bd8ec</id>
<content type='text'>
This patch adds LED support for the Native Instruments Maschine
Controller. It adds ALSA controls for dimming the LEDs of all
buttons and the backlight of the two displays.

Signed-off-by: Hannes Gräuler &lt;hgraeule@uos.de&gt;
Acked-by: Daniel Mack &lt;zonque@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb: uniform style used in MODULE_SUPPORTED_DEVICE()</title>
<updated>2013-06-21T12:37:08+00:00</updated>
<author>
<name>Antonio Ospite</name>
<email>ao2@amarulasolutions.com</email>
</author>
<published>2013-06-21T11:11:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=0af49ffe3c04ed5a9095ea1349d3e26a1e8b311a'/>
<id>urn:sha1:0af49ffe3c04ed5a9095ea1349d3e26a1e8b311a</id>
<content type='text'>
In sound/usb/card.c and sound/usb/misc/ua101.c there are no spaces
between the vendor and the device names, use this style in the other
drivers too.

This also helps keeping consistency when new drivers copies from the
ones already in the mainline tree.

Signed-off-by: Antonio Ospite &lt;ao2@amarulasolutions.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb-caiaq: use vmalloc buffers</title>
<updated>2013-06-21T12:35:52+00:00</updated>
<author>
<name>Antonio Ospite</name>
<email>ao2@amarulasolutions.com</email>
</author>
<published>2013-06-21T11:11:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=fc76f8637650f422eb67385d5a584bf30befddaa'/>
<id>urn:sha1:fc76f8637650f422eb67385d5a584bf30befddaa</id>
<content type='text'>
For USB devices it's not necessary to allocate physically contiguous
buffers.

Signed-off-by: Antonio Ospite &lt;ao2@amarulasolutions.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: snd-usb-caiaq: remove the unused snd_card_used variable</title>
<updated>2013-06-21T12:33:05+00:00</updated>
<author>
<name>Antonio Ospite</name>
<email>ao2@amarulasolutions.com</email>
</author>
<published>2013-06-21T11:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=3dd446a7e5bb001ec681232ac63a558f5e0509ed'/>
<id>urn:sha1:3dd446a7e5bb001ec681232ac63a558f5e0509ed</id>
<content type='text'>
The snd_card_used variable is only read but never written, remove it.

Signed-off-by: Antonio Ospite &lt;ao2@amarulasolutions.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: usb-audio: caiaq: fix endianness bug in snd_usb_caiaq_maschine_dispatch</title>
<updated>2013-04-30T07:19:02+00:00</updated>
<author>
<name>Eldad Zack</name>
<email>eldad@fogrefinery.com</email>
</author>
<published>2013-04-29T19:15:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.etezian.org/cgit.cgi/linux.git/commit/?id=4ca231b2e6ed171107c5b21f9e92d1965fd6fd9e'/>
<id>urn:sha1:4ca231b2e6ed171107c5b21f9e92d1965fd6fd9e</id>
<content type='text'>
Current code does this:

  be16_to_cpu(buf[i * 2] &lt;&lt; 8 | buf[(i * 2) + 1])

Which is effectively (neglecting the index):

  be16_to_cpu(be16_to_cpu(*((u16 *) buf)))

This means the int16 in the buffer is not converted at all.

Daniel Mack confirmed that the driver works on little endian
CPUs, leading to the conclusion that the device-side structure
is actually little endian.
This changes the code to use le16_to_cpu().

Caught by sparse.

Acked-by: Daniel Mack &lt;zonque@gmail.com&gt;
Signed-off-by: Eldad Zack &lt;eldad@fogrefinery.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
