From: Chris Rankin <rankincj@yahoo.com>
To: linux-media@vger.kernel.org
Subject: DVB ioctl FE_GET_EVENT behaviour broken in 3.3
Date: Fri, 06 Apr 2012 11:49:06 +0100 [thread overview]
Message-ID: <4F7ECA22.7040604@yahoo.com> (raw)
In-Reply-To: <4F7CDA41.5020001@googlemail.com>
The reason that DVB playback with xine is broken in 3.3 is that the userspace
semantics of FE_GET_EVENT have changed. Xine tunes into a DVB channel as follows:
* discards stale frontend events by calling FE_GET_EVENT until there is none left.
* calls FE_SET_FRONTEND with the new frequency.
* starts polling for new frontend events by calling FE_GET_EVENT again.
Xine assumes that *every* FE_GET_EVENT after calling FE_SET_FRONTEND will have
dvb_frontend_event.parameters.frequency set to the new frequency, if this
channel exists. However, under Linux 3.3, at least the first new event with a
newly-plugged-in device has a frequency parameter of zero. I am assuming that
Linux is populating the frequency parameter from an internal data structure
because xine behaves normally once some other DVB application manages to set it
to something other than zero. And xine then continues to behave normally until I
unplug the DVB adapter and plug in back in again.
So the question is: why is there no frequency for this first FE_GET_EVENT? Are
the parameters incomplete, or shouldn't this event have been sent in the first
place?
Cheers,
Chris
next prev parent reply other threads:[~2012-04-06 10:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 23:00 Is xine DVB broken with Linux 3.3.1? Chris Rankin
2012-04-04 23:33 ` Chris Rankin
2012-04-06 10:49 ` Chris Rankin [this message]
2012-04-06 11:47 ` DVB ioctl FE_GET_EVENT behaviour broken in 3.3 Antti Palosaari
2012-04-06 12:06 ` Chris Rankin
2012-04-06 14:59 ` Chris Rankin
2012-04-06 20:06 ` [REGRESSION] Linux 3.3 DVB userspace ABI broken for xine (FE_SET_FRONTEND) Chris Rankin
2012-04-06 20:21 ` [PATCH] " Chris Rankin
2012-04-06 22:38 ` [PATCH v2] " Chris Rankin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7ECA22.7040604@yahoo.com \
--to=rankincj@yahoo.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).