[media] v4l: ti-vpe: Fix initial configuration queue data
authorArchit Taneja <archit@ti.com>
Mon, 10 Mar 2014 06:57:40 +0000 (03:57 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 7 Apr 2014 12:43:05 +0000 (09:43 -0300)
commit67fb87eec08a7705b0b8177095b1ef099a05b8c9
tree433e72c0495973e58a191b4a95029e526f43366e
parentb20902b92e6a49ab21a79d4b2e56a6dd0085c696
[media] v4l: ti-vpe: Fix initial configuration queue data

The vpe output and capture queues are initially configured to default values in
vpe_open(). A G_FMT before any S_FMTs will result in these values being
populated.

The colorspace and bytesperline parameter of this initial configuration are
incorrect. This breaks compliance when as we get 'TRY_FMT(G_FMT) != G_FMT'.

Fix the initial queue configuration such that it wouldn't need to be fixed by
try_fmt.

Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/ti-vpe/vpe.c