<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/sound/usb, branch linux-4.7.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.7.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2016-10-16T15:50:36+00:00</updated>
<entry>
<title>ALSA: usb-line6: use the same declaration as definition in header for MIDI manufacturer ID</title>
<updated>2016-10-16T15:50:36+00:00</updated>
<author>
<name>Takashi Sakamoto</name>
<email>o-takashi@sakamocchi.jp</email>
</author>
<published>2016-09-25T13:00:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=be794ebace984d408f8cc96befceec0959deb4ae'/>
<id>urn:sha1:be794ebace984d408f8cc96befceec0959deb4ae</id>
<content type='text'>
commit 8da08ca03b73593d5299893bf29fc08569c3fb5f upstream.

Currently, usb-line6 module exports an array of MIDI manufacturer ID and
usb-pod module uses it. However, the declaration is not the definition in
common header. The difference is explicit length of array. Although
compiler calculates it and everything goes well, it's better to use the
same representation between definition and declaration.

This commit fills the length of array for usb-line6 module. As a small
good sub-effect, this commit suppress below warnings from static analysis
by sparse v0.5.0.

sound/usb/line6/driver.c:274:43: error: cannot size expression
sound/usb/line6/driver.c:275:16: error: cannot size expression
sound/usb/line6/driver.c:276:16: error: cannot size expression
sound/usb/line6/driver.c:277:16: error: cannot size expression

Fixes: 705ececd1c60 ("Staging: add line6 usb driver")
Signed-off-by: Takashi Sakamoto &lt;o-takashi@sakamocchi.jp&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: usb-audio: Extend DragonFly dB scale quirk to cover other variants</title>
<updated>2016-10-16T15:50:36+00:00</updated>
<author>
<name>Anssi Hannula</name>
<email>anssi.hannula@iki.fi</email>
</author>
<published>2016-09-23T03:43:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=972cf5ca893a5e00739c949650fffea7c8758150'/>
<id>urn:sha1:972cf5ca893a5e00739c949650fffea7c8758150</id>
<content type='text'>
commit eb1a74b7bea17eea31915c4f76385cefe69d9795 upstream.

