diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-04-29 11:49:04 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-04-29 11:49:04 +0200 |
commit | 57dd5414a087991d427067b32dc3324af61b1c8b (patch) | |
tree | 2ce444fa16975ba689ca7271e513c66cef58a3b2 /sound/usb/endpoint.c | |
parent | a33d59599653edc6469c582f0ffd99c5fc58af04 (diff) | |
download | blackbird-op-linux-57dd5414a087991d427067b32dc3324af61b1c8b.tar.gz blackbird-op-linux-57dd5414a087991d427067b32dc3324af61b1c8b.zip |
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>
Diffstat (limited to 'sound/usb/endpoint.c')
0 files changed, 0 insertions, 0 deletions