Hi Javier, On Wednesday 11 May 2011 09:15:29 javier Martin wrote: > On 11 May 2011 06:54, Chris Rodley <carlighting@xxxxxxxxxxx> wrote: > > I am having a problem with these commands: > > > > root@chris:/home# ./media-ctl -r -l '"mt9p031 2-0048":0->"OMAP3 ISP CC > > > > DC":0[1], "OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]' > > Resetting all links to inactive > > Setting up link 16:0 -> 5:0 [1] > > Setting up link 5:1 -> 6:0 [1] > > root@chris:/home# ./media-ctl -f '"mt9p031 2-0048":0[SGRBG8 320x240], > > "OMAP3 ISP CCDC":1[SGRBG8 320x240]' > > Unable to parse format > > Hi Chris, > you have to add SGRBG8 and SGRBG12 formats to media-ctl with the following > patch: > > diff --git a/src/main.c b/src/main.c > index 461dae1..fb1bfbe 100644 > --- a/src/main.c > +++ b/src/main.c > @@ -52,8 +52,10 @@ static struct { > { "Y8", V4L2_MBUS_FMT_Y8_1X8}, > { "YUYV", V4L2_MBUS_FMT_YUYV8_1X16 }, > { "UYVY", V4L2_MBUS_FMT_UYVY8_1X16 }, > + { "SGRBG8", V4L2_MBUS_FMT_SGRBG8_1X8 }, > { "SGRBG10", V4L2_MBUS_FMT_SGRBG10_1X10 }, > { "SGRBG10_DPCM8", V4L2_MBUS_FMT_SGRBG10_DPCM8_1X8 }, > + { "SGRBG12", V4L2_MBUS_FMT_SGRBG12_1X12 }, > }; > > static const char *pixelcode_to_string(enum v4l2_mbus_pixelcode code) Thanks for the patch. I've committed it to the media-ctl repository (with additional Bayer formats). -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html