[media] s5p-mfc: v4l2 controls setup routine moved to initialization code
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 28 May 2013 06:26:15 +0000 (03:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 3 Jun 2013 18:56:37 +0000 (15:56 -0300)
commit69c9fe6f4afae54cad12635bdb8e90e7d832e240
tree2bc85d9b81bd7341aac868234de72cbb8c8abc97
parentac5f867fbfbd1ff5a43e796ed470deff42b630d2
[media] s5p-mfc: v4l2 controls setup routine moved to initialization code

Callback .start_streaming is called once for every queue,
so v4l2_ctrl_handler_setup was called twice during stream start.
Moving v4l2_ctrl_handler_setup to context initialization
reduces numbers of calls and seems to be more consistent with API.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c