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. 23 4月, 2014 1 次提交
  3. 17 4月, 2014 1 次提交
    • D
      [media] bttv: Add support for PCI-8604PW · c8204930
      Daniel Glöckner 提交于
      This patch adds support for the PCI-8604PW card equipped with four 878A.
      It is unknown who the manufacturer of this card is and no drivers were
      available during development of the patch. According to images found
      online, the card is originally sold with Linux DVR software.
      
      A CPLD on the card prevents the 878A from requesting access to the
      bus until an initialization sequence has been issued via GPIOs. The
      implemented sequence uses the minimum number of GPIOs needed to
      successfully unlock bus access. As there are many more GPIOs connected
      to the CPLD, it is very likely that some of the others have an influence
      on the bus arbitration scheduling. This should be investigated further
      in case of performance issues.
      
      The tested card contains an EEPROM on one of the 878A, but it is
      completely empty (i.e. contains only 0xff), so it is not possible
      to detect the card.
      Signed-off-by: NDaniel Glöckner <daniel-gl@gmx.net>
      Tested-by: NRobert Longbottom <rongblor@googlemail.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      c8204930
  4. 29 3月, 2014 1 次提交
  5. 12 3月, 2014 3 次提交
  6. 11 3月, 2014 3 次提交
  7. 14 2月, 2014 1 次提交
  8. 05 2月, 2014 1 次提交
  9. 04 2月, 2014 2 次提交
  10. 07 1月, 2014 14 次提交
  11. 11 12月, 2013 3 次提交
  12. 10 12月, 2013 1 次提交
  13. 30 11月, 2013 3 次提交
  14. 08 11月, 2013 4 次提交
    • M
      [media] cimax2: Don't use dynamic static allocation · 278ba83a
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
              drivers/media/pci/cx23885/cimax2.c:149:1: warning: 'netup_write_i2c' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer. Considering that I2C
      transfers are generally limited, and that devices used on USB has a
      max data length of 64 bytes for the control URBs.
      So, it seem safe to use 64 bytes as the hard limit for all those devices.
      On most cases, the limit is a way lower than that, but this limit
      is small enough to not affect the Kernel stack, and it is a no brain
      limit, as using smaller ones would require to either carefully each
      driver or to take a look on each datasheet.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      278ba83a
    • M
      [media] av7110_hw: Don't use dynamic static allocation · 5bf30b3b
      Mauro Carvalho Chehab 提交于
      Dynamic static allocation is evil, as Kernel stack is too low, and
      compilation complains about it on some archs:
      	drivers/media/pci/ttpci/av7110_hw.c:510:1: warning: 'av7110_fw_cmd' uses dynamic stack allocation [enabled by default]
      Instead, let's enforce a limit for the buffer.
      In the specific case of this driver, the maximum fw command size
      is 6 + 2, as checked using:
      	$ git grep -A1 av7110_fw_cmd drivers/media/pci/ttpci/
      So, use 8 for the buffer size.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      5bf30b3b
    • M
      [media] cx18: struct i2c_client is too big for stack · 1d212cf0
      Mauro Carvalho Chehab 提交于
      	drivers/media/pci/cx18/cx18-driver.c: In function 'cx18_read_eeprom':
      	drivers/media/pci/cx18/cx18-driver.c:357:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
      That happens because the routine allocates 256 bytes for an eeprom buffer, plus
      the size of struct i2c_client, with is big.
      Change the logic to dynamically allocate/deallocate space for struct i2c_client,
      instead of  using the stack.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      1d212cf0
    • M
      [media] zoran: don't build it on alpha · 51d8e7fb
      Mauro Carvalho Chehab 提交于
      This driver uses virt_to_bus() with is deprecated on Alpha:
      	drivers/media/pci/zoran/zoran_device.c: In function 'zr36057_set_vfe':
      	drivers/media/pci/zoran/zoran_device.c:451:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_device.c:453:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_device.c: In function 'zr36057_set_jpg':
      	drivers/media/pci/zoran/zoran_device.c:796:2: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c: In function 'v4l_fbuffer_alloc':
      	drivers/media/pci/zoran/zoran_driver.c:241:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c:245:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c: In function 'jpg_fbuffer_alloc':
      	drivers/media/pci/zoran/zoran_driver.c:334:3: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c:347:5: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      	drivers/media/pci/zoran/zoran_driver.c:366:6: warning: 'virt_to_bus' is deprecated (declared at /devel/v4l/ktest-build/arch/alpha/include/asm/io.h:114) [-Wdeprecated-declarations]
      As we're not even sure if it works on Alpha, better to just disable its compilation there.
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      Reviewed-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      51d8e7fb
  15. 31 10月, 2013 1 次提交