aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/azt3328.c
diff options
context:
space:
mode:
authorAndreas Mohr <andi@lisas.de>2010-12-27 15:17:00 -0500
committerTakashi Iwai <tiwai@suse.de>2011-01-02 05:09:18 -0500
commit9fd8d36caabaf3102f14cf652d5ca012d775aaa8 (patch)
treecb2e908aebcd4a7ee6a595d3ad5a8fabbb16c394 /sound/pci/azt3328.c
parent8d9a114e6d4acabf6b23ca8bccf0e486c3bdf85c (diff)
ALSA: azt3328: cosmetics: use a helper variable for codec setup
Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/azt3328.c')
-rw-r--r--sound/pci/azt3328.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
index 3a9a4a1be26f..0cb5499ad36a 100644
--- a/sound/pci/azt3328.c
+++ b/sound/pci/azt3328.c
@@ -2195,6 +2195,7 @@ snd_azf3328_create(struct snd_card *card,
2195 }; 2195 };
2196 u8 dma_init; 2196 u8 dma_init;
2197 enum snd_azf3328_codec_type codec_type; 2197 enum snd_azf3328_codec_type codec_type;
2198 struct snd_azf3328_codec *codec_setup;
2198 2199
2199 *rchip = NULL; 2200 *rchip = NULL;
2200 2201
@@ -2232,15 +2233,17 @@ snd_azf3328_create(struct snd_card *card,
2232 chip->opl3_io = pci_resource_start(pci, 3); 2233 chip->opl3_io = pci_resource_start(pci, 3);
2233 chip->mixer_io = pci_resource_start(pci, 4); 2234 chip->mixer_io = pci_resource_start(pci, 4);
2234 2235
2235 chip->codecs[AZF_CODEC_PLAYBACK].io_base = 2236 codec_setup = &chip->codecs[AZF_CODEC_PLAYBACK];
2236 chip->ctrl_io + AZF_IO_OFFS_CODEC_PLAYBACK; 2237 codec_setup->io_base = chip->ctrl_io + AZF_IO_OFFS_CODEC_PLAYBACK;
2237 chip->codecs[AZF_CODEC_PLAYBACK].name = "PLAYBACK"; 2238 codec_setup->name = "PLAYBACK";
2238 chip->codecs[AZF_CODEC_CAPTURE].io_base = 2239
2239 chip->ctrl_io + AZF_IO_OFFS_CODEC_CAPTURE; 2240 codec_setup = &chip->codecs[AZF_CODEC_CAPTURE];
2240 chip->codecs[AZF_CODEC_CAPTURE].name = "CAPTURE"; 2241 codec_setup->io_base = chip->ctrl_io + AZF_IO_OFFS_CODEC_CAPTURE;
2241 chip->codecs[AZF_CODEC_I2S_OUT].io_base = 2242 codec_setup->name = "CAPTURE";
2242 chip->ctrl_io + AZF_IO_OFFS_CODEC_I2S_OUT; 2243
2243 chip->codecs[AZF_CODEC_I2S_OUT].name = "I2S_OUT"; 2244 codec_setup = &chip->codecs[AZF_CODEC_I2S_OUT];
2245 codec_setup->io_base = chip->ctrl_io + AZF_IO_OFFS_CODEC_I2S_OUT;
2246 codec_setup->name = "I2S_OUT";
2244 2247
2245 if (request_irq(pci->irq, snd_azf3328_interrupt, 2248 if (request_irq(pci->irq, snd_azf3328_interrupt,
2246 IRQF_SHARED, card->shortname, chip)) { 2249 IRQF_SHARED, card->shortname, chip)) {