1. 01 10月, 2015 1 次提交
  2. 23 12月, 2014 4 次提交
  3. 17 7月, 2014 1 次提交
    • L
      [media] v4l: Support extending the v4l2_pix_format structure · d52e2381
      Laurent Pinchart 提交于
      The v4l2_pix_format structure has no reserved field. It is embedded in
      the v4l2_framebuffer structure which has no reserved fields either, and
      in the v4l2_format structure which has reserved fields that were not
      previously required to be zeroed out by applications.
      
      To allow extending v4l2_pix_format, inline it in the v4l2_framebuffer
      structure, and use the priv field as a magic value to indicate that the
      application has set all v4l2_pix_format extended fields and zeroed all
      reserved fields following the v4l2_pix_format field in the v4l2_format
      structure.
      
      The availability of this API extension is reported to userspace through
      the new V4L2_CAP_EXT_PIX_FORMAT capability flag. Just checking that the
      priv field is still set to the magic value at [GS]_FMT return wouldn't
      be enough, as older kernels don't zero the priv field on return.
      
      To simplify the internal API towards drivers zero the extended fields
      and set the priv field to the magic value for applications not aware of
      the extensions.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      d52e2381
  4. 05 7月, 2014 1 次提交
  5. 26 4月, 2013 2 次提交
  6. 17 4月, 2013 26 次提交
  7. 15 4月, 2013 3 次提交
    • H
      [media] cx25821: the audio channel was registered as a video node · 31b32073
      Hans Verkuil 提交于
      Skip the audio channel when registering the video nodes. This fixes a bug
      where that incorrectly registered 'video' node was never unregistered.
      Note: this bug only surfaces if the video output nodes are enabled again
      after the previous patch disabled them.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      31b32073
    • H
      [media] cx25821: do not expose broken video output streams · a877e277
      Hans Verkuil 提交于
      The cx25821 driver has support for one audio output channel and two video
      output channels.
      This is implemented in a very ugly and very evil way through a custom ioctl
      that passes the filename of a file containing the video data, which is then
      read by the driver itself using vfs.
      There are a number of problems with this:
      1) it's very ugly and very evil (I can't say that often enough).
      2) V4L2 supports video output, so why not use that?
      3) it's very buggy, closing the filehandle through which you passed the ioctl
         will oops the kernel.
      4) it's a nasty security leak since this allows you to load any file in the
         system as a video or audio source, so in theory you can output /etc/passwd
         to audio or video out and record & decode it on another device.
      Because of all these issues we no longer register those output video nodes.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a877e277
    • H
      [media] cx25821: do not expose broken video output streams · c95789ec
      Hans Verkuil 提交于
      The cx25821 driver has support for one audio output channel and two video
      output channels.
      This is implemented in a very ugly and very evil way through a custom ioctl
      that passes the filename of a file containing the video data, which is then
      read by the driver itself using vfs.
      There are a number of problems with this:
      1) it's very ugly and very evil (I can't say that often enough).
      2) V4L2 supports video output, so why not use that?
      3) it's very buggy, closing the filehandle through which you passed the ioctl
         will oops the kernel.
      4) it's a nasty security leak since this allows you to load any file in the
         system as a video or audio source, so in theory you can output /etc/passwd
         to audio or video out and record & decode it on another device.
      Because of all these issues we no longer register those output video nodes.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c95789ec
  8. 24 3月, 2013 2 次提交