2015-08-05 17:22:42 +02:00
|
|
|
#ifndef _UAPI_DVBMOD_H_
|
|
|
|
#define _UAPI_DVBMOD_H_
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include "frontend.h"
|
|
|
|
|
|
|
|
struct dvb_mod_params {
|
|
|
|
__u32 base_frequency;
|
|
|
|
__u32 attenuator;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct dvb_mod_channel_params {
|
|
|
|
enum fe_modulation modulation;
|
|
|
|
__u64 input_bitrate; /* 2^-32 Hz */
|
|
|
|
int pcr_correction;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define DVB_MOD_SET _IOW('o', 208, struct dvb_mod_params)
|
|
|
|
#define DVB_MOD_CHANNEL_SET _IOW('o', 209, struct dvb_mod_channel_params)
|
|
|
|
|
2016-09-12 14:41:47 +02:00
|
|
|
#define MODULATOR_UNDEFINED 0
|
|
|
|
#define MODULATOR_START 1
|
|
|
|
#define MODULATOR_STOP 2
|
|
|
|
#define MODULATOR_FREQUENCY 3
|
|
|
|
#define MODULATOR_MODULATION 4
|
|
|
|
#define MODULATOR_SYMBOL_RATE 5 /* Hz */
|
2017-04-10 11:55:44 +02:00
|
|
|
#define MODULATOR_BASE_FREQUENCY 6
|
2016-09-12 14:41:47 +02:00
|
|
|
#define MODULATOR_ATTENUATOR 32
|
|
|
|
#define MODULATOR_INPUT_BITRATE 33 /* Hz */
|
|
|
|
#define MODULATOR_PCR_MODE 34 /* 1=pcr correction enabled */
|
2017-06-01 16:44:56 +02:00
|
|
|
#define MODULATOR_GAIN 35
|
2017-10-11 13:47:50 +02:00
|
|
|
#define MODULATOR_RESET 36
|
2017-10-12 14:21:18 +02:00
|
|
|
#define MODULATOR_STATUS 37
|
2019-07-08 10:04:46 +02:00
|
|
|
#define MODULATOR_INFO 38
|
2017-04-07 12:28:27 +02:00
|
|
|
#define MODULATOR_OUTPUT_ARI 64
|
2019-08-05 15:59:06 +02:00
|
|
|
#define MODULATOR_OUTPUT_RATE 65
|
|
|
|
|
|
|
|
enum mod_output_rate {
|
|
|
|
SYS_DVBT_6 = 0,
|
2020-10-16 14:33:55 +02:00
|
|
|
SYS_DVBT_7 = 1,
|
|
|
|
SYS_DVBT_8 = 2,
|
|
|
|
SYS_DVBC_6900 = 8,
|
2019-08-05 15:59:06 +02:00
|
|
|
SYS_ISDBT_6 = 16,
|
2020-10-16 14:33:55 +02:00
|
|
|
SYS_J83B_64_6 = 24,
|
|
|
|
SYS_J83B_256_6 = 25,
|
2020-01-16 10:43:15 +01:00
|
|
|
SYS_DVBS2_22 = 32,
|
2020-10-16 14:33:55 +02:00
|
|
|
SYS_DVBS2_24 = 33,
|
2019-08-05 15:59:06 +02:00
|
|
|
};
|
|
|
|
|
2016-09-02 17:35:24 +02:00
|
|
|
|
2015-08-05 17:22:42 +02:00
|
|
|
#endif /*_UAPI_DVBMOD_H_*/
|