Skip to content

Commit 7176d37

Browse files
Daniel Macktiwai
authored andcommitted
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>
1 parent 5dd360e commit 7176d37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/usb/audio.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ struct uac_selector_unit_descriptor {
244244
static inline __u8 uac_selector_unit_iSelector(struct uac_selector_unit_descriptor *desc)
245245
{
246246
__u8 *raw = (__u8 *) desc;
247-
return raw[9 + desc->bLength - 1];
247+
return raw[desc->bLength - 1];
248248
}
249249

250250
/* 4.3.2.5 Feature Unit Descriptor */

0 commit comments

Comments
 (0)