Skip to content

Commit

Permalink
[media] noon010pc30: Conversion to the media controller API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Sep 21, 2011
1 parent fbc09d3 commit 6426e14
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 69 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ config VIDEO_VIA_CAMERA

config VIDEO_NOON010PC30
tristate "NOON010PC30 CIF camera sensor support"
depends on I2C && VIDEO_V4L2
depends on I2C && VIDEO_V4L2 && EXPERIMENTAL && VIDEO_V4L2_SUBDEV_API
---help---
This driver supports NOON010PC30 CIF camera from Siliconfile

Expand Down
Loading

0 comments on commit 6426e14

Please sign in to comment.