[mythtv-commits] Ticket #2882: Poll CAM module at consistent intervals

MythTV mythtv at cvs.mythtv.org
Sun Jan 7 17:02:14 UTC 2007


#2882: Poll CAM module at consistent intervals
-------------------------------+--------------------------------------------
 Reporter:  david at hardeman.nu  |        Owner:  danielk
     Type:  enhancement        |       Status:  new    
 Priority:  minor              |    Milestone:  0.21   
Component:  dvb                |      Version:  head   
 Severity:  low                |   Resolution:         
-------------------------------+--------------------------------------------
Comment (by david at hardeman.nu):

 The reason that I didn't want to do it in CiHandlerLoop is that it calls
 ciHandler->Process() which in turn also perform the other processing steps
 (such as sending DateTime to the CAM module, etc), and delaying those
 steps by up to 100ms might be a bad idea (I'm not sure whether it is).

 Perhaps it would be an idea to try to get the patch applied to the vdr
 sources?

 Talking about the CiHandlerLoop: currently there is a usleep(250) in
 there, with some debugging code I found that the loop is executed approx.
 950 times/sec on my machine, which seems a bit excessive.

 I've tried bumping the usleep to 2500, 10000 and 90000 (so 2.5, 10 and 90
 ms precision), and there seems to be no ill effects. Do you know why the
 current value is so low? Perhaps the usleep should be changed?

 See http://www.linuxtv.org/pipermail/linux-dvb/2006-October/013946.html
 for an example of one user who improved stability on his system by bumping
 it to 90000 (which is probably a bit too much).

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2882#comment:2>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list