1. 22 10月, 2016 1 次提交
  2. 21 10月, 2016 3 次提交
  3. 09 9月, 2016 1 次提交
  4. 24 8月, 2016 1 次提交
  5. 13 7月, 2016 1 次提交
  6. 08 6月, 2016 1 次提交
  7. 07 5月, 2016 1 次提交
    • H
      [media] v4l2-ioctl.c: improve cropcap compatibility code · 95dd7b7e
      Hans Verkuil 提交于
      - Add a check for the case that both the cropcap and g_selection ops
        are NULL. This shouldn't happen, but I feel happier if the code
        guards against this.
      
      - If g_selection exists, then ignore ENOTTY and ENOIOCTLCMD error
        codes from cropcap. Just assume square pixelaspect ratio in that
        case. This situation can happen if the bridge driver's cropcap op
        calls the corresponding subdev's op. So the cropcap ioctl is set,
        but it might return ENOIOCTLCMD anyway. In the past this would
        just return an error which is wrong.
      
      - Call cropcap first and let g_selection overwrite the bounds and
        defrect. This safeguards against subdev cropcap implementations
        that set those rectangles as well. What g_selection returns has
        priority over what such cropcap implementations return.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      95dd7b7e
  8. 14 4月, 2016 3 次提交
  9. 05 3月, 2016 1 次提交
  10. 27 2月, 2016 1 次提交
  11. 19 2月, 2016 1 次提交
  12. 18 11月, 2015 1 次提交
  13. 21 10月, 2015 3 次提交
  14. 01 10月, 2015 1 次提交
  15. 11 8月, 2015 2 次提交
    • P
      [media] v4l2: move tracepoint generation into separate file · 9deb6ad6
      Philipp Zabel 提交于
      To compile videobuf2-core as a module, the vb2_* tracepoints must be
      exported from the videodev module. Instead of exporting vb2 tracepoint
      symbols from v4l2-ioctl.c, move the tracepoint generation into a separate
      file. This patch fixes the following build error in the modpost stage,
      introduced by 2091f518 ("[media] videobuf2: add trace events"):
      
          ERROR: "__tracepoint_vb2_buf_done" undefined!
          ERROR: "__tracepoint_vb2_dqbuf" undefined!
          ERROR: "__tracepoint_vb2_qbuf" undefined!
          ERROR: "__tracepoint_vb2_buf_queue" undefined!
      Suggested-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      9deb6ad6
    • L
      [media] v4l2-ioctl: Give more information when device_caps are missing · 6d7570c4
      Laura Abbott 提交于
      Currently, the warning for missing device_caps gives a backtrace like so:
      
      [<ffffffff8175c199>] dump_stack+0x45/0x57
      [<ffffffff8109ad5a>] warn_slowpath_common+0x8a/0xc0
      [<ffffffff8109ae8a>] warn_slowpath_null+0x1a/0x20
      [<ffffffffa0237453>] v4l_querycap+0x43/0x80 [videodev]
      [<ffffffffa0237734>] __video_do_ioctl+0x2a4/0x320 [videodev]
      [<ffffffff812207e5>] ? do_last+0x195/0x1210
      [<ffffffffa023a11e>] video_usercopy+0x22e/0x5b0 [videodev]
      [<ffffffffa0237490>] ? v4l_querycap+0x80/0x80 [videodev]
      [<ffffffffa023a4b5>] video_ioctl2+0x15/0x20 [videodev]
      [<ffffffffa0233733>] v4l2_ioctl+0x113/0x150 [videodev]
      [<ffffffff81225798>] do_vfs_ioctl+0x2f8/0x4f0
      [<ffffffff8113b2d4>] ? __audit_syscall_entry+0xb4/0x110
      [<ffffffff81022d7c>] ? do_audit_syscall_entry+0x6c/0x70
      [<ffffffff81225a11>] SyS_ioctl+0x81/0xa0
      [<ffffffff8113b526>] ? __audit_syscall_exit+0x1f6/0x2a0
      [<ffffffff81763549>] system_call_fastpath+0x12/0x17
      
      This indicates that device_caps are missing but doesn't give
      much of a clue which driver is actually at fault. Improve
      the warning output by showing the capabilities and the
      responsible driver.
      Signed-off-by: NLaura Abbott <labbott@fedoraproject.org>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      6d7570c4
  16. 06 6月, 2015 2 次提交
  17. 05 6月, 2015 1 次提交
  18. 30 5月, 2015 2 次提交
  19. 01 5月, 2015 2 次提交
  20. 03 4月, 2015 2 次提交
  21. 03 3月, 2015 1 次提交
  22. 23 12月, 2014 1 次提交
  23. 17 12月, 2014 1 次提交
  24. 02 12月, 2014 1 次提交
  25. 25 11月, 2014 1 次提交
  26. 24 9月, 2014 1 次提交
  27. 03 9月, 2014 1 次提交
    • H
      [media] v4l2-ioctl: fix sparse warnings · 4d1afa51
      Hans Verkuil 提交于
      drivers/media/v4l2-core/v4l2-ioctl.c:1156:53: warning: incorrect type in initializer (different address spaces)
      drivers/media/v4l2-core/v4l2-ioctl.c:1158:42: warning: incorrect type in initializer (different address spaces)
      drivers/media/v4l2-core/v4l2-ioctl.c:1161:34: warning: incorrect type in assignment (different address spaces)
      drivers/media/v4l2-core/v4l2-ioctl.c:1163:35: warning: incorrect type in assignment (different address spaces)
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      4d1afa51
  28. 22 7月, 2014 2 次提交