1. 24 2月, 2018 1 次提交
  2. 11 12月, 2017 1 次提交
  3. 25 6月, 2017 1 次提交
  4. 06 6月, 2017 1 次提交
  5. 11 4月, 2017 2 次提交
  6. 21 12月, 2016 3 次提交
    • L
      [media] v4l: tvp5150: Don't override output pinmuxing at stream on/off time · 79d6205a
      Laurent Pinchart 提交于
      The s_stream() handler incorrectly writes the whole MISC_CTL register to
      enable or disable the outputs, overriding the output pinmuxing
      configuration. Fix it to only touch the output enable bits.
      
      The CONF_SHARED_PIN register is also written by the same function,
      resulting in muxing the INTREQ signal instead of the VBLK/GPCL signal on
      the INTREQ/GPCL/VBLK pin. As the driver doesn't support interrupts this
      is obviously incorrect, and breaks operation on other devices. Fix it by
      removing the write.
      
      Cc: stable@vger.kernel.org # For Kernel	4.5 and	upper
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      79d6205a
    • L
      [media] v4l: tvp5150: Fix comment regarding output pin muxing · b4b2de38
      Laurent Pinchart 提交于
      The FID/GLCO/VLK/HVLK and INTREQ/GPCL/VBLK pins are muxed differently
      depending on whether the input is an S-Video or composite signal. The
      comment that explains the logic doesn't reflect the code. It appears
      that the comment is incorrect, as disabling the output data bus in
      composite mode makes no sense. Update the comment to match the code.
      
      While at it define macros for the MISC_CTL register bits, the code is
      too confusing with numerical values.
      
      Cc: stable@vger.kernel.org # For Kernel	4.5 and	upper
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      b4b2de38
    • L
      [media] v4l: tvp5150: Reset device at probe time, not in get/set format handlers · aff808e8
      Laurent Pinchart 提交于
      The tvp5150 doesn't support format setting through the subdev pad API
      and thus implements the set format handler as a get format operation.
      The single handler, tvp5150_fill_fmt(), resets the device by calling
      tvp5150_reset(). This causes malfunction as the device can be reset at
      will, possibly from userspace when the subdev userspace API is enabled.
      
      The reset call was added in commit ec2c4f3f ("[media] media:
      tvp5150: Add mbus_fmt callbacks"), probably as an attempt to set the
      device to a known state before detecting the current TV standard.
      However, the get format handler doesn't access the hardware to get the
      TV standard since commit 963ddc63 ("[media] media: tvp5150: Add
      cropping support"). There is thus no need to reset the device when
      getting the format.
      
      However, removing the tvp5150_reset() from the get/set format handlers
      results in the function not being called at all if the bridge driver
      doesn't use the .reset() operation. The operation is nowadays abused and
      shouldn't be used, so shouldn't expect bridge drivers to call it. To
      make sure the device is properly initialize, move the reset call from
      the format handlers to the probe function.
      
      Cc: stable@vger.kernel.org # For Kernel 4.5 and upper
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      aff808e8
  7. 12 12月, 2016 3 次提交
  8. 18 11月, 2016 3 次提交
  9. 25 8月, 2016 1 次提交
  10. 24 8月, 2016 1 次提交
  11. 10 5月, 2016 2 次提交
  12. 23 2月, 2016 1 次提交
  13. 16 2月, 2016 1 次提交
  14. 11 2月, 2016 2 次提交
  15. 10 2月, 2016 2 次提交
  16. 01 2月, 2016 2 次提交
  17. 29 1月, 2016 2 次提交
  18. 26 1月, 2016 2 次提交
  19. 25 1月, 2016 8 次提交
  20. 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