1. 04 May, 2018 1 commit
  2. 04 Jan, 2018 1 commit
  3. 11 Dec, 2017 1 commit
  4. 27 Jan, 2017 1 commit
    • Sakari Ailus's avatar
      [media] media: Drop FSF's postal address from the source code files · bcb63314
      Sakari Ailus authored
      Drop the FSF's postal address from the source code files that typically
      contain mostly the license text. Of the 628 removed instances, 578 are
      outdated.
      
      The patch has been created with the following command without manual edits:
      
      git grep -l "675 Mass Ave\|59 Temple Place\|51 Franklin St" -- \
      	drivers/media/ include/media|while read i; do i=$i perl -e '
      open(F,"< $ENV{i}");
      $a=join("", <F>);
      $a =~ s/[ \t]*\*\n.*You should.*\n.*along with.*\n.*(\n.*USA.*$)?\n//m
      	&& $a =~ s/(^.*)Or, (point your browser to) /$1To obtain the license, $2\n$1/m;
      close(F);
      open(F, "> $ENV{i}");
      print F $a;
      close(F);'; done
      Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
      bcb63314
  5. 12 Jul, 2016 1 commit
  6. 06 May, 2016 1 commit
  7. 01 Feb, 2016 1 commit
  8. 17 Nov, 2015 1 commit
    • Mauro Carvalho Chehab's avatar
      [media] include/media: split I2C headers from V4L2 core · b5dcee22
      Mauro Carvalho Chehab authored
      Currently, include/media is messy, as it contains both the V4L2 core
      headers and some driver-specific headers on the same place. That makes
      harder to identify what core headers should be documented and what
      headers belong to I2C drivers that are included only by bridge/main
      drivers that would require the functions provided by them.
      
      Let's move those i2c specific files to its own subdirectory.
      
      The files to move were produced via the following script:
      	mkdir include/media/i2c
      	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
      	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/*/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
      	for i in include/media/*.h; do n=`basename $i`;  (for j in $(git grep -l $n); do dirname $j; done)|sort|uniq|grep -ve '^.$' > list; num=$(wc -l list|cut -d' ' -f1); if [ $num == 1 ]; then if [ "`grep i2c list`" != "" ]; then git mv $i include/media/i2c; fi; fi; done
      
      And the references corrected via this script:
          MAIN_DIR="media/"
          PREV_DIR="media/"
          DIRS="i2c/"
      
          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
      
      Merged Sakari Ailus patch that moves smiapp.h to include/media/i2c.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      b5dcee22
  9. 11 Aug, 2015 1 commit
  10. 01 May, 2015 1 commit
  11. 14 Nov, 2014 1 commit
  12. 24 May, 2014 1 commit
  13. 09 Dec, 2013 1 commit
  14. 29 Nov, 2013 1 commit
  15. 18 Aug, 2013 4 commits
  16. 17 Jun, 2013 3 commits
  17. 27 May, 2013 1 commit
  18. 21 May, 2013 5 commits
  19. 24 Mar, 2013 4 commits
  20. 01 Oct, 2012 1 commit
  21. 15 Aug, 2012 1 commit
  22. 08 Mar, 2012 1 commit
  23. 12 Jan, 2012 1 commit
  24. 08 Oct, 2011 2 commits
    • Mauro Carvalho Chehab's avatar
      [media] saa7115: Trust that V4L2 core will fill the mask · e41567a6
      Mauro Carvalho Chehab authored
      Instead of using V4L2_STD_ALL when no standard is detected,
      trust that the maximum allowed standards are already filled by
      the V4L2 core. It is better this way, as the bridge and/or the audio
      decoder may have some extra restrictions to some video standards.
      
      This also allow other devices like audio and tuners to contribute to
      standards detection, when they support such feature.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      e41567a6
    • Mauro Carvalho Chehab's avatar
      [media] saa7115: Fix standards detection · b728666b
      Mauro Carvalho Chehab authored
      There are several bugs at saa7115 standards detection:
      
      After the fix, the driver is returning the proper standards,
      as tested with 3 different broadcast sources:
      
      On an invalid channel (without any TV signal):
      [ 4394.931630] saa7115 15-0021: Status byte 2 (0x1f)=0xe0
      [ 4394.931635] saa7115 15-0021: detected std mask = 00ffffff
      
      With a PAL/M signal:
      [ 4410.836855] saa7115 15-0021: Status byte 2 (0x1f)=0xb1
      [ 4410.837727] saa7115 15-0021: Status byte 1 (0x1e)=0x82
      [ 4410.837731] saa7115 15-0021: detected std mask = 00000900
      
      With a NTSC/M signal:
      [ 4422.383893] saa7115 15-0021: Status byte 2 (0x1f)=0xb1
      [ 4422.384768] saa7115 15-0021: Status byte 1 (0x1e)=0x81
      [ 4422.384772] saa7115 15-0021: detected std mask = 0000b000
      
      Tests were done with a WinTV PVR USB2 Model 29xx card.
      Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      b728666b
  25. 21 Sep, 2011 2 commits
  26. 27 Jul, 2011 1 commit
    • Hans Verkuil's avatar
      [media] v4l2-ctrls: fix and improve volatile control handling · ddac5c10
      Hans Verkuil authored
      If you have a cluster of controls that is a mix of volatile and non-volatile
      controls, then requesting the value of the volatile control would fail if the
      master control of that cluster was non-volatile. The code assumed that the
      volatile state of the master control was the same for all other controls in
      the cluster.
      
      This is now fixed.
      
      In addition, it was clear from bugs in some drivers that it was confusing that
      the ctrl->cur union had to be used in g_volatile_ctrl. Several drivers used the
      'new' values instead. The framework was changed so that drivers now set the new
      value instead of the current value.
      
      This has an additional benefit as well: the volatile values are now only stored
      in the 'new' value, leaving the current value alone. This is useful for
      autofoo/foo control clusters where you want to have a 'foo' control act like a
      volatile control if 'autofoo' is on, but as a normal control when it is off.
      
      Since with this change the cur value is no longer overwritten when g_volatile_ctrl
      is called, you can use it to remember the original 'foo' value. For example:
      
      autofoo = 0, foo = 10 and foo is non-volatile.
      
      Now autofoo is set to 1 and foo is marked volatile. Retrieving the foo value
      will get the volatile value. Set autofoo back to 0, which marks foo as non-
      volatile again, and retrieving foo will get the old current value of 10.
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      ddac5c10