[media] s5p-fimc: Do not allow changing format after REQBUFS
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 15 Mar 2011 17:50:52 +0000 (14:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Apr 2011 19:01:39 +0000 (16:01 -0300)
commitc4a627333f0d952c5e10c02609493fa63b5c7b28
tree6fdb568363159339f68652de51077cae55853e7a
parent25b9875fb4880efabb79d6a35c92cc7287fcaccd
[media] s5p-fimc: Do not allow changing format after REQBUFS

Protecting the color format with vb2_is_streaming() is not sufficient
as this prevents changing the format only after VIDIOC_STREAMON.
To prevent the color format reconfiguration as soon as buffers
are allocated use vb2_is_busy() instead.
Also make the videobuf queue ops structure static.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-capture.c
drivers/media/video/s5p-fimc/fimc-core.c