]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l: Group media bus pixel codes by types and sort them alphabetically
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 1 Sep 2010 15:58:22 +0000 (12:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:53:25 +0000 (04:53 -0300)
commitdacdde78b39e49edf2f7af85be4b613978280b26
tree78765a533ff3520c0145bcb9f35f0d5f5a4109ff
parent076704332ca6da550cbc279918ef8b88b4ac1e45
[media] v4l: Group media bus pixel codes by types and sort them alphabetically

Adding new pixel codes at the end of the enumeration will soon create a
mess, so group the pixel codes by type and sort them by bus_width, bits
per component, samples per pixel and order of subsamples.

As the codes are part of the kernel ABI their value can't change when a
new code is inserted in the enumeration, so they are given an explicit
numerical value. When inserting a new pixel code developers must use and
update the next free value.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/linux/v4l2-mediabus.h