Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  *  Driver for Microtune MT2131 "QAM/8VSB single chip tuner"
0004  *
0005  *  Copyright (c) 2006 Steven Toth <stoth@linuxtv.org>
0006  */
0007 
0008 #ifndef __MT2131_H__
0009 #define __MT2131_H__
0010 
0011 struct dvb_frontend;
0012 struct i2c_adapter;
0013 
0014 struct mt2131_config {
0015     u8 i2c_address;
0016     u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */
0017 };
0018 
0019 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2131)
0020 extern struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,
0021                       struct i2c_adapter *i2c,
0022                       struct mt2131_config *cfg,
0023                       u16 if1);
0024 #else
0025 static inline struct dvb_frontend* mt2131_attach(struct dvb_frontend *fe,
0026                          struct i2c_adapter *i2c,
0027                          struct mt2131_config *cfg,
0028                          u16 if1)
0029 {
0030     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0031     return NULL;
0032 }
0033 #endif /* CONFIG_MEDIA_TUNER_MT2131 */
0034 
0035 #endif /* __MT2131_H__ */