Last change
on this file since 35102 was 32163, checked in by vboxsync, 14 years ago |
Additions/x11/x11include: additional headers for building drivers for X.Org Server 1.9
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef __TDA8425_H__
|
---|
2 | #define __TDA8425_H__
|
---|
3 |
|
---|
4 | #include "xf86i2c.h"
|
---|
5 |
|
---|
6 | typedef struct {
|
---|
7 | I2CDevRec d;
|
---|
8 |
|
---|
9 | int mux;
|
---|
10 | int stereo;
|
---|
11 | int v_left;
|
---|
12 | int v_right;
|
---|
13 | int bass;
|
---|
14 | int treble;
|
---|
15 | int src_sel;
|
---|
16 | Bool mute;
|
---|
17 | } TDA8425Rec, *TDA8425Ptr;
|
---|
18 |
|
---|
19 | #define TDA8425_ADDR_1 0x82
|
---|
20 |
|
---|
21 | /* the third parameter is meant to force detection of tda8425.
|
---|
22 | This is because tda8425 is write-only and complete implementation
|
---|
23 | of I2C protocol is not always available. Besides address there is no good
|
---|
24 | way to autodetect it so we have to _know_ it is there anyway */
|
---|
25 |
|
---|
26 | #define xf86_Detect_tda8425 Detect_tda8425
|
---|
27 | extern _X_EXPORT TDA8425Ptr Detect_tda8425(I2CBusPtr b, I2CSlaveAddr addr,Bool force);
|
---|
28 | #define xf86_tda8425_init tda8425_init
|
---|
29 | extern _X_EXPORT Bool tda8425_init(TDA8425Ptr t);
|
---|
30 | #define xf86_tda8425_setaudio tda8425_setaudio
|
---|
31 | extern _X_EXPORT void tda8425_setaudio(TDA8425Ptr t);
|
---|
32 | #define xf86_tda8425_mute tda8425_mute
|
---|
33 | extern _X_EXPORT void tda8425_mute(TDA8425Ptr t, Bool mute);
|
---|
34 |
|
---|
35 | #define TDA8425SymbolsList \
|
---|
36 | "Detect_tda8425", \
|
---|
37 | "tda8425_init", \
|
---|
38 | "tda8425_setaudio", \
|
---|
39 | "tda8425_mute"
|
---|
40 |
|
---|
41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.