linux/include/media/tuner.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * tuner.h - definition for different tuners
 *
 * Copyright (C) 1997 Markus Schroeder ([email protected])
 * minor modifications by Ralph Metzler ([email protected])
 */

#ifndef _TUNER_H
#define _TUNER_H
#ifdef __KERNEL__

#include <linux/videodev2.h>
#include <media/v4l2-mc.h>

#define ADDR_UNSET

#define TUNER_TEMIC_PAL
#define TUNER_PHILIPS_PAL_I
#define TUNER_PHILIPS_NTSC
#define TUNER_PHILIPS_SECAM

#define TUNER_ABSENT
#define TUNER_PHILIPS_PAL
#define TUNER_TEMIC_NTSC
#define TUNER_TEMIC_PAL_I

#define TUNER_TEMIC_4036FY5_NTSC
#define TUNER_ALPS_TSBH1_NTSC
#define TUNER_ALPS_TSBE1_PAL
#define TUNER_ALPS_TSBB5_PAL_I

#define TUNER_ALPS_TSBE5_PAL
#define TUNER_ALPS_TSBC5_PAL
#define TUNER_TEMIC_4006FH5_PAL
#define TUNER_ALPS_TSHC6_NTSC

#define TUNER_TEMIC_PAL_DK
#define TUNER_PHILIPS_NTSC_M
#define TUNER_TEMIC_4066FY5_PAL_I
#define TUNER_TEMIC_4006FN5_MULTI_PAL

#define TUNER_TEMIC_4009FR5_PAL
#define TUNER_TEMIC_4039FR5_NTSC
#define TUNER_TEMIC_4046FM5
#define TUNER_PHILIPS_PAL_DK

#define TUNER_PHILIPS_FQ1216ME
#define TUNER_LG_PAL_I_FM
#define TUNER_LG_PAL_I
#define TUNER_LG_NTSC_FM

#define TUNER_LG_PAL_FM
#define TUNER_LG_PAL
#define TUNER_TEMIC_4009FN5_MULTI_PAL_FM
#define TUNER_SHARP_2U5JF5540_NTSC

#define TUNER_Samsung_PAL_TCPM9091PD27
#define TUNER_MT2032
#define TUNER_TEMIC_4106FH5
#define TUNER_TEMIC_4012FY5

#define TUNER_TEMIC_4136FY5
#define TUNER_LG_PAL_NEW_TAPC
#define TUNER_PHILIPS_FM1216ME_MK3
#define TUNER_LG_NTSC_NEW_TAPC

#define TUNER_HITACHI_NTSC
#define TUNER_PHILIPS_PAL_MK
#define TUNER_PHILIPS_FCV1236D
#define TUNER_PHILIPS_FM1236_MK3

#define TUNER_PHILIPS_4IN1
	/*
	 * Microtune merged with Temic 12/31/1999 partially financed by Alps.
	 * these may be similar to Temic
	 */
#define TUNER_MICROTUNE_4049FM5
#define TUNER_PANASONIC_VP27
#define TUNER_LG_NTSC_TAPE

#define TUNER_TNF_8831BGFF
#define TUNER_MICROTUNE_4042FI5
#define TUNER_TCL_2002N
#define TUNER_PHILIPS_FM1256_IH3

#define TUNER_THOMSON_DTT7610
#define TUNER_PHILIPS_FQ1286
#define TUNER_PHILIPS_TDA8290
#define TUNER_TCL_2002MB

#define TUNER_PHILIPS_FQ1216AME_MK4
#define TUNER_PHILIPS_FQ1236A_MK4
#define TUNER_YMEC_TVF_8531MF
#define TUNER_YMEC_TVF_5533MF

#define TUNER_THOMSON_DTT761X
#define TUNER_TENA_9533_DI
#define TUNER_TEA5767
#define TUNER_PHILIPS_FMD1216ME_MK3

#define TUNER_LG_TDVS_H06XF
#define TUNER_YMEC_TVF66T5_B_DFF
#define TUNER_LG_TALN
#define TUNER_PHILIPS_TD1316

#define TUNER_PHILIPS_TUV1236D
#define TUNER_TNF_5335MF
#define TUNER_SAMSUNG_TCPN_2121P30A
#define TUNER_XC2028

