tuner-types.h 750 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/*
 * descriptions for simple tuners.
 */

#ifndef __TUNER_TYPES_H__
#define __TUNER_TYPES_H__

enum param_type {
	TUNER_PARAM_TYPE_RADIO, \
	TUNER_PARAM_TYPE_PAL, \
	TUNER_PARAM_TYPE_SECAM, \
	TUNER_PARAM_TYPE_NTSC, \
	TUNER_PARAM_TYPE_ATSC, \
	TUNER_PARAM_TYPE_DVBT, \
	TUNER_PARAM_TYPE_DVBS, \
	TUNER_PARAM_TYPE_DVBC
};

struct tuner_range {
	unsigned short limit;
	unsigned char cb;
};

struct tuner_params {
	enum param_type type;
	unsigned char config; /* to be moved into struct tuner_range for dvb-pll merge */

	unsigned int count;
	struct tuner_range *ranges;
};

struct tunertype {
	char *name;
	unsigned int has_tda988x:1;
	struct tuner_params *params;
};

extern struct tunertype tuners[];
extern unsigned const int tuner_count;

#endif