aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-01-10 10:00:34 -0500
committerTakashi Iwai <tiwai@suse.de>2011-01-10 10:45:56 -0500
commitd2119c05e9aee7e44055220726bb8814a2e242c3 (patch)
tree9b7df8933baf437bb477a5ad9e6b222a886acf9a
parent1f4d7be7293aecd5f8469a46f606f62f0f05d84c (diff)
ALSA: oxygen: remove oxygen_model::private_data field
The number of DACs can now be deduced from the dac_channels_mixer field, so the private_data field is no longer needed. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-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;