[mythtv] [PATCH] Remove use of deprecated DVB events.

Kenneth Aafløy lists at kenneth.aafloy.net
Thu Sep 1 17:27:34 UTC 2005


torsdag 01 september 2005, 17:54, skrev Stuart Auchterlonie:
> On Thu, Sep 01, 2005 at 03:30:07PM +0100, Allan Stirling wrote:
> > Stuart Auchterlonie wrote:
> > >On Thu, Sep 01, 2005 at 03:07:01PM +0200, Kenneth Aafløy wrote:
> > >>With 'while (ioctl(fd_frontend, FE_GET_EVENT, &event) == 0);' commented
> > >>out:
> > >
> > >I thought you were trying to get rid of FE_GET_EVENT's ????
> > >
> > >Other than that we are getting closer to a proper solution 8-)
> >
> > The poll() returns because there's an event in the queue.

Yupp!

> Hmmm, changing between channels on the same mplex the backend
> gets stuck in select waiting for an event. This leads to the conclusion
> that we are eating too many events. How or why I'm not sure at the
> moment.

That patch didn't have proper timeout handling at least, the set below has.

To better see what all the changes is about I made a patchset with quilt.

@John: Hope it's okay that I merged your changes into this set.
       I did the diseqc handling slightly differently though.

In the order they must be applied:

ca_pmt_ok_descrambling.patch
dvb_channel_const_cast.patch
dvb_channel_remove_event.patch
dvb_channel_read_status.patch
dvb_channel_remove_tune_funcs.patch
dvb_channel_add_tuning.patch
dvb_remove_diseqc_havetuned.patch

Does this look ok to everybody?

It's missing a check of what frequency is tuned currently and what
frequency was locked onto (which maybe should be cached in database?)

Works for me with Nexus-S 2.1 and diseqc 1.0 4-way on both cvs HEAD + 
2.6.13-rc6 and with cvs -D 20050701 + -r 1.108 dvb_frontend.c + 2.6.12.3.

Kenneth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ca_pmt_ok_descrambling.patch
Type: text/x-diff
Size: 595 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/ca_pmt_ok_descrambling-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_channel_remove_event.patch
Type: text/x-diff
Size: 5762 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/dvb_channel_remove_event-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_channel_remove_tune_funcs.patch
Type: text/x-diff
Size: 10733 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/dvb_channel_remove_tune_funcs-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_remove_diseqc_havetuned.patch
Type: text/x-diff
Size: 7360 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/dvb_remove_diseqc_havetuned-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_channel_read_status.patch
Type: text/x-diff
Size: 3185 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/dvb_channel_read_status-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_channel_const_cast.patch
Type: text/x-diff
Size: 1724 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/dvb_channel_const_cast-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvb_channel_add_tuning.patch
Type: text/x-diff
Size: 3159 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050901/49bd2587/dvb_channel_add_tuning-0001.bin


More information about the mythtv-dev mailing list