[alsa-devel] [PATCH 1/2] ALSA: include/linux/usb/audio.h: add __attribute__((packed))

Takashi Iwai tiwai at suse.de
Tue May 11 22:52:47 CEST 2010


At Tue, 11 May 2010 18:13:49 +0200,
Daniel Mack wrote:
> 
> This was missing on the definition of struct uac_iso_endpoint_descriptor
> 
> Signed-off-by: Daniel Mack <daniel at caiaq.de>
> Cc: Takashi Iwai <tiwai at suse.de>
> Cc: Clemens Ladisch <clemens at ladisch.de>

Applied these fixes now.  Thanks.


Takashi

> ---
>  include/linux/usb/audio.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/usb/audio.h b/include/linux/usb/audio.h
> index 57f2055..9fae6bd 100644
> --- a/include/linux/usb/audio.h
> +++ b/include/linux/usb/audio.h
> @@ -456,7 +456,7 @@ struct uac_iso_endpoint_descriptor {
>  	__u8  bmAttributes;
>  	__u8  bLockDelayUnits;
>  	__le16 wLockDelay;
> -};
> +} __attribute__((packed));
>  #define UAC_ISO_ENDPOINT_DESC_SIZE	7
>  
>  #define UAC_EP_CS_ATTR_SAMPLE_RATE	0x01
> -- 
> 1.7.1
> 


More information about the Alsa-devel mailing list