1 | #ifndef __TDA9885_H__
|
---|
2 | #define __TDA9885_H__
|
---|
3 |
|
---|
4 | #include "xf86i2c.h"
|
---|
5 |
|
---|
6 | typedef struct {
|
---|
7 | I2CDevRec d;
|
---|
8 |
|
---|
9 | /* write-only parameters */
|
---|
10 | /* B DATA */
|
---|
11 | CARD8 sound_trap;
|
---|
12 | CARD8 auto_mute_fm;
|
---|
13 | CARD8 carrier_mode;
|
---|
14 | CARD8 modulation;
|
---|
15 | CARD8 forced_mute_audio;
|
---|
16 | CARD8 port1;
|
---|
17 | CARD8 port2;
|
---|
18 | /* C DATA */
|
---|
19 | CARD8 top_adjustment;
|
---|
20 | CARD8 deemphasis;
|
---|
21 | CARD8 audio_gain;
|
---|
22 | /* E DATA */
|
---|
23 | CARD8 standard_sound_carrier;
|
---|
24 | CARD8 standard_video_if;
|
---|
25 | CARD8 minimum_gain;
|
---|
26 | CARD8 gating;
|
---|
27 | CARD8 vif_agc;
|
---|
28 | /* read-only values */
|
---|
29 |
|
---|
30 | CARD8 after_reset;
|
---|
31 | CARD8 afc_status;
|
---|
32 | CARD8 vif_level;
|
---|
33 | CARD8 afc_win;
|
---|
34 | CARD8 fm_carrier;
|
---|
35 | } TDA9885Rec, *TDA9885Ptr;
|
---|
36 |
|
---|
37 | #define TDA9885_ADDR_1 0x86
|
---|
38 | #define TDA9885_ADDR_2 0x84
|
---|
39 | #define TDA9885_ADDR_3 0x96
|
---|
40 | #define TDA9885_ADDR_4 0x94
|
---|
41 |
|
---|
42 | #define xf86_Detect_tda9885 Detect_tda9885
|
---|
43 | extern _X_EXPORT TDA9885Ptr Detect_tda9885(I2CBusPtr b, I2CSlaveAddr addr);
|
---|
44 |
|
---|
45 | #define xf86_tda9885_init tda9885_init
|
---|
46 | extern _X_EXPORT Bool tda9885_init(TDA9885Ptr t);
|
---|
47 |
|
---|
48 | #define xf86_tda9885_setparameters tda9885_setparameters
|
---|
49 | extern _X_EXPORT void tda9885_setparameters(TDA9885Ptr t);
|
---|
50 |
|
---|
51 | #define xf86_tda9885_getstatus tda9885_getstatus
|
---|
52 | extern _X_EXPORT void tda9885_getstatus(TDA9885Ptr t);
|
---|
53 |
|
---|
54 | #define xf86_tda9885_dumpstatus tda9885_dumpstatus
|
---|
55 | extern _X_EXPORT void tda9885_dumpstatus(TDA9885Ptr t);
|
---|
56 |
|
---|
57 | #define TDA9885SymbolsList \
|
---|
58 | "Detect_tda9885", \
|
---|
59 | "tda9885_init", \
|
---|
60 | "tda9885_setaudio", \
|
---|
61 | "tda9885_mute"
|
---|
62 |
|
---|
63 | #endif
|
---|