ALSA: usb-audio: work around corrupted TEAC UD-H01 feedback data
authorClemens Ladisch <clemens@ladisch.de>
Thu, 1 May 2014 10:20:22 +0000 (12:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 May 2014 16:21:55 +0000 (18:21 +0200)
commit7040b6d1febfdbd9c1595efb751d492cd2503f96
tree709e4176f252d31cd6af68337efc0a16ebd8754d
parent1ee23fe07ee83a38ecee927e701f762888ada942
ALSA: usb-audio: work around corrupted TEAC UD-H01 feedback data

The TEAC UD-H01 firmware sends wrong feedback frequency values, thus
causing the PC to send the samples at a wrong rate, which results in
clicks and crackles in the output.

Add a workaround to detect and fix the corruption.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
[mick37@gmx.de: use sender->udh01_fb_quirk rather than
 ep->udh01_fb_quirk in snd_usb_handle_sync_urb()]
Reported-and-tested-by: Mick <mick37@gmx.de>
Reported-and-tested-by: Andrea Messa <andr.messa@tiscali.it>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.h
sound/usb/endpoint.c