From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Josef Wolf <jw@raven.inka.de>
Cc: linux-media@vger.kernel.org
Subject: Re: Confusion about API: please clarify
Date: Tue, 10 Apr 2018 17:22:39 -0300 [thread overview]
Message-ID: <20180410172239.647957ba@vento.lan> (raw)
In-Reply-To: <20180410191423.GB28895@raven.inka.de>
Em Tue, 10 Apr 2018 21:14:23 +0200
Josef Wolf <jw@raven.inka.de> escreveu:
> On Di, Apr 10, 2018 at 11:58:15 -0300, Mauro Carvalho Chehab wrote:
> > Em Tue, 10 Apr 2018 12:43:27 +0200
> > Josef Wolf <jw@raven.inka.de> escreveu:
> > >
> > > The linuxtv wiki pages state that the current v5 API (also called S2API) is
> > > tag/value based:
> > >
> > > https://www.linuxtv.org/wiki/index.php/Development:_Linux_DVB_API_history_and_future
> > > https://www.linuxtv.org/wiki/index.php/S2API
> > >
> > > But in the API documentation (version 5.10), I can't find anything that looks
> > > like tag/value.
> >
> > That refers basically to DVB frontend API. Please see:
> > https://www.linuxtv.org/downloads/v4l-dvb-apis-new/uapi/dvb/dvbproperty.html
>
> Thanks for the clarification, Mauro!
>
> So all the other "subsystems" (like demux device etc/pp) still use the struct
> based API?
Yes.
> What about DiSEqC? struct dvb_diseqc_master_cmd seems to still be limited to 6
> bytes. With Unicable/JESS longer sequences are needed. Especially for configuring
> multiswitches, sequences of up to 16 bytes are needed. How would this be done
> with the limitation to 6 bytes?
DiSEqC uses stuct-based ioctl.
There is a provision to add support for it via S2API, but this was not
implemented yet.
That's said, adding suport for DiSEqC with more than 6 bytes should
likely be enabled driver per driver, after checking that the device
supports it.
For example, cx24123 seems to reserve only 6 registers for
messages (from cx24123.c driver, at cx24123_regdata[] table):
{0x2c, 0x00}, /* DiSEqC Message (0x2c - 0x31) */
Register 0x33 is used for interrupts.
{0x33, 0x00}, /* Interrupts off (0x33 - 0x34) */
{0x34, 0x00},
So, clearly this device won't be able to support longer DiSEqC
messages.
Regards,
Mauro
next prev parent reply other threads:[~2018-04-10 20:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-10 10:43 Confusion about API: please clarify Josef Wolf
2018-04-10 14:58 ` Mauro Carvalho Chehab
2018-04-10 19:14 ` Josef Wolf
2018-04-10 20:22 ` Mauro Carvalho Chehab [this message]
2018-04-12 12:52 ` Josef Wolf
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=20180410172239.647957ba@vento.lan \
--to=mchehab@s-opensource.com \
--cc=jw@raven.inka.de \
--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