Part II. LINUX DVB API

Version 5.10

Ralph J. K. Metzler

Marcus O. C. Metzler

Mauro Carvalho Chehab

Ported document to Docbook XML. 
Revision History
Revision 2.1.02015-05-29mcc
DocBook improvements and cleanups, in order to document the system calls on a more standard way and provide more description about the current DVB API.
Revision 2.0.42011-05-06mcc
Add more information about DVB APIv5, better describing the frontend GET/SET props ioctl's.
Revision 2.0.32010-07-03mcc
Add some frontend capabilities flags, present on kernel, but missing at the specs.
Revision 2.0.22009-10-25mcc
documents FE_SET_FRONTEND_TUNE_MODE and FE_DISHETWORK_SEND_LEGACY_CMD ioctls.
Revision 2.0.12009-09-16mcc
Added ISDB-T test originally written by Patrick Boettcher
Revision 2.0.02009-09-06mcc
Conversion from LaTex to DocBook XML. The contents is the same as the original LaTex version.
Revision 1.0.02003-07-24rjkm
Initial revision on LaTEX.

Table of Contents

8. Introduction
What you need to know
History
Overview
Linux DVB Devices
API include files
9. DVB Frontend API
Querying frontend information
Querying frontend status and statistics
DVB Frontend properties
struct dtv_stats
struct dtv_fe_stats
struct dtv_property
struct dtv_properties
Property types
Digital TV property parameters
Frontend statistics indicators
Properties used on terrestrial delivery systems
Properties used on cable delivery systems
Properties used on satellite delivery systems
Frontend Function Calls
DVB frontend open() — Open a frontend device
DVB frontend close() — Close a frontend device
ioctl FE_GET_INFO — Query DVB frontend capabilities and returns information about the front-end. This call only requires read-only access to the device
ioctl FE_READ_STATUS — Returns status information about the front-end. This call only requires read-only access to the device
ioctl FE_SET_PROPERTY, FE_GET_PROPERTY — FE_SET_PROPERTY sets one or more frontend properties. FE_GET_PROPERTY returns one or more frontend properties.
ioctl FE_DISEQC_RESET_OVERLOAD — Restores the power to the antenna subsystem, if it was powered off due to power overload.
ioctl FE_DISEQC_SEND_MASTER_CMD — Sends a DiSEqC command
ioctl FE_DISEQC_RECV_SLAVE_REPLY — Receives reply from a DiSEqC 2.0 command
ioctl FE_DISEQC_SEND_BURST — Sends a 22KHz tone burst for 2x1 mini DiSEqC satellite selection.
ioctl FE_SET_TONE — Sets/resets the generation of the continuous 22kHz tone.
ioctl FE_SET_VOLTAGE — Allow setting the DC level sent to the antenna subsystem.
ioctl FE_ENABLE_HIGH_LNB_VOLTAGE — Select output DC level between normal LNBf voltages or higher LNBf voltages.
ioctl FE_SET_FRONTEND_TUNE_MODE — Allow setting tuner mode flags to the frontend.
DVB Frontend legacy API (a. k. a. DVBv3)
Frontend Legacy Data Types
Frontend Legacy Function Calls
10. DVB Demux Device
Demux Data Types
Output for the demux
dmx_input_t
dmx_pes_type_t
struct dmx_filter
struct dmx_sct_filter_params
struct dmx_pes_filter_params
struct dmx_event
struct dmx_stc
struct dmx_caps
enum dmx_source_t
Demux Function Calls
open()
close()
read()
write()
DMX_START
DMX_STOP
DMX_SET_FILTER
DMX_SET_PES_FILTER
DMX_SET_BUFFER_SIZE
DMX_GET_EVENT
DMX_GET_STC
DMX_GET_PES_PIDS
DMX_GET_CAPS
DMX_SET_SOURCE
DMX_ADD_PID
DMX_REMOVE_PID
11. DVB CA Device
CA Data Types
ca_slot_info_t
ca_descr_info_t
ca_caps_t
ca_msg_t
ca_descr_t
ca-pid
CA Function Calls
open()
close()
CA_RESET
CA_GET_CAP
CA_GET_SLOT_INFO
CA_GET_DESCR_INFO
CA_GET_MSG
CA_SEND_MSG
CA_SET_DESCR
CA_SET_PID
12. DVB Network API
DVB net Function Calls
ioctl NET_ADD_IF — Creates a new network interface for a given Packet ID.
ioctl NET_REMOVE_IF — Removes a network interface.
ioctl NET_GET_IFRead the configuration data of an interface created via NET_ADD_IF.
13. DVB Deprecated APIs
DVB Video Device
Video Data Types
Video Function Calls
DVB Audio Device
Audio Data Types
Audio Function Calls
14. Examples
Tuning
The DVR device
F. DVB Audio Header File
G. DVB Conditional Access Header File
H. DVB Demux Header File
I. DVB Frontend Header File
J. DVB Network Header File
K. DVB Video Header File