#define TUNER_THOMSON_FE6600
#define TUNER_SAMSUNG_TCPG_6121P30A
#define TUNER_TDA9887
#define TUNER_TEA5761
#define TUNER_XC5000
#define TUNER_TCL_MF02GIP_5N
#define TUNER_PHILIPS_FMD1216MEX_MK3
#define TUNER_PHILIPS_FM1216MK5
#define TUNER_PHILIPS_FQ1216LME_MK3

#define TUNER_PARTSNIC_PTI_5NF05
#define TUNER_PHILIPS_CU1216L
#define TUNER_NXP_TDA18271
#define TUNER_SONY_BTF_PXN01Z
#define TUNER_PHILIPS_FQ1236_MK5
#define TUNER_TENA_TNF_5337

#define TUNER_XC4000
#define TUNER_XC5000C

#define TUNER_SONY_BTF_PG472Z
#define TUNER_SONY_BTF_PK467Z
#define TUNER_SONY_BTF_PB463Z
#define TUNER_SI2157
#define TUNER_TENA_TNF_931D_DFDR1

/* tv card specific */
#define TDA9887_PRESENT
#define TDA9887_PORT1_INACTIVE
#define TDA9887_PORT2_INACTIVE
#define TDA9887_QSS
#define TDA9887_INTERCARRIER
#define TDA9887_PORT1_ACTIVE
#define TDA9887_PORT2_ACTIVE
#define TDA9887_INTERCARRIER_NTSC
/* Tuner takeover point adjustment, in dB, -16 <= top <= 15 */
#define TDA9887_TOP_MASK
#define TDA9887_TOP_SET
#define TDA9887_TOP(top)

/* config options */
#define TDA9887_DEEMPHASIS_MASK
#define TDA9887_DEEMPHASIS_NONE
#define TDA9887_DEEMPHASIS_50
#define TDA9887_DEEMPHASIS_75
#define TDA9887_AUTOMUTE
#define TDA9887_GATING_18
#define TDA9887_GAIN_NORMAL
#define TDA9887_RIF_41_3

/**
 * enum tuner_mode      - Mode of the tuner
 *
 * @T_RADIO:        Tuner core will work in radio mode
 * @T_ANALOG_TV:    Tuner core will work in analog TV mode
 *
 * Older boards only had a single tuner device, but some devices have a
 * separate tuner for radio. In any case, the tuner-core needs to know if
 * the tuner chip(s) will be used in radio mode or analog TV mode, as, on
 * radio mode, frequencies are specified on a different range than on TV
 * mode. This enum is used by the tuner core in order to work with the
 * proper tuner range and eventually use a different tuner chip while in
 * radio mode.
 */
enum tuner_mode {};

/**
 * struct tuner_setup   - setup the tuner chipsets
 *
 * @addr:		I2C address used to control the tuner device/chipset
 * @type:		Type of the tuner, as defined at the TUNER_* macros.
 *			Each different tuner model should have an unique
 *			identifier.
 * @mode_mask:		Mask with the allowed tuner modes: V4L2_TUNER_RADIO,
 *			V4L2_TUNER_ANALOG_TV and/or V4L2_TUNER_DIGITAL_TV,
 *			describing if the tuner should be used to support
 *			Radio, analog TV and/or digital TV.
 * @config:		Used to send tuner-specific configuration for complex
 *			tuners that require extra parameters to be set.
 *			Only a very few tuners require it and its usage on
 *			newer tuners should be avoided.
 * @tuner_callback:	Some tuners require to call back the bridge driver,
 *			in order to do some tasks like rising a GPIO at the
 *			bridge chipset, in order to do things like resetting
 *			the device.
 *
 * Older boards only had a single tuner device. Nowadays multiple tuner
 * devices may be present on a single board. Using TUNER_SET_TYPE_ADDR
 * to pass the tuner_setup structure it is possible to setup each tuner
 * device in turn.
 *
 * Since multiple devices may be present it is no longer sufficient to
 * send a command to a single i2c device. Instead you should broadcast
 * the command to all i2c devices.
 *
 * By setting the mode_mask correctly you can select which commands are
 * accepted by a specific tuner device. For example, set mode_mask to
 * T_RADIO if the device is a radio-only tuner. That specific tuner will
 * only accept commands when the tuner is in radio mode and ignore them
 * when the tuner is set to TV mode.
 */

struct tuner_setup {};

#endif /* __KERNEL__ */

#endif /* _TUNER_H */