]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/media/dvb-frontends/cxd2880/cxd2880_integ_dvbt2.h
This is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator.
[mirror_ubuntu-artful-kernel.git] / drivers / media / dvb-frontends / cxd2880 / cxd2880_integ_dvbt2.h
1 /*
2 * cxd2880_integ_dvbt2.h
3 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
4 * integration layer interface for DVB-T2
5 *
6 * Copyright (C) 2016, 2017 Sony Semiconductor Solutions Corporation
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; version 2 of the License.
11 *
12 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
15 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
16 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, see <http://www.gnu.org/licenses/>.
25 */
26
27 #ifndef CXD2880_INTEG_DVBT2_H
28 #define CXD2880_INTEG_DVBT2_H
29
30 #include "cxd2880_tnrdmd.h"
31 #include "cxd2880_tnrdmd_dvbt2.h"
32 #include "cxd2880_integ.h"
33
34 #define CXD2880_DVBT2_BASE_WAIT_DMD_LOCK 3500
35 #define CXD2880_DVBT2_BASE_WAIT_TS_LOCK 1500
36 #define CXD2880_DVBT2_LITE_WAIT_DMD_LOCK 5000
37 #define CXD2880_DVBT2_LITE_WAIT_TS_LOCK 2300
38 #define CXD2880_DVBT2_WAIT_LOCK_INTVL 10
39 #define CXD2880_DVBT2_L1POST_TIMEOUT 500
40
41 struct cxd2880_integ_dvbt2_scan_param {
42 u32 start_frequency_khz;
43 u32 end_frequency_khz;
44 u32 step_frequency_khz;
45 enum cxd2880_dtv_bandwidth bandwidth;
46 enum cxd2880_dvbt2_profile t2_profile;
47 };
48
49 struct cxd2880_integ_dvbt2_scan_result {
50 u32 center_freq_khz;
51 enum cxd2880_ret tune_result;
52 struct cxd2880_dvbt2_tune_param dvbt2_tune_param;
53 };
54
55 enum cxd2880_ret cxd2880_integ_dvbt2_tune(struct cxd2880_tnrdmd *tnr_dmd,
56 struct cxd2880_dvbt2_tune_param
57 *tune_param);
58
59 enum cxd2880_ret cxd2880_integ_dvbt2_wait_ts_lock(struct cxd2880_tnrdmd
60 *tnr_dmd,
61 enum cxd2880_dvbt2_profile
62 profile);
63
64 #endif