media: ov772x: make set_fmt() and s_frame_interval() return -EBUSY while streaming
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 6 May 2018 14:19:28 +0000 (10:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 13:18:33 +0000 (09:18 -0400)
commit7b9998c9361950040af1c6e7a914519e891052a1
tree3d8cec165c6786c95f733d9c32fc56804613d9d1
parent95f5a45aea8800e011698fef1c4f535e9afb374a
media: ov772x: make set_fmt() and s_frame_interval() return -EBUSY while streaming

The ov772x driver is going to offer a V4L2 sub-device interface, so
changing the output data format and the frame interval on this sub-device
can be made anytime.  However, these requests are preferred to fail while
the video stream on the device is active.

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov772x.c