Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209458
b: refs/heads/master
c: 38d7b08
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed Aug 15, 2010
1 parent 144c55a commit 5b8ef01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31cbd97726207b483a1731562559fabd4e2efdd0
refs/heads/master: 38d7b08f374b640b00d350ac2d12ffed5d723423
8 changes: 8 additions & 0 deletions trunk/sound/usb/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ static int parse_audio_format_i(struct snd_usb_audio *chip,
/* fp->channels is already set in this case */
ret = parse_audio_format_rates_v2(chip, fp);
break;
default:
snd_printk(KERN_ERR "%d:%u:%d : invalid protocol version %d\n",
chip->dev->devnum, fp->iface, fp->altsetting, protocol);
return -EINVAL;
}

if (fp->channels < 1) {
Expand Down Expand Up @@ -452,6 +456,10 @@ static int parse_audio_format_ii(struct snd_usb_audio *chip,
ret = parse_audio_format_rates_v2(chip, fp);
break;
}
default:
snd_printk(KERN_ERR "%d:%u:%d : invalid protocol version %d\n",
chip->dev->devnum, fp->iface, fp->altsetting, protocol);
return -EINVAL;
}

return ret;
Expand Down

0 comments on commit 5b8ef01

Please sign in to comment.