]> git.baikalelectronics.ru Git - kernel.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)
commit2d3442eb258c80f656f371fb07841a00770ec66c
tree78765a533ff3520c0145bcb9f35f0d5f5a4109ff
parent301e7ae16b07483fa36fe5f27a3fb8e34034c560
[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