]> git.baikalelectronics.ru Git - kernel.git/commit
[media] smiapp: Clean up smiapp_set_format()
authorSakari Ailus <sakari.ailus@iki.fi>
Fri, 26 Sep 2014 13:12:38 +0000 (10:12 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 15:43:31 +0000 (13:43 -0200)
commit5a93a00fea8f338ed1ffdb44f63b2ed38c9ae136
tree5c227a5e782b846f315f4a439a64039e432f0410
parent6c2f0160037dca5c70e6bb8d75d45c48f8ef6e91
[media] smiapp: Clean up smiapp_set_format()

smiapp_set_format() has accumulated a fair amount of changes without a
needed refactoring, do the cleanup now. There's also an unlocked version of
v4l2_ctrl_range_changed(), using that fixes a small serialisation issue with
the user space interface.

__v4l2_ctrl_modify_range() is used instead of v4l2_ctrl_modify_range() in
smiapp_set_format_source() since the mutex is now held during the function
call.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c