diff options
Diffstat (limited to 'sound/usb/clock.c')
-rw-r--r-- | sound/usb/clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 3d5603738d65..e46e7b3ed315 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c | |||
@@ -531,6 +531,12 @@ static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface, | |||
531 | } | 531 | } |
532 | 532 | ||
533 | crate = data[0] | (data[1] << 8) | (data[2] << 16); | 533 | crate = data[0] | (data[1] << 8) | (data[2] << 16); |
534 | if (!crate) { | ||
535 | dev_info(&dev->dev, "failed to read current rate; disabling the check\n"); | ||
536 | chip->sample_rate_read_error = 3; /* three strikes, see above */ | ||
537 | return 0; | ||
538 | } | ||
539 | |||
534 | if (crate != rate) { | 540 | if (crate != rate) { |
535 | dev_warn(&dev->dev, "current rate %d is different from the runtime rate %d\n", crate, rate); | 541 | dev_warn(&dev->dev, "current rate %d is different from the runtime rate %d\n", crate, rate); |
536 | // runtime->rate = crate; | 542 | // runtime->rate = crate; |