Commit | Line | Data |
---|---|---|
c942fddf | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
96bf2f2b | 2 | /* |
dbad108b PB |
3 | * Driver for |
4 | * Samsung S5H1420 and | |
5 | * PnpNetwork PN1010 QPSK Demodulator | |
6 | * | |
7 | * Copyright (C) 2005 Andrew de Quincey <adq_dvb@lidskialf.net> | |
8 | * Copyright (C) 2005-8 Patrick Boettcher <pb@linuxtv.org> | |
dbad108b | 9 | */ |
96bf2f2b AQ |
10 | #ifndef S5H1420_H |
11 | #define S5H1420_H | |
12 | ||
13 | #include <linux/dvb/frontend.h> | |
14 | ||
15 | struct s5h1420_config | |
16 | { | |
17 | /* the demodulator's i2c address */ | |
18 | u8 demod_address; | |
19 | ||
a9d6a80b | 20 | /* does the inversion require inversion? */ |
c18c5ffe | 21 | u8 invert:1; |
dbad108b | 22 | |
c18c5ffe PB |
23 | u8 repeated_start_workaround:1; |
24 | u8 cdclk_polarity:1; /* 1 == falling edge, 0 == raising edge */ | |
25 | ||
26 | u8 serial_mpeg:1; | |
96bf2f2b AQ |
27 | }; |
28 | ||
9b174527 | 29 | #if IS_REACHABLE(CONFIG_DVB_S5H1420) |
dbad108b PB |
30 | extern struct dvb_frontend *s5h1420_attach(const struct s5h1420_config *config, |
31 | struct i2c_adapter *i2c); | |
32 | extern struct i2c_adapter *s5h1420_get_tuner_i2c_adapter(struct dvb_frontend *fe); | |
102a342b | 33 | #else |
dbad108b PB |
34 | static inline struct dvb_frontend *s5h1420_attach(const struct s5h1420_config *config, |
35 | struct i2c_adapter *i2c) | |
102a342b | 36 | { |
271ddbf7 | 37 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
102a342b AQ |
38 | return NULL; |
39 | } | |
dbad108b PB |
40 | |
41 | static inline struct i2c_adapter *s5h1420_get_tuner_i2c_adapter(struct dvb_frontend *fe) | |
42 | { | |
43 | return NULL; | |
44 | } | |
102a342b | 45 | #endif // CONFIG_DVB_S5H1420 |
96bf2f2b AQ |
46 | |
47 | #endif // S5H1420_H |