Commit | Line | Data |
---|---|---|
66410bfd CL |
1 | #ifndef XONAR_DG_H_INCLUDED |
2 | #define XONAR_DG_H_INCLUDED | |
3 | ||
4 | #include "oxygen.h" | |
5 | ||
ddd624c3 RV |
6 | #define GPIO_MAGIC 0x0008 |
7 | #define GPIO_HP_DETECT 0x0010 | |
8 | #define GPIO_INPUT_ROUTE 0x0060 | |
9 | #define GPIO_HP_REAR 0x0080 | |
10 | #define GPIO_OUTPUT_ENABLE 0x0100 | |
11 | ||
12 | #define CAPTURE_SRC_MIC 0 | |
13 | #define CAPTURE_SRC_FP_MIC 1 | |
14 | #define CAPTURE_SRC_LINE 2 | |
15 | #define CAPTURE_SRC_AUX 3 | |
16 | ||
17 | #define PLAYBACK_DST_HP 0 | |
18 | #define PLAYBACK_DST_HP_FP 1 | |
19 | #define PLAYBACK_DST_MULTICH 2 | |
20 | ||
bed61935 RV |
21 | enum cs4245_shadow_operation { |
22 | CS4245_SAVE_TO_SHADOW, | |
23 | CS4245_LOAD_FROM_SHADOW | |
24 | }; | |
25 | ||
ddd624c3 | 26 | struct dg { |
bed61935 RV |
27 | /* shadow copy of the CS4245 register space */ |
28 | unsigned char cs4245_shadow[17]; | |
1f91ecc1 RV |
29 | /* output select: headphone/speakers */ |
30 | unsigned char pcm_output; | |
ddd624c3 RV |
31 | unsigned int output_sel; |
32 | s8 input_vol[4][2]; | |
33 | unsigned int input_sel; | |
34 | u8 hp_vol_att; | |
ddd624c3 RV |
35 | }; |
36 | ||
66410bfd CL |
37 | extern struct oxygen_model model_xonar_dg; |
38 | ||
39 | #endif |