WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cxd2880 / cxd2880_tnrdmd_dvbt2.h
blob7108e3540093f07d8968570efe6db2c9b490287b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * cxd2880_tnrdmd_dvbt2.h
4 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5 * control interface for DVB-T2
7 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
8 */
10 #ifndef CXD2880_TNRDMD_DVBT2_H
11 #define CXD2880_TNRDMD_DVBT2_H
13 #include "cxd2880_common.h"
14 #include "cxd2880_tnrdmd.h"
16 enum cxd2880_tnrdmd_dvbt2_tune_info {
17 CXD2880_TNRDMD_DVBT2_TUNE_INFO_OK,
18 CXD2880_TNRDMD_DVBT2_TUNE_INFO_INVALID_PLP_ID
21 struct cxd2880_dvbt2_tune_param {
22 u32 center_freq_khz;
23 enum cxd2880_dtv_bandwidth bandwidth;
24 u16 data_plp_id;
25 enum cxd2880_dvbt2_profile profile;
26 enum cxd2880_tnrdmd_dvbt2_tune_info tune_info;
29 #define CXD2880_DVBT2_TUNE_PARAM_PLPID_AUTO 0xffff
31 int cxd2880_tnrdmd_dvbt2_tune1(struct cxd2880_tnrdmd *tnr_dmd,
32 struct cxd2880_dvbt2_tune_param
33 *tune_param);
35 int cxd2880_tnrdmd_dvbt2_tune2(struct cxd2880_tnrdmd *tnr_dmd,
36 struct cxd2880_dvbt2_tune_param
37 *tune_param);
39 int cxd2880_tnrdmd_dvbt2_sleep_setting(struct cxd2880_tnrdmd
40 *tnr_dmd);
42 int cxd2880_tnrdmd_dvbt2_check_demod_lock(struct cxd2880_tnrdmd
43 *tnr_dmd,
44 enum
45 cxd2880_tnrdmd_lock_result
46 *lock);
48 int cxd2880_tnrdmd_dvbt2_check_ts_lock(struct cxd2880_tnrdmd
49 *tnr_dmd,
50 enum
51 cxd2880_tnrdmd_lock_result
52 *lock);
54 int cxd2880_tnrdmd_dvbt2_set_plp_cfg(struct cxd2880_tnrdmd
55 *tnr_dmd, u8 auto_plp,
56 u8 plp_id);
58 int cxd2880_tnrdmd_dvbt2_diver_fef_setting(struct cxd2880_tnrdmd
59 *tnr_dmd);
61 int cxd2880_tnrdmd_dvbt2_check_l1post_valid(struct cxd2880_tnrdmd
62 *tnr_dmd,
63 u8 *l1_post_valid);
65 #endif