xref: /linux/drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt.h (revision 26fbb4c8c7c3ee9a4c3b4de555a8587b5a19154e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * cxd2880_tnrdmd_dvbt.h
4  * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5  * control interface for DVB-T
6  *
7  * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
8  */
9 
10 #ifndef CXD2880_TNRDMD_DVBT_H
11 #define CXD2880_TNRDMD_DVBT_H
12 
13 #include "cxd2880_common.h"
14 #include "cxd2880_tnrdmd.h"
15 
16 struct cxd2880_dvbt_tune_param {
17 	u32 center_freq_khz;
18 	enum cxd2880_dtv_bandwidth bandwidth;
19 	enum cxd2880_dvbt_profile profile;
20 };
21 
22 int cxd2880_tnrdmd_dvbt_tune1(struct cxd2880_tnrdmd *tnr_dmd,
23 			      struct cxd2880_dvbt_tune_param
24 			      *tune_param);
25 
26 int cxd2880_tnrdmd_dvbt_tune2(struct cxd2880_tnrdmd *tnr_dmd,
27 			      struct cxd2880_dvbt_tune_param
28 			      *tune_param);
29 
30 int cxd2880_tnrdmd_dvbt_sleep_setting(struct cxd2880_tnrdmd
31 				      *tnr_dmd);
32 
33 int cxd2880_tnrdmd_dvbt_check_demod_lock(struct cxd2880_tnrdmd
34 					 *tnr_dmd,
35 					 enum
36 					 cxd2880_tnrdmd_lock_result
37 					 *lock);
38 
39 int cxd2880_tnrdmd_dvbt_check_ts_lock(struct cxd2880_tnrdmd
40 				      *tnr_dmd,
41 				      enum
42 				      cxd2880_tnrdmd_lock_result
43 				      *lock);
44 
45 #endif
46