1. 21 10月, 2016 3 次提交
  2. 10 5月, 2016 1 次提交
  3. 07 5月, 2016 1 次提交
    • S
      [media] em28xx: add support for PLEX PX-BCUD (ISDB-S) · ab4d1452
      Satoshi Nagahama 提交于
      PX-BCUD has the following components:
         USB interface: Empia EM28178
         Demodulator: Toshiba TC90532 (works by code for TC90522)
         Tuner: Next version of Sharp QM1D1C0042
      
      em28xx_dvb_init(): add init code for PLEX PX-BCUD with calling
      px_bcud_init() that does things like pin configuration.
      
      qm1d1c0042_init(): support the next version of QM1D1C0042, change to
      choose an appropriate array of initial registers by reading chip id.
      
      [mchehab@osg.samsung.com: fold a fixup patch and fix checkpatch.pl
       errors/warnings, where applicable]
      Signed-off-by: NSatoshi Nagahama <sattnag@aim.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      ab4d1452
  4. 05 3月, 2016 1 次提交
    • M
      [media] em28xx: fix Terratec Grabby AC97 codec detection · 0899f62f
      Matthieu Rogez 提交于
      EMP202 chip inside Terratec Grabby (hw rev 2) seems to require some time
      before accessing reliably its registers. Otherwise it returns some values
      previously put on the I2C bus.
      
      To account for that period, we delay card setup until we have a proof that
      accessing AC97 registers is reliable. We get this proof by polling
      AC97_RESET until the expected value is read. We also check that unrelated
      registers don't return the same value. This second check handles the case
      where the expected value is constantly returned no matter which register
      is accessed.
      Signed-off-by: NMatthieu Rogez <matthieu.rogez@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      0899f62f
  5. 04 3月, 2016 2 次提交
  6. 23 2月, 2016 2 次提交
  7. 16 2月, 2016 1 次提交
  8. 11 2月, 2016 1 次提交
  9. 01 2月, 2016 4 次提交
  10. 19 11月, 2015 2 次提交
  11. 17 11月, 2015 2 次提交
    • 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
    • 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
  12. 03 3月, 2015 1 次提交
  13. 05 12月, 2014 1 次提交
  14. 25 11月, 2014 1 次提交
  15. 03 11月, 2014 1 次提交
  16. 29 9月, 2014 1 次提交
  17. 26 9月, 2014 1 次提交
  18. 24 9月, 2014 2 次提交
    • F
      [media] em28xx: simplify usb audio class handling · c5874208
      Frank Schaefer 提交于
      As far as we know devices can either have audio class or vendor class
      usb interfaces but not both at the same time. Even if both interface
      types could be provided by devices at the same time, the current code is
      totally broken for that case.
      
      So clean up and simplify the usb audio class handling by replacing
      fields "has_audio_class" (device has usb audio class compliant
      interface) and "has_alsa_audio" (device has vendor audio interface) in
      struct em28xx with a single enum em28xx_usb_audio_type.
      Signed-off-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      c5874208
    • F
      [media] em28xx: check if a device has audio earlier" · fb91bde9
      Frank Schaefer 提交于
      GIT_AUTHOR_DATE=1409603039
      This reverts
      
      commit b99f0aad
      Author: Mauro Carvalho Chehab <m.chehab@samsung.com>
      
          [media] em28xx: check if a device has audio earlier
      
          Better to split chipset detection from the audio setup. So, move the
          detection code to em28xx_init_dev().
      
      It broke analog audio of the Hauppauge winTV HVR 900 and very likely many other
      em28xx devices.
      
      Background:
      The local variable has_audio in em28xx_usb_probe() describes if the currently
      probed _usb_interface_ has an audio endpoint, while dev->audio_mode.has_audio
      means that the _device_ as a whole provides analog audio.
      Hence it is wrong to set dev->audio_mode.has_audio = has_audio in em28xx_usb_probe().
      As result, audio support is no longer detected and configured on devices which
      have the audio endpoint on a separate interface, because em28xx_audio_setup()
      bails out immediately at the beginning.
      
      Revert the faulty commit to restore the old audio detection procedure, which checks
      the chip configuration register to determine if the device has analog audio.
      
      Cc: <stable@vger.kernel.org>	# 3.14 to 3.16
      Reported-by: NOravecz Csaba <oravecz@nytud.mta.hu>
      Tested-by: NOravecz Csaba <oravecz@nytud.mta.hu>
      Signed-off-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      fb91bde9
  19. 03 9月, 2014 1 次提交
  20. 26 7月, 2014 1 次提交
  21. 05 7月, 2014 1 次提交
  22. 24 5月, 2014 4 次提交
  23. 23 5月, 2014 1 次提交
  24. 23 4月, 2014 1 次提交
  25. 11 3月, 2014 3 次提交