1 | #ifndef __TDA9850_H__
|
---|
2 | #define __TDA9850_H__
|
---|
3 |
|
---|
4 | #include "xf86i2c.h"
|
---|
5 |
|
---|
6 | typedef struct {
|
---|
7 | I2CDevRec d;
|
---|
8 |
|
---|
9 | int mux;
|
---|
10 | int stereo;
|
---|
11 | int sap;
|
---|
12 | Bool mute;
|
---|
13 | Bool sap_mute;
|
---|
14 | } TDA9850Rec, *TDA9850Ptr;
|
---|
15 |
|
---|
16 | #define TDA9850_ADDR_1 0xB4
|
---|
17 |
|
---|
18 | #define xf86_Detect_tda9850 Detect_tda9850
|
---|
19 | extern _X_EXPORT TDA9850Ptr Detect_tda9850(I2CBusPtr b, I2CSlaveAddr addr);
|
---|
20 |
|
---|
21 | #define xf86_tda9850_init tda9850_init
|
---|
22 | extern _X_EXPORT Bool tda9850_init(TDA9850Ptr t);
|
---|
23 |
|
---|
24 | #define xf86_tda9850_setaudio tda9850_setaudio
|
---|
25 | extern _X_EXPORT void tda9850_setaudio(TDA9850Ptr t);
|
---|
26 |
|
---|
27 | #define xf86_tda9850_mute tda9850_mute
|
---|
28 | extern _X_EXPORT void tda9850_mute(TDA9850Ptr t, Bool mute);
|
---|
29 |
|
---|
30 | #define xf86_tda9850_sap_mute tda9850_sap_mute
|
---|
31 | extern _X_EXPORT void tda9850_sap_mute(TDA9850Ptr t, Bool sap_mute);
|
---|
32 |
|
---|
33 | #define xf86_tda9850_getstatus tda9850_getstatus
|
---|
34 | extern _X_EXPORT CARD16 tda9850_getstatus(TDA9850Ptr t);
|
---|
35 |
|
---|
36 | #define TDA9850SymbolsList \
|
---|
37 | "Detect_tda9850", \
|
---|
38 | "tda9850_init", \
|
---|
39 | "tda9850_setaudio", \
|
---|
40 | "tda9850_mute", \
|
---|
41 | "tda9850_sap_mute"
|
---|
42 |
|
---|
43 | #endif
|
---|