summaryrefslogtreecommitdiff
path: root/sound/usb/clock.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2010-07-08 16:38:01 +0200
committerTakashi Iwai <tiwai@suse.de>2010-07-09 15:08:12 +0200
commitd32d552e665dc07384208108165592d0b524dba2 (patch)
treef9bdfaa6bbed7a28a578b5cad4a859d162c20a73 /sound/usb/clock.c
parent54a3b8dc38d47834336400cbe376a3aca0437cae (diff)
ALSA: usb-audio: silence a superfluous warning
It is not advisable to print a warning when a device does not support setting the sample rate because this is perfectly valid for devices with a single rate or where rates are implicitly changed by selecting another alternate setting. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/clock.c')
-rw-r--r--sound/usb/clock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index 66bd1574d80b..b853f8df794f 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -204,11 +204,8 @@ static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface,
ep = get_endpoint(alts, 0)->bEndpointAddress;
/* if endpoint doesn't have sampling rate control, bail out */
- if (!(fmt->attributes & UAC_EP_CS_ATTR_SAMPLE_RATE)) {
- snd_printk(KERN_WARNING "%d:%d:%d: endpoint lacks sample rate attribute bit, cannot set.\n",
- dev->devnum, iface, fmt->altsetting);
+ if (!(fmt->attributes & UAC_EP_CS_ATTR_SAMPLE_RATE))
return 0;
- }
data[0] = rate;
data[1] = rate >> 8;