]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] noon010pc30: Conversion to the media controller API
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 16 Sep 2011 15:33:08 +0000 (12:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Sep 2011 17:28:12 +0000 (14:28 -0300)
commit6426e14a7ebfaea831db8d95f55da334701f2c37
treebcf4e247614cc4b0eb7b59e2c45824ef3dfb30cd
parentfbc09d3aa1510552e36d9bae05def25d039a98f2
[media] noon010pc30: Conversion to the media controller API

Replace g/s_mbus_fmt ops with the pad level get/set_fmt operations.
Add media entity initialization and set subdev flags so the host driver
creates a subdev device node for the driver.
A mutex was added for serializing the subdev operations. When setting
format is attempted during streaming an (EBUSY) error will be returned.

After the device is powered up it will now remain in "power sleep"
mode until s_stream(1) is called. The "power sleep" mode is used
to suspend/resume frame generation at the sensor's output through
s_stream op.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/Kconfig
drivers/media/video/noon010pc30.c