Skip to contentSkip to conversation

Confusion about API: please clarify

DISCUSSION Josef Wolf 2 participants 5 messages Apr 10, 2018 – Apr 12, 2018 Media (V4L/DVB)

lore
Share & tools
lore

Josef Wolf

author
#0 lore raw

Hello,

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.

Can anyone clarify, what the current state of the API is and where to find up-to-date documentation?

Thanks!

Signature · 2 lines
Josef Wolf
[email protected]
#1 lore raw

Em Tue, 10 Apr 2018 12:43:27 +0200
Josef Wolf <[email protected]> escreveu:

Quoted 10 lines

Hello,

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

Quoted 2 lines

Can anyone clarify, what the current state of the API is and where to find up-to-date documentation?

The updated documentation for all media APIs we maintain are always at:

https://www.linuxtv.org/downloads/v4l-dvb-apis-new/

It is updated daily as new features are added at the source code.

Thanks,
Mauro

author
#2 lore raw
Quoted 6 lines · Mauro Carvalho Chehab

Em Tue, 10 Apr 2018 12:43:27 +0200
Josef Wolf <[email protected]> escreveu:

Quoted 4 lines

The linuxtv wiki pages state that the current v5 API (also called S2API) is tag/value based:

Quoted 8 lines
Quoted 5 lines

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?

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?

Thanks,

Signature · 2 lines
Josef Wolf
[email protected]
#3 lore raw

Em Tue, 10 Apr 2018 21:14:23 +0200
Josef Wolf <[email protected]> escreveu:

Quoted 13 lines · Mauro Carvalho Chehab
Quoted 12 lines

Em Tue, 10 Apr 2018 12:43:27 +0200
Josef Wolf <[email protected]> escreveu:

Quoted 9 lines

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.

Quoted 7 lines
Quoted 2 lines

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.

Quoted 4 lines

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

author
#4 lore raw
Quoted 3 lines · Mauro Carvalho Chehab

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.

Do you know which length saa7146/stv0299 could do?

Signature · 2 lines
Josef Wolf
[email protected]