Lines Matching refs:card

154 	struct snd_card *card;  member
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()
303 err = snd_ctl_add(card, in snd_cmi8330_mixer()
320 struct pnp_card_link *card, in snd_cmi8330_pnp() argument
329 acard->cap = pnp_request_card_device(card, id->devs[0].id, NULL); in snd_cmi8330_pnp()
333 acard->play = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_cmi8330_pnp()
337 acard->mpu = pnp_request_card_device(card, id->devs[2].id, NULL); in snd_cmi8330_pnp()
427 static int snd_cmi8330_pcm(struct snd_card *card, struct snd_cmi8330 *chip) in snd_cmi8330_pcm() argument
437 err = snd_pcm_new(card, (chip->type == CMI8329) ? "CMI8329" : "CMI8330", 0, 1, 1, &pcm); in snd_cmi8330_pcm()
461 card->dev, 64*1024, 128*1024); in snd_cmi8330_pcm()
469 static int snd_cmi8330_suspend(struct snd_card *card) in snd_cmi8330_suspend() argument
471 struct snd_cmi8330 *acard = card->private_data; in snd_cmi8330_suspend()
473 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); in snd_cmi8330_suspend()
479 static int snd_cmi8330_resume(struct snd_card *card) in snd_cmi8330_resume() argument
481 struct snd_cmi8330 *acard = card->private_data; in snd_cmi8330_resume()
486 snd_power_change_state(card, SNDRV_CTL_POWER_D0); in snd_cmi8330_resume()
506 struct snd_card *card; in snd_cmi8330_card_new() local
511 sizeof(struct snd_cmi8330), &card); in snd_cmi8330_card_new()
516 acard = card->private_data; in snd_cmi8330_card_new()
517 acard->card = card; in snd_cmi8330_card_new()
518 *cardp = card; in snd_cmi8330_card_new()
522 static int snd_cmi8330_probe(struct snd_card *card, int dev) in snd_cmi8330_probe() argument
528 acard = card->private_data; in snd_cmi8330_probe()
529 err = snd_wss_create(card, wssport[dev] + 4, -1, in snd_cmi8330_probe()
542 err = snd_sbdsp_create(card, sbport[dev], 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()
574 if (snd_opl3_create(card, in snd_cmi8330_probe()
588 if (snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, 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()
597 sprintf(card->longname, "%s at 0x%lx, irq %d, dma %d", in snd_cmi8330_probe()
598 card->shortname, in snd_cmi8330_probe()
603 return snd_card_register(card); in snd_cmi8330_probe()
625 struct snd_card *card; in snd_cmi8330_isa_probe() local
628 err = snd_cmi8330_card_new(pdev, dev, &card); in snd_cmi8330_isa_probe()
631 err = snd_cmi8330_probe(card, dev); in snd_cmi8330_isa_probe()
634 dev_set_drvdata(pdev, card); in snd_cmi8330_isa_probe()
671 struct snd_card *card; in snd_cmi8330_pnp_detect() local
681 res = snd_cmi8330_card_new(&pcard->card->dev, dev, &card); in snd_cmi8330_pnp_detect()
684 res = snd_cmi8330_pnp(dev, card->private_data, pcard, pid); in snd_cmi8330_pnp_detect()
689 res = snd_cmi8330_probe(card, dev); in snd_cmi8330_pnp_detect()
692 pnp_set_card_drvdata(pcard, card); in snd_cmi8330_pnp_detect()