Hi, On Monday 30 August 2010 19:53:13 Palmax Maverick wrote: > Hello, > > I'm trying to understand uvc_set_video_ctrl ( > http://lxr.linux.no/linux+v2.6.35/drivers/media/video/uvc/uvc_video.c#L209 > ), that its a function for sending and receiving controls. > > I don't know why do you use put_unaligned_le32 for dwMaxVideoFrameSize > and dwMaxPayloadTransferSize (these parameters are explained at the > table 4-47 of UVC especification pdf).
Because the fields are not aligned to a 32-bit boundary in memory. Platforms that can't handle unaligned access (such as ARM) need the put_unaligned_le32 macro. -- Regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel