aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/oxygen/hifier.c6
-rw-r--r--sound/pci/oxygen/oxygen.c6
-rw-r--r--sound/pci/oxygen/oxygen_lib.c3
-rw-r--r--sound/pci/oxygen/virtuoso.c23
4 files changed, 20 insertions, 18 deletions
diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c
index bf39c72a130c..dec9073d6ed1 100644
--- a/sound/pci/oxygen/hifier.c
+++ b/sound/pci/oxygen/hifier.c
@@ -66,12 +66,12 @@ static void hifier_init(struct oxygen *chip)
66{ 66{
67 struct hifier_data *data = chip->model_data; 67 struct hifier_data *data = chip->model_data;
68 68
69 data->ak4396_ctl2 = AK4396_DEM_OFF | AK4396_DFS_NORMAL; 69 data->ak4396_ctl2 = AK4396_SMUTE | AK4396_DEM_OFF | AK4396_DFS_NORMAL;
70 ak4396_write(chip, AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN); 70 ak4396_write(chip, AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN);
71 ak4396_write(chip, AK4396_CONTROL_2, data->ak4396_ctl2); 71 ak4396_write(chip, AK4396_CONTROL_2, data->ak4396_ctl2);
72 ak4396_write(chip, AK4396_CONTROL_3, AK4396_PCM); 72 ak4396_write(chip, AK4396_CONTROL_3, AK4396_PCM);
73 ak4396_write(chip, AK4396_LCH_ATT, 0xff); 73 ak4396_write(chip, AK4396_LCH_ATT, 0);
74 ak4396_write(chip, AK4396_RCH_ATT, 0xff); 74 ak4396_write(chip, AK4396_RCH_ATT, 0);
75 75
76 snd_component_add(chip->card, "AK4396"); 76 snd_component_add(chip->card, "AK4396");
77 snd_component_add(chip->card, "CS5340"); 77 snd_component_add(chip->card, "CS5340");
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c
index 718169792c3b..636315612c32 100644
--- a/sound/pci/oxygen/oxygen.c
+++ b/sound/pci/oxygen/oxygen.c
@@ -112,7 +112,7 @@ static void ak4396_init(struct oxygen *chip)
112 struct generic_data *data = chip->model_data; 112 struct generic_data *data = chip->model_data;
113 unsigned int i; 113 unsigned int i;
114 114
115 data->ak4396_ctl2 = AK4396_DEM_OFF | AK4396_DFS_NORMAL; 115 data->ak4396_ctl2 = AK4396_SMUTE | AK4396_DEM_OFF | AK4396_DFS_NORMAL;
116 for (i = 0; i < 4; ++i) { 116 for (i = 0; i < 4; ++i) {
117 ak4396_write(chip, i, 117 ak4396_write(chip, i,
118 AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN); 118 AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN);
@@ -120,8 +120,8 @@ static void ak4396_init(struct oxygen *chip)
120 AK4396_CONTROL_2, data->ak4396_ctl2); 120 AK4396_CONTROL_2, data->ak4396_ctl2);
121 ak4396_write(chip, i, 121 ak4396_write(chip, i,
122 AK4396_CONTROL_3, AK4396_PCM); 122 AK4396_CONTROL_3, AK4396_PCM);
123 ak4396_write(chip, i, AK4396_LCH_ATT, 0xff); 123 ak4396_write(chip, i, AK4396_LCH_ATT, 0);
124 ak4396_write(chip, i, AK4396_RCH_ATT, 0xff); 124 ak4396_write(chip, i, AK4396_RCH_ATT, 0);
125 } 125 }
126 snd_component_add(chip->card, "AK4396"); 126 snd_component_add(chip->card, "AK4396");
127} 127}
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c
index b7aa9fcb6b81..f84f6a128ee9 100644
--- a/sound/pci/oxygen/oxygen_lib.c
+++ b/sound/pci/oxygen/oxygen_lib.c
@@ -221,7 +221,8 @@ static void oxygen_init(struct oxygen *chip)
221 221
222 chip->dac_routing = 1; 222 chip->dac_routing = 1;
223 for (i = 0; i < 8; ++i) 223 for (i = 0; i < 8; ++i)
224 chip->dac_volume[i] = chip->model->dac_volume_max; 224 chip->dac_volume[i] = chip->model->dac_volume_min;
225 chip->dac_mute = 1;
225 chip->spdif_playback_enable = 1; 226 chip->spdif_playback_enable = 1;
226 chip->spdif_bits = OXYGEN_SPDIF_C | OXYGEN_SPDIF_ORIGINAL | 227 chip->spdif_bits = OXYGEN_SPDIF_C | OXYGEN_SPDIF_ORIGINAL |
227 (IEC958_AES1_CON_PCM_CODER << OXYGEN_SPDIF_CATEGORY_SHIFT); 228 (IEC958_AES1_CON_PCM_CODER << OXYGEN_SPDIF_CATEGORY_SHIFT);
diff --git a/sound/pci/oxygen/virtuoso.c b/sound/pci/oxygen/virtuoso.c
index 37f53a8c5888..fe4e289840b4 100644
--- a/sound/pci/oxygen/virtuoso.c
+++ b/sound/pci/oxygen/virtuoso.c
@@ -188,12 +188,13 @@ static void xonar_d2_init(struct oxygen *chip)
188 data->output_enable_bit = GPIO_D2_OUTPUT_ENABLE; 188 data->output_enable_bit = GPIO_D2_OUTPUT_ENABLE;
189 189
190 for (i = 0; i < 4; ++i) { 190 for (i = 0; i < 4; ++i) {
191 pcm1796_write(chip, i, 18, PCM1796_FMT_24_LJUST | PCM1796_ATLD); 191 pcm1796_write(chip, i, 18, PCM1796_MUTE | PCM1796_DMF_DISABLED |
192 PCM1796_FMT_24_LJUST | PCM1796_ATLD);
192 pcm1796_write(chip, i, 19, PCM1796_FLT_SHARP | PCM1796_ATS_1); 193 pcm1796_write(chip, i, 19, PCM1796_FLT_SHARP | PCM1796_ATS_1);
193 pcm1796_write(chip, i, 20, PCM1796_OS_64); 194 pcm1796_write(chip, i, 20, PCM1796_OS_64);
194 pcm1796_write(chip, i, 21, 0); 195 pcm1796_write(chip, i, 21, 0);
195 pcm1796_write(chip, i, 16, 0xff); /* set ATL/ATR after ATLD */ 196 pcm1796_write(chip, i, 16, 0x0f); /* set ATL/ATR after ATLD */
196 pcm1796_write(chip, i, 17, 0xff); 197 pcm1796_write(chip, i, 17, 0x0f);
197 } 198 }
198 199
199 oxygen_set_bits16(chip, OXYGEN_GPIO_CONTROL, GPIO_D2_ALT); 200 oxygen_set_bits16(chip, OXYGEN_GPIO_CONTROL, GPIO_D2_ALT);
@@ -239,8 +240,8 @@ static void xonar_dx_init(struct oxygen *chip)
239 CS4398_DEM_NONE | CS4398_DIF_LJUST); 240 CS4398_DEM_NONE | CS4398_DIF_LJUST);
240 cs4398_write(chip, 3, CS4398_ATAPI_B_R | CS4398_ATAPI_A_L); 241 cs4398_write(chip, 3, CS4398_ATAPI_B_R | CS4398_ATAPI_A_L);
241 cs4398_write(chip, 4, CS4398_MUTEP_LOW | CS4398_PAMUTE); 242 cs4398_write(chip, 4, CS4398_MUTEP_LOW | CS4398_PAMUTE);
242 cs4398_write(chip, 5, 0); 243 cs4398_write(chip, 5, 0xfe);
243 cs4398_write(chip, 6, 0); 244 cs4398_write(chip, 6, 0xfe);
244 cs4398_write(chip, 7, CS4398_RMP_DN | CS4398_RMP_UP | 245 cs4398_write(chip, 7, CS4398_RMP_DN | CS4398_RMP_UP |
245 CS4398_ZERO_CROSS | CS4398_SOFT_RAMP); 246 CS4398_ZERO_CROSS | CS4398_SOFT_RAMP);
246 cs4362a_write(chip, 0x02, CS4362A_DIF_LJUST); 247 cs4362a_write(chip, 0x02, CS4362A_DIF_LJUST);
@@ -250,16 +251,16 @@ static void xonar_dx_init(struct oxygen *chip)
250 cs4362a_write(chip, 0x05, 0); 251 cs4362a_write(chip, 0x05, 0);
251 cs4362a_write(chip, 0x06, CS4362A_FM_SINGLE | 252 cs4362a_write(chip, 0x06, CS4362A_FM_SINGLE |
252 CS4362A_ATAPI_B_R | CS4362A_ATAPI_A_L); 253 CS4362A_ATAPI_B_R | CS4362A_ATAPI_A_L);
254 cs4362a_write(chip, 0x07, 0x7f | CS4362A_MUTE);
255 cs4362a_write(chip, 0x08, 0x7f | CS4362A_MUTE);
253 cs4362a_write(chip, 0x09, CS4362A_FM_SINGLE | 256 cs4362a_write(chip, 0x09, CS4362A_FM_SINGLE |
254 CS4362A_ATAPI_B_R | CS4362A_ATAPI_A_L); 257 CS4362A_ATAPI_B_R | CS4362A_ATAPI_A_L);
258 cs4362a_write(chip, 0x0a, 0x7f | CS4362A_MUTE);
259 cs4362a_write(chip, 0x0b, 0x7f | CS4362A_MUTE);
255 cs4362a_write(chip, 0x0c, CS4362A_FM_SINGLE | 260 cs4362a_write(chip, 0x0c, CS4362A_FM_SINGLE |
256 CS4362A_ATAPI_B_R | CS4362A_ATAPI_A_L); 261 CS4362A_ATAPI_B_R | CS4362A_ATAPI_A_L);
257 cs4362a_write(chip, 0x07, 0); 262 cs4362a_write(chip, 0x0d, 0x7f | CS4362A_MUTE);
258 cs4362a_write(chip, 0x08, 0); 263 cs4362a_write(chip, 0x0e, 0x7f | CS4362A_MUTE);
259 cs4362a_write(chip, 0x0a, 0);
260 cs4362a_write(chip, 0x0b, 0);
261 cs4362a_write(chip, 0x0d, 0);
262 cs4362a_write(chip, 0x0e, 0);
263 /* clear power down */ 264 /* clear power down */
264 cs4398_write(chip, 8, CS4398_CPEN); 265 cs4398_write(chip, 8, CS4398_CPEN);
265 cs4362a_write(chip, 0x01, CS4362A_CPEN); 266 cs4362a_write(chip, 0x01, CS4362A_CPEN);