diff options
Diffstat (limited to 'sound/isa/azt2320.c')
-rw-r--r-- | sound/isa/azt2320.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/sound/isa/azt2320.c b/sound/isa/azt2320.c index a24db091d445..3e74d1a3928e 100644 --- a/sound/isa/azt2320.c +++ b/sound/isa/azt2320.c | |||
@@ -76,7 +76,7 @@ struct snd_card_azt2320 { | |||
76 | int dev_no; | 76 | int dev_no; |
77 | struct pnp_dev *dev; | 77 | struct pnp_dev *dev; |
78 | struct pnp_dev *devmpu; | 78 | struct pnp_dev *devmpu; |
79 | struct snd_cs4231 *chip; | 79 | struct snd_wss *chip; |
80 | }; | 80 | }; |
81 | 81 | ||
82 | static struct pnp_card_device_id snd_azt2320_pnpids[] = { | 82 | static struct pnp_card_device_id snd_azt2320_pnpids[] = { |
@@ -181,7 +181,7 @@ static int __devinit snd_card_azt2320_probe(int dev, | |||
181 | int error; | 181 | int error; |
182 | struct snd_card *card; | 182 | struct snd_card *card; |
183 | struct snd_card_azt2320 *acard; | 183 | struct snd_card_azt2320 *acard; |
184 | struct snd_cs4231 *chip; | 184 | struct snd_wss *chip; |
185 | struct snd_opl3 *opl3; | 185 | struct snd_opl3 *opl3; |
186 | 186 | ||
187 | if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, | 187 | if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE, |
@@ -200,11 +200,11 @@ static int __devinit snd_card_azt2320_probe(int dev, | |||
200 | return error; | 200 | return error; |
201 | } | 201 | } |
202 | 202 | ||
203 | if ((error = snd_cs4231_create(card, wss_port[dev], -1, | 203 | error = snd_wss_create(card, wss_port[dev], -1, |
204 | irq[dev], | 204 | irq[dev], |
205 | dma1[dev], | 205 | dma1[dev], dma2[dev], |
206 | dma2[dev], | 206 | WSS_HW_DETECT, 0, &chip); |
207 | CS4231_HW_DETECT, 0, &chip)) < 0) { | 207 | if (error < 0) { |
208 | snd_card_free(card); | 208 | snd_card_free(card); |
209 | return error; | 209 | return error; |
210 | } | 210 | } |
@@ -214,15 +214,18 @@ static int __devinit snd_card_azt2320_probe(int dev, | |||
214 | sprintf(card->longname, "%s, WSS at 0x%lx, irq %i, dma %i&%i", | 214 | sprintf(card->longname, "%s, WSS at 0x%lx, irq %i, dma %i&%i", |
215 | card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); | 215 | card->shortname, chip->port, irq[dev], dma1[dev], dma2[dev]); |
216 | 216 | ||
217 | if ((error = snd_cs4231_pcm(chip, 0, NULL)) < 0) { | 217 | error = snd_wss_pcm(chip, 0, NULL); |
218 | if (error < 0) { | ||
218 | snd_card_free(card); | 219 | snd_card_free(card); |
219 | return error; | 220 | return error; |
220 | } | 221 | } |
221 | if ((error = snd_cs4231_mixer(chip)) < 0) { | 222 | error = snd_wss_mixer(chip); |
223 | if (error < 0) { | ||
222 | snd_card_free(card); | 224 | snd_card_free(card); |
223 | return error; | 225 | return error; |
224 | } | 226 | } |
225 | if ((error = snd_cs4231_timer(chip, 0, NULL)) < 0) { | 227 | error = snd_wss_timer(chip, 0, NULL); |
228 | if (error < 0) { | ||
226 | snd_card_free(card); | 229 | snd_card_free(card); |
227 | return error; | 230 | return error; |
228 | } | 231 | } |
@@ -293,7 +296,7 @@ static int snd_azt2320_pnp_suspend(struct pnp_card_link *pcard, pm_message_t sta | |||
293 | { | 296 | { |
294 | struct snd_card *card = pnp_get_card_drvdata(pcard); | 297 | struct snd_card *card = pnp_get_card_drvdata(pcard); |
295 | struct snd_card_azt2320 *acard = card->private_data; | 298 | struct snd_card_azt2320 *acard = card->private_data; |
296 | struct snd_cs4231 *chip = acard->chip; | 299 | struct snd_wss *chip = acard->chip; |
297 | 300 | ||
298 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); | 301 | snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); |
299 | chip->suspend(chip); | 302 | chip->suspend(chip); |
@@ -304,7 +307,7 @@ static int snd_azt2320_pnp_resume(struct pnp_card_link *pcard) | |||
304 | { | 307 | { |
305 | struct snd_card *card = pnp_get_card_drvdata(pcard); | 308 | struct snd_card *card = pnp_get_card_drvdata(pcard); |
306 | struct snd_card_azt2320 *acard = card->private_data; | 309 | struct snd_card_azt2320 *acard = card->private_data; |
307 | struct snd_cs4231 *chip = acard->chip; | 310 | struct snd_wss *chip = acard->chip; |
308 | 311 | ||
309 | chip->resume(chip); | 312 | chip->resume(chip); |
310 | snd_power_change_state(card, SNDRV_CTL_POWER_D0); | 313 | snd_power_change_state(card, SNDRV_CTL_POWER_D0); |