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 err = cmi8330_add_sb_mixers(acard->sb); in snd_cmi8330_mixer()
319 static int snd_cmi8330_pnp(int dev, struct snd_cmi8330 *acard, in snd_cmi8330_pnp() argument
327 acard->type = (id->devs[3].id[0]) ? CMI8329 : CMI8330; in snd_cmi8330_pnp()
329 acard->cap = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_cmi8330_pnp()
330 if (acard->cap == NULL) in snd_cmi8330_pnp()
333 acard->play = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_cmi8330_pnp()
334 if (acard->play == NULL) in snd_cmi8330_pnp()
337 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_cmi8330_pnp()
338 if (acard->mpu == NULL) in snd_cmi8330_pnp()
341 pdev = acard->cap; in snd_cmi8330_pnp()
355 pdev = acard->play; in snd_cmi8330_pnp()
375 pdev = acard->mpu; in snd_cmi8330_pnp()
471 struct snd_cmi8330 *acard = card->private_data; in snd_cmi8330_suspend() local
474 acard->wss->suspend(acard->wss); in snd_cmi8330_suspend()
475 snd_sbmixer_suspend(acard->sb); in snd_cmi8330_suspend()
481 struct snd_cmi8330 *acard = card->private_data; in snd_cmi8330_resume() local
483 snd_sbdsp_reset(acard->sb); in snd_cmi8330_resume()
484 snd_sbmixer_suspend(acard->sb); in snd_cmi8330_resume()
485 acard->wss->resume(acard->wss); in snd_cmi8330_resume()
507 struct snd_cmi8330 *acard; in snd_cmi8330_card_new() local
516 acard = card->private_data; in snd_cmi8330_card_new()
517 acard->card = card; in snd_cmi8330_card_new()
524 struct snd_cmi8330 *acard; in snd_cmi8330_probe() local
528 acard = card->private_data; in snd_cmi8330_probe()
532 WSS_HW_DETECT, 0, &acard->wss); in snd_cmi8330_probe()
537 if (acard->wss->hardware != WSS_HW_CMI8330) { in snd_cmi8330_probe()
547 SB_HW_AUTO, &acard->sb); in snd_cmi8330_probe()
552 if (acard->sb->hardware != SB_HW_16) { in snd_cmi8330_probe()
557 snd_wss_out(acard->wss, CS4231_MISC_INFO, 0x40); /* switch on MODE2 */ in snd_cmi8330_probe()
559 snd_wss_out(acard->wss, i, in snd_cmi8330_probe()
562 err = snd_cmi8330_mixer(card, acard); in snd_cmi8330_probe()
568 err = snd_cmi8330_pcm(card, acard); in snd_cmi8330_probe()
595 strcpy(card->driver, (acard->type == CMI8329) ? "CMI8329" : "CMI8330/C3D"); in snd_cmi8330_probe()
596 strcpy(card->shortname, (acard->type == CMI8329) ? "C-Media CMI8329" : "C-Media CMI8330/C3D"); in snd_cmi8330_probe()
599 acard->wss->port, in snd_cmi8330_probe()