Lines Matching defs:card
711 snd_device_free(pcm->codec->card, pcm->pcm);
758 snd_device_disconnect(codec->card, pcm->pcm);
871 static int snd_hda_codec_device_init(struct hda_bus *bus, struct snd_card *card,
878 dev_dbg(card->dev, "%s: entry\n", __func__);
889 sprintf(name, "hdaudioC%dD%d", card->number, codec_addr);
905 * @card: card for this codec
911 int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card,
916 ret = snd_hda_codec_device_init(bus, card, codec_addr, codecp);
920 return snd_hda_codec_device_new(bus, card, codec_addr, *codecp);
924 int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card,
935 dev_dbg(card->dev, "%s: entry\n", __func__);
946 codec->card = card;
997 snd_component_add(card, component);
999 err = snd_device_new(card, SNDRV_DEV_CODEC, codec, &dev_ops);
1613 return snd_ctl_find_id(codec->card, &id);
1677 err = snd_ctl_add(codec->card, kctl);
1730 down_write(&codec->card->controls_rwsem);
1732 snd_ctl_remove(codec->card, items[i].kctl);
1733 up_write(&codec->card->controls_rwsem);
1742 * toggle card->shutdown to allow/disallow the device access (as a hack)
1746 struct snd_card *card = bus->card;
1749 spin_lock(&card->files_lock);
1750 if (card->shutdown)
1752 card->shutdown = 1;
1753 if (!list_empty(&card->ctl_files))
1766 spin_unlock(&card->files_lock);
1770 card->shutdown = 0;
1772 spin_unlock(&card->files_lock);
1783 struct snd_card *card = bus->card;
1785 spin_lock(&card->files_lock);
1786 card->shutdown = 0;
1787 spin_unlock(&card->files_lock);
2945 /* Nothing to do if card registration fails and the component driver never probes */
2946 if (!codec->card)
2963 /* Nothing to do if card registration fails and the component driver never probes */
2964 if (!codec->card)
3245 dev_err(bus->card->dev, "Invalid PCM type %d\n", type);
3266 dev_warn(bus->card->dev, "Too many %s devices\n",
3269 dev_warn(bus->card->dev,