1. 08 4月, 2015 5 次提交
    • P
      [media] vivid: add support to set CVT, GTF timings · 5190931d
      Prashant Laddha 提交于
      In addition to v4l2_find_dv_timings_cap(), where timings are searched
      against the list of preset timings, the incoming timing from v4l2-ctl
      is checked against CVT and GTF standards. If it confirms to be CVT or
      GTF, it is treated as valid timing and vivid format is updated with
      new timings.
      Signed-off-by: NPrashant Laddha <prladdha@cisco.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      5190931d
    • P
      [media] vivid: add CVT,GTF standards to vivid dv timings caps · 29103668
      Prashant Laddha 提交于
      Currently vivid supports V4L2_DV_BT_STD_DMT and V4L2_DV_BT_STD_CEA861
      discrete video standards. Extending the capability set to allow for
      setting CVT and GTF standards. This change, along with adding the
      support for calculating CVT, GTF timings in v4l2-ctl would extend
      the number of resolutions supported by vivid to almost any custom
      resolution.
      
      Also extending the limits on min and max pixel clock to accommodate
      pixel clock range provided by cvt/gtf for resolutions ranging from
      640x360p50 to 4kx2Kp60.
      Signed-off-by: NPrashant Laddha <prladdha@cisco.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      29103668
    • H
      [media] ov2640: add missing consumer.h include · d3633329
      Hans Verkuil 提交于
      Needed for mips and sh platforms
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      d3633329
    • F
      [media] sur40: fix occasional hard freeze due to buffer queue underrun · c2529908
      Florian Echtler 提交于
      This patch fixes a kernel panic which occurs when buf_list is empty. This can
      happen occasionally when user space is under heavy load (e.g. due to image
      processing on the CPU) and new buffers aren't re-queued fast enough. In that
      case, vb2_start_streaming_called can return true, but when the spinlock
      is taken and sur40_poll attempts to fetch the next buffer from buf_list, the
      list is in fact empty.
      
      This patch needs to be applied on top of the queued one adding V4L2 support
      to the sur40 driver.
      Signed-off-by: NFlorian Echtler <floe@butterbrot.org>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      c2529908
    • D
      [media] cx23885: Always initialise dev->slock spinlock · af7f388e
      David Howells 提交于
      The slock spinlock in the cx23885_dev struct is only initialised if analogue
      video is being used, but is used in other places too, leading to the attached
      lockdep complaint.
      
      Move the lock initialisation so that it is done unconditionally.
      
      INFO: trying to register non-static key.
      the code is fine but needs lockdep annotation.
      turning off the locking correctness validator.
      CPU: 1 PID: 4413 Comm: scandvb Tainted: G        W       4.0.0-rc1-fsdevel+ #25
      Hardware name: System manufacturer System Product Name/P5Q PRO TURBO, BIOS 0701    10/08/2012
       0000000000000000 ffff880129d779d8 ffffffff8162bbdf 0000000000000006
       0000000000000000 ffff880129d77aa8 ffffffff810780e3 0000000000000001
       0000000000000046 0000000000000004 ffffffff81c3f180 0000000000000000
      Call Trace:
       [<ffffffff8162bbdf>] dump_stack+0x4c/0x65
       [<ffffffff810780e3>] __lock_acquire+0x7b5/0x1a0e
       [<ffffffff810799ee>] lock_acquire+0x97/0x10c
       [<ffffffffa006494e>] ? cx23885_buf_queue+0x69/0x142 [cx23885]
       [<ffffffff8102e9bc>] ? amd_set_subcaches+0x19b/0x19b
       [<ffffffff816313b4>] _raw_spin_lock_irqsave+0x36/0x4a
       [<ffffffffa006494e>] ? cx23885_buf_queue+0x69/0x142 [cx23885]
       [<ffffffffa006494e>] cx23885_buf_queue+0x69/0x142 [cx23885]
       [<ffffffffa00662cb>] buffer_queue+0x17/0x19 [cx23885]
       [<ffffffffa00382d5>] __enqueue_in_driver+0x6a/0x6f [videobuf2_core]
       [<ffffffffa0038ead>] vb2_start_streaming+0x37/0x129 [videobuf2_core]
       [<ffffffffa003a6c0>] vb2_internal_streamon+0xc5/0x105 [videobuf2_core]
       [<ffffffffa003b889>] __vb2_init_fileio+0x224/0x286 [videobuf2_core]
       [<ffffffffa003bcc0>] ? vb2_thread_start+0x7b/0x15f [videobuf2_core]
       [<ffffffffa0050182>] ? vb2_dvb_start_feed+0x86/0x86 [videobuf2_dvb]
       [<ffffffffa003bd06>] vb2_thread_start+0xc1/0x15f [videobuf2_core]
       [<ffffffff8150d393>] ? dmx_section_feed_start_filtering+0x2f/0x14f
       [<ffffffffa0050157>] vb2_dvb_start_feed+0x5b/0x86 [videobuf2_dvb]
       [<ffffffff8150d461>] dmx_section_feed_start_filtering+0xfd/0x14f
       [<ffffffff8150afc7>] dvb_dmxdev_filter_start+0x23f/0x315
       [<ffffffff8150b6ad>] dvb_demux_do_ioctl+0x1fb/0x556
       [<ffffffff81509e94>] dvb_usercopy+0xb4/0x11c
       [<ffffffff8150b4b2>] ? dvb_dmxdev_ts_callback+0xd0/0xd0
       [<ffffffff8150a11a>] dvb_demux_ioctl+0x10/0x14
       [<ffffffff81144ac4>] do_vfs_ioctl+0x3c1/0x474
       [<ffffffff8126f181>] ? file_has_perm+0x5b/0x7f
       [<ffffffff810bf6ca>] ? __audit_syscall_entry+0xbc/0xde
       [<ffffffff81144bcc>] SyS_ioctl+0x55/0x7a
       [<ffffffff81631d52>] system_call_fastpath+0x12/0x17
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      af7f388e
  2. 07 4月, 2015 4 次提交
  3. 03 4月, 2015 31 次提交