1. 12 8月, 2010 1 次提交
  2. 03 8月, 2010 1 次提交
  3. 01 6月, 2010 1 次提交
    • J
      V4L/DVB: FusionHDTV: Use quick reads for I2C IR device probing · 806b07c2
      Jean Delvare 提交于
      IR support on FusionHDTV cards is broken since kernel 2.6.31. One side
      effect of the switch to the standard binding model for IR I2C devices
      was to let i2c-core do the probing instead of the ir-kbd-i2c driver.
      There is a slight difference between the two probe methods: i2c-core
      uses 0-byte writes, while the ir-kbd-i2c was using 0-byte reads. As
      some IR I2C devices only support reads, the new probe method fails to
      detect them.
      
      For now, revert to letting the driver do the probe, using 0-byte
      reads. In the future, i2c-core will be extended to let callers of
      i2c_new_probed_device() provide a custom probing function.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Tested-by: N"Timothy D. Lenz" <tlenz@vorgon.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      806b07c2
  4. 17 6月, 2009 1 次提交
    • J
      V4L/DVB (11844): ir-kbd-i2c: Switch to the new-style device binding model · c668f32d
      Jean Delvare 提交于
      Let card drivers probe for IR receiver devices and instantiate them if
      found. Ultimately it would be better if we could stop probing
      completely, but I suspect this won't be possible for all card types.
      
      There's certainly room for cleanups. For example, some drivers are
      sharing I2C adapter IDs, so they also had to share the list of I2C
      addresses being probed for an IR receiver. Now that each driver
      explicitly says which addresses should be probed, maybe some addresses
      can be dropped from some drivers.
      
      Also, the special cases in saa7134-i2c should probably be handled on a
      per-board basis. This would be more efficient and less risky than always
      probing extra addresses on all boards. I'll give it a try later.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c668f32d
  5. 30 3月, 2009 2 次提交
  6. 08 1月, 2009 1 次提交
    • M
      V4L/DVB (10190): cx88: Fix some Kbuild troubles · e32fadc4
      Mauro Carvalho Chehab 提交于
      As Randy Dunlap <randy.dunlap@oracle.com> reported, cx88 has some compilation issues:
      
      drivers/built-in.o: In function `cx88_call_i2c_clients':
      (.text+0x20af17): undefined reference to `videobuf_dvb_get_frontend'
      drivers/built-in.o: In function `cx8802_probe':
      cx88-mpeg.c:(.devinit.text+0x268c4): undefined reference to `videobuf_dvb_alloc_frontend'
      cx88-mpeg.c:(.devinit.text+0x268ea): undefined reference to `videobuf_dvb_dealloc_frontends'
      
      With those configs:
      
      CONFIG_VIDEO_CX88=y
      CONFIG_VIDEO_CX88_BLACKBIRD=y
      CONFIG_VIDEO_CX88_DVB=m
      CONFIG_DVB_CORE=m
      
      After carefully examining the code, with the current code, several cx88 drivers
      (cx8800, cx8802, cx88_dvb and cx88_blackbird) should be compiled as a module,
      if one of them is marked as such. Just fixing Kconfig could create a very complex
      set of rules. Also, this hides a problem with the current approach where the dvb
      functionality weren't confined inside dvb module.
      
      What happens is that:
      	- cx88-i2c (part of cx8800) has some special rules if DVB;
      	- cx88-mpeg (cx8802 module) has also part of DVB init code;
      	- cx88-dvb has the rest of the dvb code;
      	- cx88-blackbird can be used with cx88-mpeg, having cx88-dvb or not.
      
      So, instead of doing some tricks at Kconfig and wait for a next breakage,
      this patch moves the dvb code inside cx88-i2c and cx88-mpeg into cx88-dvb.
      
      Another problem is that cx8802 were being compiled, even without cx88-dvb
      and cx88-blackbird modules.
      
      While on this code, let's fix also a reported problem:
      http://www.linuxtv.org/pipermail/linux-dvb/2009-January/031225.html
      
      A solution for the issue were proposed here:
      http://www.mail-archive.com/linux-media@vger.kernel.org/msg00021.html
      
      Thanks to Randy, Andy, Gregoire and Thomas for helping us to detect
      and solve the issues.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      e32fadc4
  7. 22 10月, 2008 1 次提交
  8. 18 10月, 2008 2 次提交
    • D
      V4L/DVB (9225): MFE: Add configurable gate control · 8e739090
      Darron Broad 提交于
      This adds a configurable (one per card) gate control option
      for multi-frontend. Prior to this point gate control was
      assumed to be on the primary frontend, this is a fault
      when the gate to the analogue section is on the secondary
      which is the default for both the HVR-3000 and HVR-4000
      in MFE.
      Signed-off-by: NDarron Broad <darron@kewl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8e739090
    • S
      V4L/DVB (9222): S2API: Add Multiple-frontend on a single adapter support. · 363c35fc
      Steven Toth 提交于
      A detailed description from the original patches 2 years ago:
      
      "The WinTV-HVR3000 has a single transport bus which is shared between
      a DVB-T and DVB-S modulator. These patches build on the bus acquisition
      cx88 work from a few weeks ago to add support for this.
      
      So to applications the HVR3000 looks like this:
      /dev/dvb/adapter0/fe0 (cx24123 DVB-S demod)
      /dev/dvb/adapter0/fe1 (cx22702 DVB-T demod)
      
      Additional boards continue as before, eg:
      /dev/dvb/adapter1/fe0 (lgdt3302 ATSC demod)
      
      The basic change is removing the single instance of the videobuf_dvb in
      cx8802_dev and saa7134_dev(?) and replacing it with a list and some
      supporting functions.
      
      *NOTE* This branch was taken before v4l-dvb was closed for 2.6.19 so
      two or three current cx88 patches appear to be reversed by this tree,
      this will be cleaned up in the near future. The patches missing change
      the mutex handing to core->lock, fix an enumeration problem."
      
      It should be recognised that a number of people have been maintaining
      this patchset. Significant levels of Kudos to everyone one involved,
      including but not limited to:
      
      Darron Broad
      Fabio M. Di Nitto
      Carlo Scarfoglio
      Hans Werner
      
      Without the work of these people, and countless others, my two year old
      patches would of died on the Mercurial linuxtv.org vine a long time
      ago.
      
      TODO: Revise these patches a little further so that the need for
      demux1 and dvr0 is optional, not mandatory on the HVR3000.
      
      HISTORY (darron):
      This is the last update to MFE prepared by Hans which is based
      upon the `scratchpad' diff created by Carlo.
      All MFE work prior to that point must be attributed to Fabio
      who ported and maintained Steve's original patch up to that
      time.
      Signed-off-by: NSteven Toth <stoth@linuxtv.org>
      Signed-off-by: NDarron Broad <darron@kewl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      363c35fc
  9. 12 10月, 2008 1 次提交
  10. 20 7月, 2008 1 次提交
  11. 30 4月, 2008 2 次提交
  12. 25 4月, 2008 1 次提交
  13. 26 1月, 2008 2 次提交
  14. 10 10月, 2007 3 次提交
    • T
      V4L/DVB (6283): videobuf: Remove references to old Kconfig option name · 5a3ebe87
      Trent Piepho 提交于
      CONFIG_VIDEO_BUF_DVB became CONFIG_VIDEOBUF_DVB.
      
      But in these cases, it makes more sense to use CONFIG_VIDEO_SAA7134_DVB
      or CONFIG_VIDEO_CX88_DVB_MODULE depending on the driver.
      
      The reference in cx23885.h should just be removed, as the code there needs to
      be included if DVB is on or off.  I do not think you can even compile the
      cx23885 driver without DVB.  It's clearly just leftover from when the file was
      obvious copied from the cx88 driver (which is not mentioned in the copyright
      BTW).
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      5a3ebe87
    • M
      V4L/DVB (6079): Cleanup: remove linux/moduleparam.h from drivers/media files · 9c12224a
      Mauro Carvalho Chehab 提交于
      Since at least kernel 2.6.12-rc2, module.h includes moduleparm.h. This
      patch removes all occurences of moduleparm.h from drivers/media files.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      9c12224a
    • T
      V4L/DVB (6021): cx88: Copy board information into card state · 6a59d64c
      Trent Piepho 提交于
      The cx88 driver state stored the ID of the board type in core->board.  Every
      time the driver need to get some information about the board configuration, it
      uses the board number as an index into board configuration array.
      
      This patch changes it so that the board number is in core->boardnr, and
      core->board is a copy of the board configuration information.  This allows
      access to board information without the extra indirection.  e.g.
      cx88_boards[core->board].mpeg becomes core->board.mpeg.
      
      This has a number of advantages:
      - The code is simpler to write.
      
      - It compiles to be smaller and faster, without needing the extra array lookup
        to get at the board information.
      
      - The cx88_boards array no longer needs to be exported to all cx88 modules.
      
      - The boards array can be made const
      
      - It should be possible to avoid keeping the (large) cx88_boards array around
        after the module is loaded.
      
      - If module parameters or eeprom info override some board configuration
        setting, it's not necessary to modify the boards array, which would
        affect all boards of the same type.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      6a59d64c
  15. 19 7月, 2007 1 次提交
  16. 28 4月, 2007 1 次提交
  17. 21 2月, 2007 1 次提交
    • T
      V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings · 05ad3907
      Trent Piepho 提交于
      The out of tree v4l-dvb build system didn't always override the kernel's
      configuration settings with v4l-dvb's settings correctly.  To work around
      this, makefiles would define some new macro based on the setting of a
      config variable.  e.g. the pwc Makefile would define CONFIG_PWC_DEBUG if
      CONFIG_USB_PWC_DEBUG (which is defined via Kconfig) was set.
      The v4l-dvb build system should now always override correctly, and this
      is no longer necessary.  This patch gets ride of these extra defines and
      just uses the CONFIG_* settings directly.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      05ad3907
  18. 04 10月, 2006 3 次提交
  19. 27 9月, 2006 1 次提交
  20. 26 9月, 2006 2 次提交
    • M
      V4L/DVB (4609): Improved i2c performance on software bitbang algoritm · 141276b5
      Mauro Carvalho Chehab 提交于
      Software I2C were using a very conservative value of udelay=16, meaning about
      20Kbps. According with Philips I2C datasheet, the i2c should answer well for
      times at the order of 4.7 us. So, using udelay=5 should work for all devices.
      After this patch, the speed should be close to 66,67 Kbps, with the current
      kernel software bitbang, with 30/60 duty cycle.
      Anyway, added a new parameter (i2c_udelay) that would allow using conservative
      values, if eventually a hardware doesn't support the datasheet values.
      Thanks to Jean Delvare <khali@linux-fr.org> for pointing this improvement.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      141276b5
    • M
      V4L/DVB (4509): Added missing copyright · 3153d0d0
      Mauro Carvalho Chehab 提交于
      Several changes at register stuff were done since commit
      b45009b0, but I've forgot
      to add the copyright line for this. Those changes allowed
      cx88 to have multiple tuners, allowing it to support hardware with
      separated radio and video tuners. It also allows binding a tuner to an
      specific i2c address.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      3153d0d0
  21. 26 6月, 2006 1 次提交
    • A
      V4L/DVB (4213): Cx88: cleanups · dff47bf2
      Adrian Bunk 提交于
      remove the following unused hooks:
      - cx88-blackbird.c: cx88_ioctl_hook()
      - cx88-blackbird.c: cx88_ioctl_translator()
      make the following needlessly global functions static:
      - cx88-tvaudio.c: cx88_detect_nicam()
      remove the following unused EXPORT_SYMBOL's:
      - cx88-cards.c: cx88_bcount
      - cx88-cards.c: cx88_subids
      - cx88-cards.c: cx88_idcount
      - cx88-cards.c: cx88_card_list
      - cx88-cards.c: cx88_card_setup
      - cx88-core.c: cx88_start_audio_dma
      - cx88-core.c: cx88_stop_audio_dma
      - cx88-i2c.c: cx88_i2c_init
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      dff47bf2
  22. 25 6月, 2006 1 次提交
    • P
      V4L/DVB (4028): Change dvb_frontend_ops to be a real field instead of a... · dea74869
      Patrick Boettcher 提交于
      V4L/DVB (4028): Change dvb_frontend_ops to be a real field instead of a pointer field inside dvb_frontend
      
      The dvb_frontend_ops is a pointer inside dvb_frontend. That's why every demod-driver
      is having a field of dvb_frontend_ops in its private-state-struct and
      using the reference for filling the pointer-field in dvb_frontend.
      - It saves at least two lines of code per demod-driver,
      - reduces object size (one less dereference per frontend_ops-access),
      - be coherent with dvb_tuner_ops,
      - makes it a little bit easier for newbies to understand how it works and
      - avoids stupid mistakes because you would have to copy the dvb_frontend_ops
        always, before you could assign the static pointer directly, which was
        dangerous.
      Signed-off-by: NPatrick Boettcher <pb@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      dea74869
  23. 10 1月, 2006 3 次提交
  24. 06 1月, 2006 1 次提交
  25. 09 11月, 2005 1 次提交
  26. 10 9月, 2005 1 次提交
    • M
      [PATCH] v4l: CX88 updates and card additions · e52e98a7
      Mauro Carvalho Chehab 提交于
      - Remove $Id CVS logs for V4L files
      - add ioctl indirection via cx88_ioctl_hook and cx88_ioctl_translator to
        cx88-blackbird.c.
      - declare the indirection hooks from cx88-blackbird.c.
      - dcprintk macro which uses core instead of dev->core on cx88-video.c.
      - replace dev->core occurances with core on cx88-video.c.
      - CodingStyle fixes.
      - MaxInput replaced by a define.
      - cx8801 structures moved from cx88.h.
      - The output_mode needs to be set for the Hauppauge Nova-T DVB-T
        for versions after 2.6.12.
      - Corrected GPIO values for cx88 cards #28 & #31 for s-video and composite.
      - Updated DViCO FusionHDTV5 Gold & added DVB support.
      - Fixed DViCO FusionHDTV 3 Gold-Q GPIO.
      - Some clean up in cx88-tvaudio.c
      - replaced hex values when writing to AUD_CTL to EN_xx for better reading.
      - Allow select by hand between Mono, Lang1, Lang2 and Stereo for BTSC.
      - Support for stereo NICAM and BTSC improved.
      - Broken stereo check removed.
      - Added support for remote control to Cinergy DVBT-1400.
      - local var renamed from rc5 to a better name (ircode).
      - LGDT330X QAM lock bug fixes.
      - Some reorg: move some bits to struct cx88_core, factor out common ioctl's
        to cx88_do_ioctl.
      - Get rid of '//' comments, replace them with #if 0 and /**/.
      - Minor clean-ups: remove dcprintk and replace all instances of "dev->core"
        with "core".
      - Added some registers to control PCI controller at CX2388x chips.
      - New tuner standby API.
      - Small mpeg fixes and cleanups for blackbird.
      - fix mpeg packet size & count
      - add VIDIOC_QUERYCAP ioctl for the mpeg stream
      - return more information in struct v4l2_format
      - fix default window height
      - small cleanups
      Signed-off-by: NUli Luckas <luckas@musoft.de>
      Signed-off-by: NTorsten Seeboth <Torsten.Seeboth@t-online.de>
      Signed-off-by: NNickolay V. Shmyrev <nshmyrev@yandex.ru>
      Signed-off-by: NMichael Krufky <mkrufky@m1k.net>
      Signed-off-by: NPatrick Boettcher <patrick.boettcher@desy.de>
      Signed-off-by: NCatalin Climov <catalin@climov.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e52e98a7
  27. 06 9月, 2005 1 次提交
  28. 28 7月, 2005 1 次提交
  29. 13 7月, 2005 1 次提交