diff options
author | Roman Volkov <v1ron@mail.ru> | 2014-01-24 07:18:07 -0500 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2014-01-29 14:45:46 -0500 |
commit | ddd624c332698eb3ee5293bca6b5b3a97d05c0b6 (patch) | |
tree | 129c285f6685bf0b5e2883bf1225348fd4a42e0b /sound | |
parent | c4d4390c581603ec449c648df3be6b50281db8a3 (diff) |
ALSA: oxygen: additional definitions for the Xonar DG/DGX card
Add additional constants to the xonar_dg.h file:
capture and playback sources. Move GPIO_* constants and the
dg struct to the header file from the xonar_dg.c file.
Signed-off-by: Roman Volkov <v1ron@mail.ru>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/oxygen/xonar_dg.c | 14 | ||||
-rw-r--r-- | sound/pci/oxygen/xonar_dg.h | 23 |
2 files changed, 23 insertions, 14 deletions
diff --git a/sound/pci/oxygen/xonar_dg.c b/sound/pci/oxygen/xonar_dg.c index 7f5259e70a71..c175720f1c7a 100644 --- a/sound/pci/oxygen/xonar_dg.c +++ b/sound/pci/oxygen/xonar_dg.c | |||
@@ -64,20 +64,6 @@ | |||
64 | #include "xonar_dg.h" | 64 | #include "xonar_dg.h" |
65 | #include "cs4245.h" | 65 | #include "cs4245.h" |
66 | 66 | ||
67 | #define GPIO_MAGIC 0x0008 | ||
68 | #define GPIO_HP_DETECT 0x0010 | ||
69 | #define GPIO_INPUT_ROUTE 0x0060 | ||
70 | #define GPIO_HP_REAR 0x0080 | ||
71 | #define GPIO_OUTPUT_ENABLE 0x0100 | ||
72 | |||
73 | struct dg { | ||
74 | unsigned int output_sel; | ||
75 | s8 input_vol[4][2]; | ||
76 | unsigned int input_sel; | ||
77 | u8 hp_vol_att; | ||
78 | u8 cs4245_regs[0x11]; | ||
79 | }; | ||
80 | |||
81 | static void cs4245_write(struct oxygen *chip, unsigned int reg, u8 value) | 67 | static void cs4245_write(struct oxygen *chip, unsigned int reg, u8 value) |
82 | { | 68 | { |
83 | struct dg *data = chip->model_data; | 69 | struct dg *data = chip->model_data; |
diff --git a/sound/pci/oxygen/xonar_dg.h b/sound/pci/oxygen/xonar_dg.h index 5688d78609a9..081269224850 100644 --- a/sound/pci/oxygen/xonar_dg.h +++ b/sound/pci/oxygen/xonar_dg.h | |||
@@ -3,6 +3,29 @@ | |||
3 | 3 | ||
4 | #include "oxygen.h" | 4 | #include "oxygen.h" |
5 | 5 | ||
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 | |||
21 | struct dg { | ||
22 | unsigned int output_sel; | ||
23 | s8 input_vol[4][2]; | ||
24 | unsigned int input_sel; | ||
25 | u8 hp_vol_att; | ||
26 | u8 cs4245_regs[0x11]; | ||
27 | }; | ||
28 | |||
6 | extern struct oxygen_model model_xonar_dg; | 29 | extern struct oxygen_model model_xonar_dg; |
7 | 30 | ||
8 | #endif | 31 | #endif |