Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static int ioctl_s_parm ( struct v4l2_int_device *  s,
struct v4l2_streamparm *  a 
) [static]

ioctl_s_parm - V4L2 sensor interface handler for VIDIOC_S_PARM ioctl : pointer to standard V4L2 device structure : pointer to standard V4L2 VIDIOC_S_PARM ioctl structure

Configures the sensor to use the input parameters, if possible. If not possible, reverts to the old parameters and returns the appropriate error code.

This driver cannot change these settings.

Definition at line 403 of file adv7180.c.

References adv7180_data, and sensor::i2c_client.

{
      dev_dbg(&adv7180_data.i2c_client->dev, "In adv7180:ioctl_s_parm\n");

      switch (a->type) {
      /* These are all the possible cases. */
      case V4L2_BUF_TYPE_VIDEO_CAPTURE:
      case V4L2_BUF_TYPE_VIDEO_OUTPUT:
      case V4L2_BUF_TYPE_VIDEO_OVERLAY:
      case V4L2_BUF_TYPE_VBI_CAPTURE:
      case V4L2_BUF_TYPE_VBI_OUTPUT:
      case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
      case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT:
            break;

      default:
            pr_debug("   type is unknown - %d\n", a->type);
            break;
      }

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index