VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/tda8425.h@ 25078

最後變更 在這個檔案從25078是 25078,由 vboxsync 提交於 15 年 前

Additions/x11/x11include: exported and set eol-style on new headers

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.2 KB
 
1#ifndef __TDA8425_H__
2#define __TDA8425_H__
3
4#include "xf86i2c.h"
5
6typedef 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
26TDA8425Ptr Detect_tda8425(I2CBusPtr b, I2CSlaveAddr addr,Bool force);
27Bool tda8425_init(TDA8425Ptr t);
28void tda8425_setaudio(TDA8425Ptr t);
29void tda8425_mute(TDA8425Ptr t, Bool mute);
30
31#define TDA8425SymbolsList \
32 "Detect_tda8425", \
33 "tda8425_init", \
34 "tda8425_setaudio", \
35 "tda8425_mute"
36
37#define xf86_Detect_tda8425 ((TDA8425Ptr (*)(I2CBusPtr, I2CSlaveAddr,Bool))LoaderSymbol("Detect_tda8425"))
38#define xf86_tda8425_init ((Bool (*)(TDA8425Ptr))LoaderSymbol("tda8425_init"))
39#define xf86_tda8425_setaudio ((void (*)(TDA8425Ptr))LoaderSymbol("tda8425_setaudio"))
40#define xf86_tda8425_mute ((void (*)(TDA8425Ptr, Bool))LoaderSymbol("tda8425_mute"))
41
42#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette