1. 20 9月, 2016 1 次提交
  2. 09 7月, 2016 2 次提交
  3. 18 12月, 2015 1 次提交
    • H
      [media] vb2: drop v4l2_format argument from queue_setup · df9ecb0c
      Hans Verkuil 提交于
      The queue_setup callback has a void pointer that is just for V4L2
      and is the pointer to the v4l2_format struct that was passed to
      VIDIOC_CREATE_BUFS. The idea was that drivers would use the information
      from that struct to buffers suitable for the requested format.
      
      After the vb2 split series this pointer is now a void pointer,
      which is ugly, and the reality is that all existing drivers will
      effectively just look at the sizeimage field of v4l2_format.
      
      To make this more generic the queue_setup callback is changed:
      the void pointer is dropped, instead if the *num_planes argument
      is 0, then use the current format size, if it is non-zero, then
      it contains the number of requested planes and the sizes array
      contains the requested sizes. If either is unsupported, then return
      -EINVAL, otherwise use the requested size(s).
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      df9ecb0c
  4. 21 11月, 2015 1 次提交
  5. 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
  6. 11 11月, 2015 1 次提交
  7. 21 10月, 2015 1 次提交
  8. 01 10月, 2015 1 次提交
  9. 11 6月, 2015 1 次提交
  10. 01 5月, 2015 1 次提交
  11. 08 4月, 2015 1 次提交
  12. 17 12月, 2014 2 次提交
  13. 03 11月, 2014 10 次提交
  14. 26 9月, 2014 1 次提交
  15. 17 10月, 2013 3 次提交
  16. 21 6月, 2013 2 次提交
  17. 09 6月, 2013 1 次提交
  18. 22 4月, 2013 1 次提交
    • A
      [media] cx88: Fix unsafe locking in suspend-resume · 5ddfbbb9
      Alexey Khoroshilov 提交于
      Legacy PCI suspend-resume handlers are called with interrupts enabled.
      
      But cx8800_suspend/cx8800_resume and
      cx8802_suspend_common/cx8802_resume_common use spin_lock/spin_unlock
      functions to acquire dev->slock, while the same lock is acquired in the
      corresponding irq-handlers: cx8800_irq and cx8802_irq.
      
      That means a deadlock is possible if an interrupt happens while suspend
      or resume owns the lock. The patch replaces spin_lock/spin_unlock with
      spin_lock_irqsave/spin_unlock_irqrestore.
      
      Found by Linux Driver Verification project (linuxtesting.org).
      
      [mchehab@redhat.com: Fix CodingStyle]
      Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      5ddfbbb9
  19. 24 3月, 2013 4 次提交
  20. 04 1月, 2013 1 次提交
    • G
      Drivers: media: remove __dev* attributes. · 4c62e976
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4c62e976
  21. 07 10月, 2012 1 次提交
  22. 02 10月, 2012 1 次提交
  23. 16 8月, 2012 1 次提交