]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 17:28:16 +0000 (10:28 -0700)
commitf5ad14928afcc5c2b1c2722c7e935842ad512b0d
tree0328ac485ff79f37628a90b1def12311140d8d50
parentc2965f4fee71bb2432a2d06989247cbc526b9e55
ALSA: usb-audio: work around corrupted TEAC UD-H01 feedback data

commit 7040b6d1febfdbd9c1595efb751d492cd2503f96 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/card.h
sound/usb/endpoint.c