Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206672
b: refs/heads/master
c: d32d552
h: refs/heads/master
v: v3
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Jul 9, 2010
1 parent 056ef33 commit ef938d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54a3b8dc38d47834336400cbe376a3aca0437cae
refs/heads/master: d32d552e665dc07384208108165592d0b524dba2
5 changes: 1 addition & 4 deletions trunk/sound/usb/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef938d5

Please sign in to comment.