aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/oxygen/oxygen.h1
-rw-r--r--sound/pci/oxygen/xonar_pcm179x.c6
2 files changed, 2 insertions, 5 deletions
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h
index 3d9535c2debb..70eff3747158 100644
--- a/sound/pci/oxygen/oxygen.h
+++ b/sound/pci/oxygen/oxygen.h
@@ -97,7 +97,6 @@ struct oxygen_model {
97 void (*dump_registers)(struct oxygen *chip, 97 void (*dump_registers)(struct oxygen *chip,
98 struct snd_info_buffer *buffer); 98 struct snd_info_buffer *buffer);
99 const unsigned int *dac_tlv; 99 const unsigned int *dac_tlv;
100 unsigned long private_data;
101 size_t model_data_size; 100 size_t model_data_size;
102 unsigned int device_config; 101 unsigned int device_config;
103 u8 dac_channels_pcm; 102 u8 dac_channels_pcm;
diff --git a/sound/pci/oxygen/xonar_pcm179x.c b/sound/pci/oxygen/xonar_pcm179x.c
index b55149e9be81..5ec8be3bf7c7 100644
--- a/sound/pci/oxygen/xonar_pcm179x.c
+++ b/sound/pci/oxygen/xonar_pcm179x.c
@@ -381,7 +381,7 @@ static void xonar_hdav_init(struct oxygen *chip)
381 data->pcm179x.generic.ext_power_reg = OXYGEN_GPI_DATA; 381 data->pcm179x.generic.ext_power_reg = OXYGEN_GPI_DATA;
382 data->pcm179x.generic.ext_power_int_reg = OXYGEN_GPI_INTERRUPT_MASK; 382 data->pcm179x.generic.ext_power_int_reg = OXYGEN_GPI_INTERRUPT_MASK;
383 data->pcm179x.generic.ext_power_bit = GPI_EXT_POWER; 383 data->pcm179x.generic.ext_power_bit = GPI_EXT_POWER;
384 data->pcm179x.dacs = chip->model.private_data ? 4 : 1; 384 data->pcm179x.dacs = chip->model.dac_channels_mixer / 2;
385 385
386 pcm1796_init(chip); 386 pcm1796_init(chip);
387 387
@@ -411,7 +411,7 @@ static void xonar_st_init_common(struct oxygen *chip)
411 struct xonar_pcm179x *data = chip->model_data; 411 struct xonar_pcm179x *data = chip->model_data;
412 412
413 data->generic.output_enable_bit = GPIO_ST_OUTPUT_ENABLE; 413 data->generic.output_enable_bit = GPIO_ST_OUTPUT_ENABLE;
414 data->dacs = chip->model.private_data ? 4 : 1; 414 data->dacs = chip->model.dac_channels_mixer / 2;
415 data->hp_gain_offset = 2*-18; 415 data->hp_gain_offset = 2*-18;
416 416
417 pcm1796_init(chip); 417 pcm1796_init(chip);
@@ -1191,7 +1191,6 @@ int __devinit get_xonar_pcm179x_model(struct oxygen *chip,
1191 case GPIO_DB_H6: 1191 case GPIO_DB_H6:
1192 chip->model.shortname = "Xonar HDAV1.3+H6"; 1192 chip->model.shortname = "Xonar HDAV1.3+H6";
1193 chip->model.dac_channels_mixer = 8; 1193 chip->model.dac_channels_mixer = 8;
1194 chip->model.private_data = 1;
1195 break; 1194 break;
1196 } 1195 }
1197 break; 1196 break;
@@ -1206,7 +1205,6 @@ int __devinit get_xonar_pcm179x_model(struct oxygen *chip,
1206 chip->model.shortname = "Xonar ST+H6"; 1205 chip->model.shortname = "Xonar ST+H6";
1207 chip->model.dac_channels_pcm = 8; 1206 chip->model.dac_channels_pcm = 8;
1208 chip->model.dac_channels_mixer = 8; 1207 chip->model.dac_channels_mixer = 8;
1209 chip->model.private_data = 1;
1210 break; 1208 break;
1211 } 1209 }
1212 break; 1210 break;