]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit085e5aedc4909077b24fceb48c08188152817db7
tree2bc85d9b81bd7341aac868234de72cbb8c8abc97
parent896b9b984854c429a5f7341e5ca14180a74ca188
[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