1. 06 3月, 2018 1 次提交
  2. 05 1月, 2018 1 次提交
  3. 27 10月, 2017 1 次提交
  4. 18 11月, 2016 1 次提交
  5. 23 9月, 2016 1 次提交
    • M
      [media] cx23885: Fix some smatch warnings · e837d85c
      Mauro Carvalho Chehab 提交于
      Make sure that it won't go past the config buffers
      
      	drivers/media/pci/cx23885/cx23885-dvb.c:1733 dvb_register() warn: buffer overflow 'netup_xc5000_config' 2 <= s32max
      	drivers/media/pci/cx23885/cx23885-dvb.c:1745 dvb_register() warn: buffer overflow 'netup_stv0367_config' 2 <= s32max
      	drivers/media/pci/cx23885/cx23885-dvb.c:1752 dvb_register() warn: buffer overflow 'netup_xc5000_config' 2 <= s32max
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      e837d85c
  6. 25 8月, 2016 1 次提交
  7. 13 7月, 2016 1 次提交
  8. 09 7月, 2016 1 次提交
  9. 18 12月, 2015 2 次提交
  10. 17 11月, 2015 1 次提交
    • M
      [media] include/media: move driver interface headers to a separate dir · d647f0b7
      Mauro Carvalho Chehab 提交于
      Let's not mix headers used by the core with those headers that
      are needed by some driver-specific interface header.
      
      The headers used on drivers were manually moved using:
          mkdir include/media/drv-intf/
          git mv include/media/cx2341x.h include/media/cx25840.h \
      	include/media/exynos-fimc.h include/media/msp3400.h \
      	include/media/s3c_camif.h include/media/saa7146.h \
      	include/media/saa7146_vv.h  include/media/sh_mobile_ceu.h \
      	include/media/sh_mobile_csi2.h include/media/sh_vou.h \
      	include/media/si476x.h include/media/soc_mediabus.h \
      	include/media/tea575x.h include/media/drv-intf/
      
      And the references for those headers were corrected using:
      
          MAIN_DIR="media/"
          PREV_DIR="media/"
          DIRS="drv-intf/"
      
          echo "Checking affected files" >&2
          for i in $DIRS; do
      	for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do
      		 n=`basename $j`
      		git grep -l $n
      	done
          done|sort|uniq >files && (
      	echo "Handling files..." >&2;
      	echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\";
      	(
      		cd include/$MAIN_DIR;
      		for j in $DIRS; do
      			for i in $(ls $j); do
      				echo "perl -ne 's,(include [\\\"\\<])$PREV_DIR($i)([\\\"\\>]),\1$MAIN_DIR$j\2\3,; print \$_' |\\";
      			done;
      		done;
      		echo "cat > a && mv a \$i; done";
      	);
      	echo "Handling documentation..." >&2;
      	echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\";
      	(
      		cd include/$MAIN_DIR;
      		for j in $DIRS; do
      			for i in $(ls $j); do
      				echo "  perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\";
      			done;
      		done;
      		echo "cat > a && mv a \$i; done"
      	);
          ) >script && . ./script
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      d647f0b7
  11. 01 10月, 2015 1 次提交
  12. 10 6月, 2015 1 次提交
    • M
      [media] dvb: Get rid of typedev usage for enums · 0df289a2
      Mauro Carvalho Chehab 提交于
      The DVB API was originally defined using typedefs. This is against
      Kernel CodingStyle, and there's no good usage here. While we can't
      remove its usage on userspace, we can avoid its usage in Kernelspace.
      
      So, let's do it.
      
      This patch was generated by this shell script:
      
      	for j in $(grep typedef include/uapi/linux/dvb/frontend.h |cut -d' ' -f 3); do for i in $(find drivers/media -name '*.[ch]' -type f) $(find drivers/staging/media -name '*.[ch]' -type f); do sed "s,${j}_t,enum $j," <$i >a && mv a $i; done; done
      
      While here, make CodingStyle fixes on the affected lines.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de> # for drivers/media/firewire/*
      0df289a2
  13. 06 6月, 2015 1 次提交
  14. 22 1月, 2015 1 次提交
  15. 30 12月, 2014 1 次提交
  16. 25 11月, 2014 1 次提交
  17. 15 11月, 2014 1 次提交
  18. 11 11月, 2014 2 次提交
  19. 04 11月, 2014 1 次提交
  20. 03 11月, 2014 1 次提交
  21. 30 10月, 2014 2 次提交
  22. 24 9月, 2014 3 次提交
  23. 22 9月, 2014 1 次提交
    • H
      [media] cx23885: fix size helper functions · 1c5eaa23
      Hans Verkuil 提交于
      The norm_swidth function was unused and is dropped. It's not clear
      what the purpose of that function was.
      
      The norm_maxh function was changed so it tests for 60 Hz standards
      rather than for 50 Hz standards. The is the preferred order.
      
      The norm_maxw function was poorly written and used: it gives the maximum
      allowed line width for the given standard. For 60 Hz that's 720, but
      for 50 Hz that's 768 which allows for 768x576 which gives you square
      pixels. For 60 Hz formats it is 640x480 that gives square pixels, so
      there is no need to go beyond 720.
      
      The initial width was set using norm_maxh(), which was wrong. Just set
      to 720, that's what you normally use. Since the initial standard was
      NTSC anyway the initial width was always 720 anyway.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      1c5eaa23
  24. 08 9月, 2014 2 次提交
    • H
      [media] cx23885: remove btcx-risc dependency · 4d63a25c
      Hans Verkuil 提交于
      It's just as easy to do it in the driver. This dependency only uses a
      fraction of the btcx-risc module and doing it directly in the driver
      adds only a few lines. The btcx-risc module is really meant for the
      bttv driver, not for other drivers.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      4d63a25c
    • H
      [media] cx23885: convert to vb2 · 453afdd9
      Hans Verkuil 提交于
      As usual, this patch is very large due to the fact that half a vb2 conversion
      isn't possible. And since this affects 417, alsa, core, dvb, vbi and video the
      changes are all over.
      
      What made this more difficult was the peculiar way the risc program was setup.
      The driver allowed for running out of buffers in which case the DMA would stop
      and restart when the next buffer was queued. There was also a complicated
      timeout system for when buffers weren't filled. This was replaced by a much
      simpler scheme where there is always one buffer around and the DMA will just
      cycle that buffer until a new buffer is queued. In that case the previous
      buffer will be chained to the new buffer. An interrupt is generated at the
      start of the new buffer telling the driver that the previous buffer can be
      passed on to userspace.
      
      Much simpler and more robust. The old code seems to be copied from the
      cx88 driver. But it didn't fit the vb2 ops very well and replacing it with
      the new scheme made the code easier to understand. Not to mention that this
      patch removes 600 lines of code.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      453afdd9
  25. 03 9月, 2014 10 次提交