mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
54a3b8dc38
commit
d32d552e66
1 changed files with 1 additions and 4 deletions
|
@ -204,11 +204,8 @@ static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface,
|
||||||
ep = get_endpoint(alts, 0)->bEndpointAddress;
|
ep = get_endpoint(alts, 0)->bEndpointAddress;
|
||||||
|
|
||||||
/* if endpoint doesn't have sampling rate control, bail out */
|
/* if endpoint doesn't have sampling rate control, bail out */
|
||||||
if (!(fmt->attributes & UAC_EP_CS_ATTR_SAMPLE_RATE)) {
|
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);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
data[0] = rate;
|
data[0] = rate;
|
||||||
data[1] = rate >> 8;
|
data[1] = rate >> 8;
|
||||||
|
|
Loading…
Reference in a new issue