1. 17 5月, 2010 1 次提交
  2. 27 2月, 2010 3 次提交
  3. 06 12月, 2009 2 次提交
  4. 02 12月, 2009 1 次提交
  5. 19 9月, 2009 3 次提交
  6. 12 9月, 2009 2 次提交
  7. 17 6月, 2009 2 次提交
    • D
      V4L/DVB (11875): dvb_frontend: fix case where fepriv->exit not reset · a5beb7b3
      Devin Heitmueller 提交于
      The fact that we now explicitly set fepriv->exit = 1 when the thread is
      shutting down exposed an edge case where it was not being reset back to zero
      once the thread went away in some cases.  This resulted in failures in cases
      where the frontend was closed, and then opened O_RDONLY, since in that case
      the thread is not being restarted but it was checking the fepriv->exit flag.
      
      Thanks to Thierry Lelegard, who and encountered and debugged a large portion
      of the issue in the same twelve hours that I did (as well as testing my patch).
      
      Cc: Thierry Lelegard <thierry.lelegard@tv-numeric.com>
      Signed-off-by: NDevin Heitmueller <dheitmueller@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a5beb7b3
    • D
      V4L/DVB (11785): dvb_frontend: fix race condition resulting in dropped tuning commands · 57594a58
      Devin Heitmueller 提交于
      A race condition was detected in the case that putting the tuner to sleep takes
      an unusually long period of time, combined with applications that quickly
      close/open the dvb frontend.
      
      The kaffeine channel scanner closes and reopens the dvb frontend between each
      tuning attempt.  If it takes an unusually longer period of time to put the
      tuner to sleep (for example, the Pinnacle 801e takes 660 ms), the dvb_frontend
      thread will still be in a running state (and hence fepriv->thread is still set)
      but the fepriv->exit field will still be zero.  As a result, if a
      dvb_frontend_start() call arrives while the frontend thread is in the process
      of terminating, the call will return 0 without actually starting a new thread.
      This results in the tuning request being dropped.
      
      To address this, mark fepriv->exit as soon as we know the thread is going to
      be terminated, so that dvb_frontend_start() knows to start a new instance.
      
      Problem encountered with Kaffeine 0.8.7 doing ATSC scanning against the
      Pinnacle 801e tuner, in conjunction with new code to power down the xc5000
      when not in use.
      Signed-off-by: NDevin Heitmueller <dheitmueller@kernellabs.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      57594a58
  8. 30 3月, 2009 1 次提交
  9. 14 3月, 2009 1 次提交
  10. 08 1月, 2009 1 次提交
    • M
      V4L/DVB (10178): dvb_frontend: Fix some sparse warnings due to static symbols · 072ce0c5
      Mauro Carvalho Chehab 提交于
      /home/v4l/master/v4l/dvb_frontend.c:838:19: warning: symbol 'dtv_cmds' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1035:6: warning: symbol 'dtv_property_dump' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1066:5: warning: symbol 'is_legacy_delivery_system' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1080:6: warning: symbol 'dtv_property_cache_sync' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1132:6: warning: symbol 'dtv_property_legacy_params_sync' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1187:6: warning: symbol 'dtv_property_adv_params_sync' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1222:6: warning: symbol 'dtv_property_cache_submit' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1253:5: warning: symbol 'dtv_property_process_get' was not declared. Should it be static?
      /home/v4l/master/v4l/dvb_frontend.c:1362:5: warning: symbol 'dtv_property_process_set' was not declared. Should it be static?
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      072ce0c5
  11. 30 12月, 2008 6 次提交
  12. 17 11月, 2008 2 次提交
  13. 11 11月, 2008 1 次提交
  14. 18 10月, 2008 5 次提交
    • S
      V4L/DVB (9274): Remove spurious messages and turn into debug. · a1bc84c0
      Steven Toth 提交于
      Remove spurious messages and turn into debug.
      Signed-off-by: NSteven Toth <stoth@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a1bc84c0
    • D
      V4L/DVB (9264): MFE: bugfix: multi-frontend mutual exclusion parallel open · 6594690b
      Darron Broad 提交于
      When moving from one frontend to another
      an application could spawn multiple threads opening
      the same new frontend and in some circumstances all of
      these could become delayed waiting for the previous
      frontend readers or previous frontend writer thread to
      complete.
      
      In this scenario the first thread will succeed on open
      to bring the new frontend online but any others will return
      EBUSY. This is a fault.  If the first succeeds and all others
      are on the same frontend then they should succeed also.
      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>
      6594690b
    • 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
    • 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
    • M
  15. 13 10月, 2008 8 次提交
  16. 12 10月, 2008 1 次提交