From: Victor Clément <victor.clement@openmailbox.org>
Date: Sat, 19 Mar 2016 12:17:42 +0000 (+0100)
Subject: ALSA: usb-audio: add Microsoft HD-5001 to quirks
X-Git-Tag: firefly_0821_release~176^2~4^2~50^2~142
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=94bfaf24e6ba9a789fa0aa50fb4b7d228f8d3cff;p=firefly-linux-kernel-4.4.55.git

ALSA: usb-audio: add Microsoft HD-5001 to quirks

commit 0ef21100ae912f76ed89f76ecd894f4ffb3689c1 upstream.

The Microsoft HD-5001 webcam microphone does not support sample rate
reading as the HD-5000 one.
This results in dmesg errors and sound hanging with pulseaudio.

Signed-off-by: Victor Clément <victor.clement@openmailbox.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---

diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index f2e4eebdf76d..2967242a5716 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1127,6 +1127,7 @@ bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip)
 	switch (chip->usb_id) {
 	case USB_ID(0x045E, 0x075D): /* MS Lifecam Cinema  */
 	case USB_ID(0x045E, 0x076D): /* MS Lifecam HD-5000 */
+	case USB_ID(0x045E, 0x076E): /* MS Lifecam HD-5001 */
 	case USB_ID(0x045E, 0x076F): /* MS Lifecam HD-6000 */
 	case USB_ID(0x045E, 0x0772): /* MS Lifecam Studio */
 	case USB_ID(0x045E, 0x0779): /* MS Lifecam HD-3000 */