[media] rcar_vin: propagate querystd() error upstream
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 1 Sep 2015 22:29:01 +0000 (19:29 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 25 Sep 2015 20:29:24 +0000 (17:29 -0300)
commit936ad8900c60b800f10b14afc3b9ab26a7182d26
tree440c9183818e82273e2195266b745a0675212d7f
parentdb33386ae31ff81b52d2f8a25a02d403ec8bf3f2
[media] rcar_vin: propagate querystd() error upstream

rcar_vin_set_fmt() defaults to  PAL when the subdevice's querystd() method call
fails (e.g. due to I2C error).  This doesn't work very well when a camera being
used  outputs NTSC which has different order of fields and resolution.  Let  us
stop  pretending and return the actual error except  when the querystd() method
is not implemented,  in which case  we'll have  to set the 'field' variable  to
V4L2_FIELD_NONE.

Note that doing this would prevent video capture on at least Renesas Henninger/
Porter boards where I2C seems particularly buggy.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/rcar_vin.c
This page took 0.024645 seconds and 5 git commands to generate.