The DragonFly quirk added in 42e3121d90f4 ("ALSA: usb-audio: Add a more
accurate volume quirk for AudioQuest DragonFly") applies a custom dB map
on the volume control when its range is reported as 0..50 (0 .. 0.2dB).

However, there exists at least one other variant (hw v1.0c, as opposed
to the tested v1.2) which reports a different non-sensical volume range
(0..53) and the custom map is therefore not applied for that device.

This results in all of the volume change appearing close to 100% on
mixer UIs that utilize the dB TLV information.

Add a fallback case where no dB TLV is reported at all if the control
range is not 0..50 but still 0..N where N &lt;= 1000 (3.9 dB). Also
restrict the quirk to only apply to the volume control as there is also
a mute control which would match the check otherwise.

Fixes: 42e3121d90f4 ("ALSA: usb-audio: Add a more accurate volume quirk for AudioQuest DragonFly")
Signed-off-by: Anssi Hannula &lt;anssi.hannula@iki.fi&gt;
Reported-by: David W &lt;regulars@d-dub.org.uk&gt;
Tested-by: David W &lt;regulars@d-dub.org.uk&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: usb-audio: Add sample rate inquiry quirk for B850V3 CP2114</title>
<updated>2016-09-15T06:20:29+00:00</updated>
<author>
<name>Ken Lin</name>
<email>ken.lin@advantech.com.tw</email>
</author>
<published>2016-08-12T18:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a9b37021a9c9bc8ff7783f18c4c186ce9542fe16'/>
<id>urn:sha1:a9b37021a9c9bc8ff7783f18c4c186ce9542fe16</id>
<content type='text'>
commit 83d9956b7e6b310c1062df7894257251c625b22e upstream.

Avoid getting sample rate on B850V3 CP2114 as it is unsupported and
causes noisy "current rate is different from the runtime rate" messages
when playback starts.

Signed-off-by: Ken Lin &lt;ken.lin@advantech.com.tw&gt;
Signed-off-by: Akshay Bhat &lt;akshay.bhat@timesys.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: line6: Fix POD sysfs attributes segfault</title>
<updated>2016-09-07T06:34:56+00:00</updated>
<author>
<name>Andrej Krutak</name>
<email>dev@andree.sk</email>
</author>
<published>2016-08-18T21:52:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2c926ec5e0404b08c98d3b39ffad42cab192d8e5'/>
<id>urn:sha1:2c926ec5e0404b08c98d3b39ffad42cab192d8e5</id>
<content type='text'>
commit b027d11263836a0cd335520175257dcb99b43757 upstream.

The commit 02fc76f6a changed base of the sysfs attributes from device to card.
The "show" callbacks dereferenced wrong objects because of this.

Fixes: 02fc76f6a7db ('ALSA: line6: Create sysfs via snd_card_add_dev_attr()')
Reviewed-by: Stefan Hajnoczi &lt;stefanha@gmail.com&gt;
Signed-off-by: Andrej Krutak &lt;dev@andree.sk&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: line6: Give up on the lock while URBs are released.</title>
<updated>2016-09-07T06:34:56+00:00</updated>
<author>
<name>Andrej Krutak</name>
<email>dev@andree.sk</email>
</author>
<published>2016-08-18T21:52:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=906c9e0f1444b7c9b28d08458b56da25df3d6e6e'/>
<id>urn:sha1:906c9e0f1444b7c9b28d08458b56da25df3d6e6e</id>
<content type='text'>
commit adc8a43a6d6688272ebffa81789fa857e603dec6 upstream.

Done, because line6_stream_stop() locks and calls line6_unlink_audio_urbs(),
which in turn invokes audio_out_callback(), which tries to lock 2nd time.

Fixes:

=============================================
[ INFO: possible recursive locking detected ]
4.4.15+ #15 Not tainted
---------------------------------------------
mplayer/3591 is trying to acquire lock:
 (&amp;(&amp;line6pcm-&gt;out.lock)-&gt;rlock){-.-...}, at: [&lt;bfa27655&gt;] audio_out_callback+0x70/0x110 [snd_usb_line6]

but task is already holding lock:
 (&amp;(&amp;line6pcm-&gt;out.lock)-&gt;rlock){-.-...}, at: [&lt;bfa26aad&gt;] line6_stream_stop+0x24/0x5c [snd_usb_line6]

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock(&amp;(&amp;line6pcm-&gt;out.lock)-&gt;rlock);
  lock(&amp;(&amp;line6pcm-&gt;out.lock)-&gt;rlock);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

3 locks held by mplayer/3591:
 #0:  (snd_pcm_link_rwlock){.-.-..}, at: [&lt;bf8d49a7&gt;] snd_pcm_stream_lock+0x1e/0x40 [snd_pcm]
 #1:  (&amp;(&amp;substream-&gt;self_group.lock)-&gt;rlock){-.-...}, at: [&lt;bf8d49af&gt;] snd_pcm_stream_lock+0x26/0x40 [snd_pcm]
 #2:  (&amp;(&amp;line6pcm-&gt;out.lock)-&gt;rlock){-.-...}, at: [&lt;bfa26aad&gt;] line6_stream_stop+0x24/0x5c [snd_usb_line6]

stack backtrace:
CPU: 0 PID: 3591 Comm: mplayer Not tainted 4.4.15+ #15
Hardware name: Generic AM33XX (Flattened Device Tree)
[&lt;c0015d85&gt;] (unwind_backtrace) from [&lt;c001253d&gt;] (show_stack+0x11/0x14)
[&lt;c001253d&gt;] (show_stack) from [&lt;c02f1bdf&gt;] (dump_stack+0x8b/0xac)
[&lt;c02f1bdf&gt;] (dump_stack) from [&lt;c0076f43&gt;] (__lock_acquire+0xc8b/0x1780)
[&lt;c0076f43&gt;] (__lock_acquire) from [&lt;c007810d&gt;] (lock_acquire+0x99/0x1c0)
[&lt;c007810d&gt;] (lock_acquire) from [&lt;c06171e7&gt;] (_raw_spin_lock_irqsave+0x3f/0x4c)
[&lt;c06171e7&gt;] (_raw_spin_lock_irqsave) from [&lt;bfa27655&gt;] (audio_out_callback+0x70/0x110 [snd_usb_line6])
[&lt;bfa27655&gt;] (audio_out_callback [snd_usb_line6]) from [&lt;c04294db&gt;] (__usb_hcd_giveback_urb+0x53/0xd0)
[&lt;c04294db&gt;] (__usb_hcd_giveback_urb) from [&lt;c046388d&gt;] (musb_giveback+0x3d/0x98)
[&lt;c046388d&gt;] (musb_giveback) from [&lt;c04647f5&gt;] (musb_urb_dequeue+0x6d/0x114)
[&lt;c04647f5&gt;] (musb_urb_dequeue) from [&lt;c042ac11&gt;] (usb_hcd_unlink_urb+0x39/0x98)
[&lt;c042ac11&gt;] (usb_hcd_unlink_urb) from [&lt;bfa26a87&gt;] (line6_unlink_audio_urbs+0x6a/0x6c [snd_usb_line6])
[&lt;bfa26a87&gt;] (line6_unlink_audio_urbs [snd_usb_line6]) from [&lt;bfa26acb&gt;] (line6_stream_stop+0x42/0x5c [snd_usb_line6])
[&lt;bfa26acb&gt;] (line6_stream_stop [snd_usb_line6]) from [&lt;bfa26fe7&gt;] (snd_line6_trigger+0xb6/0xf4 [snd_usb_line6])
[&lt;bfa26fe7&gt;] (snd_line6_trigger [snd_usb_line6]) from [&lt;bf8d47b7&gt;] (snd_pcm_do_stop+0x36/0x38 [snd_pcm])
[&lt;bf8d47b7&gt;] (snd_pcm_do_stop [snd_pcm]) from [&lt;bf8d462f&gt;] (snd_pcm_action_single+0x22/0x40 [snd_pcm])
[&lt;bf8d462f&gt;] (snd_pcm_action_single [snd_pcm]) from [&lt;bf8d46f9&gt;] (snd_pcm_action+0xac/0xb0 [snd_pcm])
[&lt;bf8d46f9&gt;] (snd_pcm_action [snd_pcm]) from [&lt;bf8d4b61&gt;] (snd_pcm_drop+0x38/0x64 [snd_pcm])
[&lt;bf8d4b61&gt;] (snd_pcm_drop [snd_pcm]) from [&lt;bf8d6233&gt;] (snd_pcm_common_ioctl1+0x7fe/0xbe8 [snd_pcm])
[&lt;bf8d6233&gt;] (snd_pcm_common_ioctl1 [snd_pcm]) from [&lt;bf8d6779&gt;] (snd_pcm_playback_ioctl1+0x15c/0x51c [snd_pcm])
[&lt;bf8d6779&gt;] (snd_pcm_playback_ioctl1 [snd_pcm]) from [&lt;bf8d6b59&gt;] (snd_pcm_playback_ioctl+0x20/0x28 [snd_pcm])
[&lt;bf8d6b59&gt;] (snd_pcm_playback_ioctl [snd_pcm]) from [&lt;c016714b&gt;] (do_vfs_ioctl+0x3af/0x5c8)

Fixes: 63e20df1e5b2 ('ALSA: line6: Reorganize PCM stream handling')
Reviewed-by: Stefan Hajnoczi &lt;stefanha@gmail.com&gt;
Signed-off-by: Andrej Krutak &lt;dev@andree.sk&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: line6: Remove double line6_pcm_release() after failed acquire.</title>
<updated>2016-09-07T06:34:55+00:00</updated>
<author>
<name>Andrej Krutak</name>
<email>dev@andree.sk</email>
</author>
<published>2016-08-18T21:52:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c869384f1168b67bc183af2a803a26a25dce4ff5'/>
<id>urn:sha1:c869384f1168b67bc183af2a803a26a25dce4ff5</id>
<content type='text'>
commit 7e4379eae0e31994ea645db1d13006ea8e5ce539 upstream.

If there's an error, pcm is released in line6_pcm_acquire already.

Fixes: 247d95ee6dd2 ('ALSA: line6: Handle error from line6_pcm_acquire()')
Reviewed-by: Stefan Hajnoczi &lt;stefanha@gmail.com&gt;
Signed-off-by: Andrej Krutak &lt;dev@andree.sk&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: usb-audio: Add quirk for ELP HD USB Camera</title>
<updated>2016-09-07T06:34:43+00:00</updated>
<author>
<name>Vittorio Gambaletta (VittGam)</name>
<email>linuxbugs@vittgam.net</email>
</author>
<published>2016-08-08T10:35:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8e9e90806841b971ed1a6b09f15cf052bf7a888c'/>
<id>urn:sha1:8e9e90806841b971ed1a6b09f15cf052bf7a888c</id>
<content type='text'>
commit 41f5e3bdbf706a9e98194bf0c4b62a875c02f170 upstream.

The ELP HD USB Camera (05a3:9420) needs this quirk for suppressing
the unsupported sample rate inquiry.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=98481
Signed-off-by: Vittorio Gambaletta &lt;linuxbugs@vittgam.net&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: usb-audio: Add a sample rate quirk for Creative Live! Cam Socialize HD (VF0610)</title>
<updated>2016-09-07T06:34:43+00:00</updated>
<author>
<name>Piotr Karasinski</name>
<email>peter.karasinski@gmail.com</email>
</author>
<published>2016-08-06T19:23:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6be84fb45138c57a046d3409c0362bca4e34a3b9'/>
<id>urn:sha1:6be84fb45138c57a046d3409c0362bca4e34a3b9</id>
<content type='text'>
commit 7627e40c66b5547e12b6c5673646ceea84797a74 upstream.

VF0610 does not support reading the sample rate which leads to many
lines of "cannot get freq at ep 0x82". This patch adds the USB ID
(0x041E:4080) to snd_usb_get_sample_rate_quirk() list.

Signed-off-by: Piotr Karasinski &lt;peter.karasinski@gmail.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ALSA: usb-audio: Fix quirks code is not called</title>
<updated>2016-07-18T10:32:45+00:00</updated>
<author>
<name>Kazuki Oikawa</name>
<email>k@oikw.org</email>
</author>
<published>2016-07-17T16:16:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=76df52969711ae3725a98f26fbbc6a349803dcbf'/>
<id>urn:sha1:76df52969711ae3725a98f26fbbc6a349803dcbf</id>
<content type='text'>
snd_usb_{set_interface,ctl_msg}_quirk checks chip-&gt;usb_id to need
calling a quirks code. But existed code path that not calling
dev_set_drvdata in usb_audio_probe.

Fixes: 79289e24194a ("ALSA: usb-audio: Refer to chip-&gt;usb_id for quirks and MIDI creation")
Signed-off-by: Kazuki Oikawa &lt;k@oikw.org&gt;
Cc: &lt;stable@vger.kernel.org&gt; # v4.6+
Reviewed-by: Takashi Sakamoto &lt;o-takashi@sakamocchi.jp&gt;
Tested-by: Takashi Sakamoto &lt;o-takashi@sakamocchi.jp&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-next' into for-linus</title>
<updated>2016-05-16T07:13:08+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2016-05-16T07:13:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=581abbaa03367f0b1327521f30bd2b69b8075b2f'/>
<id>urn:sha1:581abbaa03367f0b1327521f30bd2b69b8075b2f</id>
<content type='text'>
</content>
</entry>
</feed>
