From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Pinchart Date: Tue, 29 Nov 2011 10:26:56 +0000 Subject: [PATCH v4 0/3] fbdev: Add FOURCC-based format configuration API Message-Id: <1322562419-9934-1-git-send-email-laurent.pinchart@ideasonboard.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-fbdev@vger.kernel.org Cc: linux-media@vger.kernel.org Hi everybody, Here's the fourth version of the fbdev FOURCC-based format configuration AP= I. The third version nearly got merged, but we noticed that gcc choked on anonymous union initializers. This has been fixed in gcc 4.6, but I don't h= ave the power to force Linux to set the base gcc version to 4.6 :-) There were two ways to fix the issue, neither of which was particularly attractive to me. The first one involved a 10k lines patch that modified all the drivers, and the second one required using one of the reserved fields in the fb_var_screeninfo structure. After discussing this with Florian, I've decided to go for the second fix. The colorspace field is thus now stored in a previously reserved field. The fourcc field is still shared with the grayscale field, but doesn't have its own name anymore. I've updated the fbdev-test tool to this new API. The code is available in = the fbdev-test yuv branch at http://git.ideasonboard.org/?p=FBdev-test.git;a=3Dshortlog;h=3Drefs/heads/y= uv. Laurent Pinchart (3): fbdev: Add FOURCC-based format configuration API v4l: Add V4L2_PIX_FMT_NV24 and V4L2_PIX_FMT_NV42 formats fbdev: sh_mobile_lcdc: Support FOURCC-based format API Documentation/DocBook/media/v4l/pixfmt-nv24.xml | 129 ++++++++ Documentation/DocBook/media/v4l/pixfmt.xml | 1 + Documentation/fb/api.txt | 306 +++++++++++++++++++ arch/arm/mach-shmobile/board-ag5evm.c | 2 +- arch/arm/mach-shmobile/board-ap4evb.c | 4 +- arch/arm/mach-shmobile/board-mackerel.c | 4 +- arch/sh/boards/mach-ap325rxa/setup.c | 2 +- arch/sh/boards/mach-ecovec24/setup.c | 2 +- arch/sh/boards/mach-kfr2r09/setup.c | 2 +- arch/sh/boards/mach-migor/setup.c | 4 +- arch/sh/boards/mach-se/7724/setup.c | 2 +- drivers/video/sh_mobile_lcdcfb.c | 360 +++++++++++++++----= ---- include/linux/fb.h | 14 +- include/linux/videodev2.h | 2 + include/video/sh_mobile_lcdc.h | 4 +- 15 files changed, 701 insertions(+), 137 deletions(-) create mode 100644 Documentation/DocBook/media/v4l/pixfmt-nv24.xml create mode 100644 Documentation/fb/api.txt --=20 Regards, Laurent Pinchart