ALSA: usb-audio: Limit retrying sample rate reads
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 Apr 2016 09:49:04 +0000 (11:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Apr 2016 09:49:04 +0000 (11:49 +0200)
commit57dd5414a087991d427067b32dc3324af61b1c8b
tree2ce444fa16975ba689ca7271e513c66cef58a3b2
parenta33d59599653edc6469c582f0ffd99c5fc58af04
ALSA: usb-audio: Limit retrying sample rate reads

There are many USB audio devices with buggy firmware that don't react
with the sample rate reading properly.  This often results in the
flood of error messages and slowing down the operation.

The sample rate read back is basically only for confirming the sample
rate setup, and it's not critically important.  As a compromise, in
this patch, we stop the sample rate read back once when the device
gives errors more than tolerance (twice, as of now).  This should
improve most of error cases while we still can catch the firmware
bugginess.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c
sound/usb/usbaudio.h
This page took 0.024325 seconds and 5 git commands to generate.