summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2010-05-31 13:35:39 +0200
committerTakashi Iwai <tiwai@suse.de>2010-05-31 18:16:31 +0200
commit7176d37a28fa4ea7e32815007673f578cdcebf51 (patch)
tree14698442d389d5da85366b3706402dbb1fdade9b /include/linux
parent5dd360ebd8328affb22225141cece3a29403b965 (diff)
downloadlinux-7176d37a28fa4ea7e32815007673f578cdcebf51.tar.gz
linux-7176d37a28fa4ea7e32815007673f578cdcebf51.tar.bz2
linux-7176d37a28fa4ea7e32815007673f578cdcebf51.zip
ALSA: usb-audio: fix selector unit string index accessor
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/audio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h
index 5d646c388752..ed5cf92a3c0f 100644
--- a/include/linux/usb/audio.h
+++ b/include/linux/usb/audio.h
@@ -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 */