diff options
author | Ruslan Bilovol <ruslan.bilovol@gmail.com> | 2017-06-25 16:23:45 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-07-18 09:33:06 +0300 |
commit | 8bd226f9a7dc18740a916dcba3112f2bfc3ad9e8 (patch) | |
tree | bee74c146c1533cc075cf04da9198562c359caf8 /include/uapi/linux/usb/audio.h | |
parent | ab1d53d598be211968c5b4eeee4c5b67d6e21602 (diff) | |
download | linux-8bd226f9a7dc18740a916dcba3112f2bfc3ad9e8.tar.xz |
include: usb: audio: specify exact endiannes of descriptors
USB spec says that multiple byte fields are stored in
little-endian order (see chapter 8.1 of USB2.0 spec and
chapter 7.1 of USB3.0 spec), thus mark such fields as LE
for UAC1 and UAC2 headers
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'include/uapi/linux/usb/audio.h')
-rw-r--r-- | include/uapi/linux/usb/audio.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/uapi/linux/usb/audio.h b/include/uapi/linux/usb/audio.h index d2314be4f0c0..a4680a5bf5dd 100644 --- a/include/uapi/linux/usb/audio.h +++ b/include/uapi/linux/usb/audio.h @@ -333,7 +333,7 @@ struct uac_processing_unit_descriptor { __u8 bDescriptorType; __u8 bDescriptorSubtype; __u8 bUnitID; - __u16 wProcessType; + __le16 wProcessType; __u8 bNrInPins; __u8 baSourceID[]; } __attribute__ ((packed)); @@ -491,8 +491,8 @@ struct uac_format_type_ii_ext_descriptor { __u8 bDescriptorType; __u8 bDescriptorSubtype; __u8 bFormatType; - __u16 wMaxBitRate; - __u16 wSamplesPerFrame; + __le16 wMaxBitRate; + __le16 wSamplesPerFrame; __u8 bHeaderLength; __u8 bSideBandProtocol; } __attribute__((packed)); |