Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     TDA8261 8PSK/QPSK tuner driver
0004     Copyright (C) Manu Abraham (abraham.manu@gmail.com)
0005 
0006 */
0007 
0008 #ifndef __TDA8261_H
0009 #define __TDA8261_H
0010 
0011 enum tda8261_step {
0012     TDA8261_STEP_2000 = 0,  /* 2000 kHz */
0013     TDA8261_STEP_1000,  /* 1000 kHz */
0014     TDA8261_STEP_500,   /*  500 kHz */
0015     TDA8261_STEP_250,   /*  250 kHz */
0016     TDA8261_STEP_125    /*  125 kHz */
0017 };
0018 
0019 struct tda8261_config {
0020 //  u8          buf[16];
0021     u8          addr;
0022     enum tda8261_step   step_size;
0023 };
0024 
0025 #if IS_REACHABLE(CONFIG_DVB_TDA8261)
0026 
0027 extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
0028                        const struct tda8261_config *config,
0029                        struct i2c_adapter *i2c);
0030 
0031 #else
0032 
0033 static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
0034                           const struct tda8261_config *config,
0035                           struct i2c_adapter *i2c)
0036 {
0037     printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__);
0038     return NULL;
0039 }
0040 
0041 #endif //CONFIG_DVB_TDA8261
0042 
0043 #endif// __TDA8261_H