Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1532
b: refs/heads/master
c: 8c1872d
h: refs/heads/master
v: v3
  • Loading branch information
Clemens Ladisch authored and Jaroslav Kysela committed May 29, 2005
1 parent f2e52c7 commit e7fb8ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: ade2916109dc53350298f1ccfb8ab03432c590b4
refs/heads/master: 8c1872dcf29e2a194197e1d5a9c366a265986b84
8 changes: 5 additions & 3 deletions trunk/sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2422,15 +2422,17 @@ static int parse_audio_format(struct usb_device *dev, struct audioformat *fp,
if (err < 0)
return err;
#if 1
/* FIXME: temporary hack for extigy */
/* FIXME: temporary hack for extigy/audigy 2 nx */
/* extigy apparently supports sample rates other than 48k
* but not in ordinary way. so we enable only 48k atm.
*/
if (le16_to_cpu(dev->descriptor.idVendor) == 0x041e &&
le16_to_cpu(dev->descriptor.idProduct) == 0x3000) {
(le16_to_cpu(dev->descriptor.idProduct) == 0x3000 ||
le16_to_cpu(dev->descriptor.idProduct) == 0x3020)) {
if (fmt[3] == USB_FORMAT_TYPE_I &&
stream == SNDRV_PCM_STREAM_PLAYBACK &&
fp->rates != SNDRV_PCM_RATE_48000)
fp->rates != SNDRV_PCM_RATE_48000 &&
fp->rates != SNDRV_PCM_RATE_96000)
return -1; /* use 48k only */
}
#endif
Expand Down

0 comments on commit e7fb8ab

Please sign in to comment.