1. 13 2月, 2019 1 次提交
    • H
      media: adv*/tc358743/ths8200: fill in min width/height/pixelclock · b945ddac
      Hans Verkuil 提交于
      [ Upstream commit 2912289a518077ddb8214e05336700148e97e235 ]
      
      The v4l2_dv_timings_cap struct is used to do sanity checks when setting and
      enumerating DV timings, ensuring that only valid timings as per the HW
      capabilities are allowed.
      
      However, many drivers just filled in 0 for the minimum width, height or
      pixelclock frequency. This can cause timings with e.g. 0 as width and height
      to be accepted, which will in turn lead to a potential division by zero.
      
      Fill in proper values are minimum boundaries. 640x350 was chosen since it is
      the smallest resolution in v4l2-dv-timings.h. Same for 13 MHz as the lowest
      pixelclock frequency (it's slightly below the minimum of 13.5 MHz in the
      v4l2-dv-timings.h header).
      Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      Signed-off-by: NSasha Levin <sashal@kernel.org>
      b945ddac
  2. 14 11月, 2018 2 次提交
  3. 25 7月, 2018 1 次提交
  4. 28 6月, 2018 1 次提交
  5. 22 3月, 2018 1 次提交
  6. 15 2月, 2018 1 次提交
  7. 08 12月, 2017 1 次提交
  8. 23 9月, 2017 2 次提交
  9. 09 8月, 2017 2 次提交
  10. 06 6月, 2017 1 次提交
  11. 06 4月, 2017 1 次提交
  12. 31 1月, 2017 1 次提交
  13. 29 11月, 2016 1 次提交
  14. 17 11月, 2016 1 次提交
  15. 25 10月, 2016 1 次提交
  16. 13 7月, 2016 1 次提交
    • H
      [media] adv7604/adv7842: fix quantization range handling · fd74246d
      Hans Verkuil 提交于
      Fix a number of bugs that appeared when support for mediabus formats was
      added:
      
      - Support for V4L2_DV_RGB_RANGE_FULL/LIMITED should only be enabled
        for HDMI RGB formats, not for YCbCr formats. Since, as the name
        says, this setting is for RGB only. So read the InfoFrame to check
        the format.
      
      - the quantization range for the pixelport depends on whether the
        mediabus code is RGB or not: if it is RGB, then produce full range
        RGB values, otherwise produce limited range YCbCr values.
      
        This means that the op_656_range and alt_data_sat fields of the
        platform data are no longer used and these will be removed in a
        following patch.
      
      - when setting up a new format the RGB quantization range settings
        were never updated. Do so, since this depends on the format.
      
      - fix the log_status output which was confusing and incorrect.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      fd74246d
  17. 09 7月, 2016 2 次提交
  18. 28 6月, 2016 2 次提交
  19. 08 6月, 2016 1 次提交
  20. 25 4月, 2016 1 次提交
  21. 03 3月, 2016 1 次提交
  22. 16 2月, 2016 1 次提交
  23. 10 2月, 2016 2 次提交
  24. 01 2月, 2016 2 次提交
  25. 11 1月, 2016 2 次提交
  26. 03 12月, 2015 1 次提交
  27. 17 11月, 2015 1 次提交
    • M
      [media] include/media: split I2C headers from V4L2 core · b5dcee22
      Mauro Carvalho Chehab 提交于
      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: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      b5dcee22
  28. 12 8月, 2015 1 次提交
  29. 11 8月, 2015 2 次提交
  30. 17 7月, 2015 2 次提交