Skip to content

Commit

Permalink
ALSA: usb-audio: fix selector unit string index accessor
Browse files Browse the repository at this point in the history
This is another regression from the UAC2 code refactoring.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Daniel Mack authored and Takashi Iwai committed May 31, 2010
1 parent 5dd360e commit 7176d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/usb/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct uac_selector_unit_descriptor {
static inline __u8 uac_selector_unit_iSelector(struct uac_selector_unit_descriptor *desc)
{
__u8 *raw = (__u8 *) desc;
return raw[9 + desc->bLength - 1];
return raw[desc->bLength - 1];
}

/* 4.3.2.5 Feature Unit Descriptor */
Expand Down

0 comments on commit 7176d37

Please sign in to comment.