1. 05 11月, 2007 2 次提交
    • T
      V4L/DVB (6392): bttv: Update initial image size when set via V4L1 VIDIOCMCAPTURE · a8ab68bf
      Trent Piepho 提交于
      The V4L1 spec says that the image size should be with with VIDIOCSWIN before
      requesting buffers with VIDIOCGMBUF and capturing into them with
      VIDIOCMCAPTURE.
      
      But it seems that many apps don't do this.  They set the size using the fields
      in the VIDIOCMCAPTURE ioctl.  The driver doesn't know what size to capture
      until it actually starts to capture.  In particular, it doesn't know what size
      to capture until it has already mmap the captured buffers.  Which is quite
      stupid.  Why V4L1 has size and format fields for VIDIOCMCAPTURE I have no idea.
      
      Many drivers don't support this, including those using v4l1-compat.
      
      The bttv does, which is probably the only reason such broken software is so
      prevalent.
      
      But, the driver doesn't adjust its idea of what size is being captured when it
      is set this way.  If you try to query the driver's current setting with
      v4l2-ctl, it won't be correct.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      a8ab68bf
    • T
      V4L/DVB (6391): bttv: SPICT ioctl doesn't work with vlc · 35378434
      Trent Piepho 提交于
      The bttv driver instists that the depth specified in the call to VIDIOCSPICT
      match the pixel format specified in the same call.
      
      vlc doesn't set the depth field, which makes the SPICT ioctl always fail.
      
      The V4L1 standard is not clear on how most operation are supposed to work, and
      this is no exception.  The depth field would appear to be entirely redundant,
      as the pixel format specifies a specific depth.  It could be that this field
      was only meant for output from the *G*PICT ioctl and should be ignored in
      *S*PICT.  This is in fact what the v4l1-compat wrapper does.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      35378434
  2. 02 11月, 2007 1 次提交
  3. 22 10月, 2007 1 次提交
  4. 20 10月, 2007 2 次提交
  5. 14 10月, 2007 1 次提交
  6. 11 10月, 2007 1 次提交
  7. 10 10月, 2007 6 次提交
  8. 31 7月, 2007 1 次提交
    • T
      V4L/DVB (5899): bttv: Fix Viewcast Osprey 440 support · cf784d55
      Trent Piepho 提交于
      Various gpio and mux settings for the Osprey 440 weren't correct.  Fix them
      and provide some documentation about how the gpios work.
      
      The osprey eeprom routine wasn't run for the 440, add it.  It was also crap,
      re-written to be better.
      
      Add the Osprey 440 to the Bt878 ALSA driver's whitelist.  Currently the sample
      rate is fixed at 32kHz, as the driver doesn't support different rates for
      digital input mode, though the card can select the rate from 32, 44.1, or 48
      kHz via gpio.
      
      Setting the audio gain via ALSA isn't supported yet; a userspace tool that
      programs the X9221 via i2c-dev must be used.
      
      The Bt878 digital audio format isn't programmed correctly for the CS5331A ADC
      used, resulting in extremely garbled sound.  That is fixed in a followup
      patch.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      cf784d55
  9. 21 7月, 2007 1 次提交
  10. 19 7月, 2007 7 次提交
  11. 04 7月, 2007 1 次提交
    • T
      V4L/DVB (5808): Bttv: fix v4l1 breaking the driver · 333408f2
      Trent Piepho 提交于
      If one uses a V4L *one* application, such as vlc or mplayer's v4l driver, as
      the first user after the driver is loaded, the driver wedges itself and will
      never capture properly.  Even if one uses a V4L2 application later, it still
      won't work.
      
      If one uses a V4L *two* application first, such as tvtime or mplayer's v4l2
      driver, then the driver will be ok.  One can then run a V4L1 application, and
      it will work.
      
      It turns out the problem is with norm changing and the crop support that was
      added in 2.6.21.  The driver defaults to PAL, and keeps the last norm it was
      set too across opens.  If one changes the norm via V4L1, the cropping
      parameters are not reset like they should be, and they'll remain broken across
      device opens.
      
      This patch removes the direct setting of btv->tvnorm in the V4L1 ioctl
      VIDIOCSCHAN handler.  The norm is set via the existing call to set_input(),
      which calls set_tvnorm(), which will reset the cropping values now that it is
      able to detect the norm change.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      333408f2
  12. 28 4月, 2007 6 次提交
  13. 21 2月, 2007 7 次提交
  14. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  15. 13 2月, 2007 1 次提交
  16. 28 12月, 2006 1 次提交