1. 01 2月, 2009 1 次提交
  2. 29 1月, 2009 1 次提交
  3. 03 1月, 2009 7 次提交
  4. 30 12月, 2008 6 次提交
  5. 17 12月, 2008 1 次提交
    • M
      V4L/DVB (9885): drivers/media Kconfig's: fix bugzilla #12204 · 8b21c1e9
      Mauro Carvalho Chehab 提交于
      When the tuner modules were moved to common/tuners, a separate customize
      option were added for tuners. However, the automatic selection of the
      tuners were still using the older option.
      
      This causes that the automatic selection to fail, if DVB_FE_CUSTOMISE is
      selected. Also, since those tuners are now under MEDIA_TUNER_CUSTOMIZE
      menu, if you unset MEDIA_TUNER_CUSTOMIZE, you can't manually select the
      tuners.
      
      This patch fixes this error by replacing DVB_FE_CUSTOMISE by
      MEDIA_TUNER_CUSTOMIZE on all places were a tuner is selected.
      
      The patch were generated by this small script:
      
      for i in `find drivers/media -name Kconfig`; do
        cat $i|perl -ne 's/(MEDIA_TUNER.*)DVB_FE_CUSTOMISE/\1MEDIA_TUNER_CUSTOMIZE/; print $_' >a
        mv a $i
      done
      
      Also, manually reordered the tuner entries.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8b21c1e9
  6. 11 11月, 2008 1 次提交
    • S
      V4L/DVB (9356): [PATCH] saa7134: fix resource map sanity check conflict · d522af58
      Suresh Siddha 提交于
      Impact: driver could possibly stomp on resources outside of its scope
      
      {mchehab@redhat.com: I got two versions of the same patch (identical,
      except for whitespacing). One authored by Andy Burns and another
      authored by Suresh Siddha. Due to that, I'm applying the one that has
      less CodingStyle errors. I'm also adding both comments and the SOB's for
      both patches, since they are both interesting}
      
      Suresh Siddha commented:
      
        Alexey Fisher reported:
      
        > resource map sanity check conflict: 0xcfeff800 0xcff007ff 0xcfe00000
        > 0xcfefffff PCI Bus 0000:01
      
        BAR base is located in the middle of the 4K page and the hardcoded
        size argument makes the request span two pages causing the conflict.
      
        Fix the hard coded size argument in ioremap().
      
      Andy Burns commented:
      
        I have already sent this patch on the linux-dvb list, but it didn't get
        much attention, so re-sending direct, I hope you all don't mind.
      
        While attempting to run mythtv in a xen domU, I encountered problems
        loading the driver for my saa7134 card, with an error from ioremap().
      
        This error was due to the driver allocating an incorrectly sized mmio
        area, which was trapped by xen's permission checks, but this would go
        un-noticed on a kernel without xen.
      
        My card has a 1K sized mmio area, I've had information that other cards
        have 2K areas, perhaps others have different sizes, yet the driver
        always attempts to map 4K.  I realise that the granularity of mapping is
        the page size, which typically would be 4K, but unless the card's base
        address happens to fall on a 4K boundary (mine does not) then the
        base+4K will end up spanning two pages, and this is when the error
        occurs under xen.
      
        My patch uses the pci_resource_len macro to determine the size required
        for the user's particular card, instead of the hardcoded 4K value. I've
        tested with a couple of printk() inside ioremap() that the start address
        and size do get rounded to the closest page boundary.
      
        With this patch I am able to successfully load the saa7134 driver and
        run mythtv under xen with my card, subject to correct pollirq settings
        in case of shared IRQ, I am still seeing occasional DMA panics, which I
        think are related to swiotlb handling by dom0/domU, usually the panic
        occurs when changing mux, once tuned to a mux, 12 hour continuous
        recordings are possible without errors.
      Reported-by: NAlexey Fisher <bug-track@fisher-privat.net>
      Tested-by: NAlexey Fisher <bug-track@fisher-privat.net>
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Signed-off-by: NAndy Burns <andy@burns.net>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d522af58
  7. 22 10月, 2008 1 次提交
    • H
      V4L/DVB (9327): v4l: use video_device.num instead of minor in video%d · c6330fb8
      Hans Verkuil 提交于
      The kernel number of a v4l2 node (e.g. videoX, radioX or vbiX) is now
      independent of the minor number. So instead of using the minor field
      of the video_device struct one has to use the num field: this always
      contains the kernel number of the device node.
      
      I forgot about this when I did the v4l2 core change, so this patch
      converts all drivers that use it in one go. Luckily the change is
      trivial.
      
      Cc: michael@mihu.de
      Cc: mchehab@infradead.org
      Cc: corbet@lwn.net
      Cc: luca.risolia@studio.unibo.it
      Cc: isely@pobox.com
      Cc: pe1rxq@amsat.org
      Cc: royale@zerezo.com
      Cc: mkrufky@linuxtv.org
      Cc: stoth@linuxtv.org
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c6330fb8
  8. 18 10月, 2008 6 次提交
    • D
      V4L/DVB (9271): videobuf: data storage optimisation (2) · 96b7a1a8
      Darron Broad 提交于
      To optimise data storage even further one other redundant
      var has been removed.
      
      This also removes a redundant assignment.
      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>
      96b7a1a8
    • D
      V4L/DVB (9265): videobuf: data storage optimisation · 7bdf84fc
      Darron Broad 提交于
      To optimise data storage redundant vars are removed.
      Signed-off-by: NDarron Broad <darron@kewl.org>
      Signed-off-by: NSteven Toth <stoth@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      7bdf84fc
    • D
      V4L/DVB (9227): MFE: Add multi-frontend mutual exclusion · 59b1842d
      Darron Broad 提交于
      This add frontend R/W mutual exclusion.
      Prior to this point in time it was possible to open both
      frontends simultaneously which an MFE card cannot support.
      
      In order to stop this, a delayed open is performed which
      has the following function:
      
      -  Return EBUSY after a configurable amount of time
         if a frontend is unavailable due to the other being
         in use.
      
      -  Only allow opening of a frontend if the kernel thread
         of the other has stopped.
      
      This solution was chosen to allow switching between
      frontends to work as seamlessly as possible. When both
      frontends are actually opened simultaneously then one
      will only open, but if quick switching is performed
      between one of many then the new open will succeed in
      a clean fashion rather than interrupting a kernel
      thread.
      Signed-off-by: NDarron Broad <darron@kewl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      59b1842d
    • D
      V4L/DVB (9224): MFE: bugfix: add missing frontend allocation · f972e0bd
      Darron Broad 提交于
      When using MFE on a setup with both and HVR-3000 and ASUS P7131
      card it was noticed that frontend allocation for saa7134
      adapters was missing. This patch adds that allocation for
      both saa7134 and cx23885 adapters.
      Signed-off-by: NDarron Broad <darron@kewl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f972e0bd
    • D
      V4L/DVB (9223): MFE: Fix a number of bugs and some tidying up · 92abe9ee
      Darron Broad 提交于
      A number of reference to videobuf_dvb_get_frontend used an invalid
      index. This has been fixed.
      
      The section for the HVR3000 in advise_acquire was redundant as
      the same logic is used on the HVR4000. This has been removed
      and both cards now use the same function.
      
      A number of small errors and whitespace errors are also fixed.
      Signed-off-by: NDarron Broad <darron@kewl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      92abe9ee
    • 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. 13 10月, 2008 2 次提交
  10. 12 10月, 2008 14 次提交