diff options
| -rw-r--r-- | include/uapi/linux/usb/audio.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/uapi/linux/usb/audio.h b/include/uapi/linux/usb/audio.h index ac90037894d9..d2314be4f0c0 100644 --- a/include/uapi/linux/usb/audio.h +++ b/include/uapi/linux/usb/audio.h | |||
| @@ -384,14 +384,16 @@ static inline __u8 uac_processing_unit_iProcessing(struct uac_processing_unit_de | |||
| 384 | int protocol) | 384 | int protocol) |
| 385 | { | 385 | { |
| 386 | __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); | 386 | __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); |
| 387 | return desc->baSourceID[desc->bNrInPins + control_size]; | 387 | return *(uac_processing_unit_bmControls(desc, protocol) |
| 388 | + control_size); | ||
| 388 | } | 389 | } |
| 389 | 390 | ||
| 390 | static inline __u8 *uac_processing_unit_specific(struct uac_processing_unit_descriptor *desc, | 391 | static inline __u8 *uac_processing_unit_specific(struct uac_processing_unit_descriptor *desc, |
| 391 | int protocol) | 392 | int protocol) |
| 392 | { | 393 | { |
| 393 | __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); | 394 | __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); |
| 394 | return &desc->baSourceID[desc->bNrInPins + control_size + 1]; | 395 | return uac_processing_unit_bmControls(desc, protocol) |
| 396 | + control_size + 1; | ||
| 395 | } | 397 | } |
| 396 | 398 | ||
| 397 | /* 4.5.2 Class-Specific AS Interface Descriptor */ | 399 | /* 4.5.2 Class-Specific AS Interface Descriptor */ |
