1. 14 5月, 2014 1 次提交
    • H
      [media] saa7134: fix regression with tvtime · 17e7f1b5
      Hans Verkuil 提交于
      This solves this bug:
      
      https://bugzilla.kernel.org/show_bug.cgi?id=73361
      
      The problem is that when you quit tvtime it calls STREAMOFF, but then it queues a
      bunch of buffers for no good reason before closing the file descriptor.
      
      In the past closing the fd would free the vb queue since that was part of the file
      handle struct. Since that was moved to the global struct that no longer happened.
      
      This wouldn't be a problem, but the extra QBUF calls that tvtime does meant that
      the buffer list in videobuf (q->stream) contained buffers, so REQBUFS would fail
      with -EBUSY.
      
      The solution is to init the list head explicitly when releasing the file
      descriptor and to not free the video resource when calling streamoff.
      
      The real fix will hopefully go into kernel 3.16 when the vb2 conversion is
      merged. Basically the saa7134 driver with the old videobuf is so full of holes it
      ain't funny anymore, so consider this a band-aid for kernels 3.14 and 15.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Cc: stable@vger.kernel.org      # for v3.14 and up
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      17e7f1b5
  2. 07 1月, 2014 10 次提交
  3. 14 10月, 2013 1 次提交
  4. 29 6月, 2013 1 次提交
    • E
      [media] saa7134: Fix sparse warnings by adding __user annotation · 12d866ec
      Emil Goode 提交于
      Adding a __user annotation fixes the following sparse warnings.
      drivers/media/pci/saa7134/saa7134-video.c:1578:45: warning:
              incorrect type in initializer (different address spaces)
              drivers/media/pci/saa7134/saa7134-video.c:1578:45:
              expected struct v4l2_clip *clips
              drivers/media/pci/saa7134/saa7134-video.c:1578:45:
              got struct v4l2_clip [noderef] <asn:1>*clips
      drivers/media/pci/saa7134/saa7134-video.c:1589:26: warning:
              incorrect type in assignment (different address spaces)
              drivers/media/pci/saa7134/saa7134-video.c:1589:26:
              expected struct v4l2_clip [noderef] <asn:1>*clips
              drivers/media/pci/saa7134/saa7134-video.c:1589:26:
              got struct v4l2_clip *clips
      Signed-off-by: NEmil Goode <emilgoode@gmail.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      12d866ec
  5. 17 6月, 2013 8 次提交
  6. 15 4月, 2013 8 次提交
  7. 24 3月, 2013 4 次提交
  8. 28 12月, 2012 1 次提交
  9. 28 10月, 2012 1 次提交
    • M
      [media] saa7134,saa7164: warning: comparison of unsigned fixes · 3eeba4a7
      Mauro Carvalho Chehab 提交于
      drivers/media/pci/saa7134/saa7134-core.c:947:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
      drivers/media/pci/saa7164/saa7164-core.c:413:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      drivers/media/pci/saa7164/saa7164-core.c:489:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      drivers/media/pci/saa7134/saa7134-video.c:2514:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      3eeba4a7
  10. 07 10月, 2012 1 次提交
  11. 26 9月, 2012 3 次提交
  12. 16 8月, 2012 1 次提交