Lines Matching refs:acard

295 static int snd_cmi8330_mixer(struct snd_card *card, struct snd_cmi8330 *acard)  in snd_cmi8330_mixer()  argument
300 strcpy(card->mixername, (acard->type == CMI8329) ? "CMI8329" : "CMI8330/C3D"); in snd_cmi8330_mixer()
305 acard->wss)); in snd_cmi8330_mixer()
311 if ((err = cmi8330_add_sb_mixers(acard->sb)) < 0) in snd_cmi8330_mixer()
318 static int snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard, in snd_cmi8330_pnp() argument
326 acard->type = (id->devs[3].id[0]) ? CMI8329 : CMI8330; in snd_cmi8330_pnp()
328 acard->cap = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_cmi8330_pnp()
329 if (acard->cap == NULL) in snd_cmi8330_pnp()
332 acard->play = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_cmi8330_pnp()
333 if (acard->play == NULL) in snd_cmi8330_pnp()
336 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_cmi8330_pnp()
337 if (acard->mpu == NULL) in snd_cmi8330_pnp()
340 pdev = acard->cap; in snd_cmi8330_pnp()
354 pdev = acard->play; in snd_cmi8330_pnp()
374 pdev = acard->mpu; in snd_cmi8330_pnp()
470 struct snd_cmi8330 *acard = card->private_data; in snd_cmi8330_suspend() local
473 acard->wss->suspend(acard->wss); in snd_cmi8330_suspend()
474 snd_sbmixer_suspend(acard->sb); in snd_cmi8330_suspend()
480 struct snd_cmi8330 *acard = card->private_data; in snd_cmi8330_resume() local
482 snd_sbdsp_reset(acard->sb); in snd_cmi8330_resume()
483 snd_sbmixer_suspend(acard->sb); in snd_cmi8330_resume()
484 acard->wss->resume(acard->wss); in snd_cmi8330_resume()
506 struct snd_cmi8330 *acard; in snd_cmi8330_card_new() local
515 acard = card->private_data; in snd_cmi8330_card_new()
516 acard->card = card; in snd_cmi8330_card_new()
523 struct snd_cmi8330 *acard; in snd_cmi8330_probe() local
527 acard = card->private_data; in snd_cmi8330_probe()
531 WSS_HW_DETECT, 0, &acard->wss); in snd_cmi8330_probe()
536 if (acard->wss->hardware != WSS_HW_CMI8330) { in snd_cmi8330_probe()
546 SB_HW_AUTO, &acard->sb)) < 0) { in snd_cmi8330_probe()
550 if (acard->sb->hardware != SB_HW_16) { in snd_cmi8330_probe()
555 snd_wss_out(acard->wss, CS4231_MISC_INFO, 0x40); /* switch on MODE2 */ in snd_cmi8330_probe()
557 snd_wss_out(acard->wss, i, in snd_cmi8330_probe()
560 if ((err = snd_cmi8330_mixer(card, acard)) < 0) { in snd_cmi8330_probe()
565 if ((err = snd_cmi8330_pcm(card, acard)) < 0) { in snd_cmi8330_probe()
591 strcpy(card->driver, (acard->type == CMI8329) ? "CMI8329" : "CMI8330/C3D"); in snd_cmi8330_probe()
592 strcpy(card->shortname, (acard->type == CMI8329) ? "C-Media CMI8329" : "C-Media CMI8330/C3D"); in snd_cmi8330_probe()
595 acard->wss->port, in snd_cmi8330_probe()