]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 2 May 2014 16:21:55 +0000 (18:21 +0200)
commit721b9fcb5ca7e86ceac268bfbcf4b3f82b8cc41f
tree709e4176f252d31cd6af68337efc0a16ebd8754d
parent39e94b4805d292b9fa1e228ef9753f4b25ae519e
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