Lines Matching defs:card
749 snd_device_disconnect(codec->card, pcm->pcm);
762 snd_device_free(pcm->codec->card, pcm->pcm);
955 * @card: card for this codec
961 int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card,
968 card->number, codec_addr);
973 ret = snd_hda_codec_device_new(bus, card, codec_addr, *codecp, true);
981 int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card,
993 dev_dbg(card->dev, "%s: entry\n", __func__);
1001 codec->card = card;
1034 snd_component_add(card, component);
1038 err = snd_device_new(card, SNDRV_DEV_CODEC, codec, &dev_ops);
1655 return snd_ctl_find_id(codec->card, &id);
1719 err = snd_ctl_add(codec->card, kctl);
1773 snd_ctl_remove(codec->card, items[i].kctl);
1782 * toggle card->shutdown to allow/disallow the device access (as a hack)
1786 struct snd_card *card = bus->card;
1789 spin_lock(&card->files_lock);
1790 if (card->shutdown)
1792 card->shutdown = 1;
1793 if (!list_empty(&card->ctl_files))
1806 spin_unlock(&card->files_lock);
1810 card->shutdown = 0;
1812 spin_unlock(&card->files_lock);
1823 struct snd_card *card = bus->card;
1825 spin_lock(&card->files_lock);
1826 card->shutdown = 0;
1827 spin_unlock(&card->files_lock);
2466 snd_ctl_rename_id(codec->card, &kctl->id, &id);
2934 /* Nothing to do if card registration fails and the component driver never probes */
2935 if (!codec->card)
2958 /* Nothing to do if card registration fails and the component driver never probes */
2959 if (!codec->card)
3263 dev_err(bus->card->dev, "Invalid PCM type %d\n", type);
3284 dev_warn(bus->card->dev, "Too many %s devices\n",
3287 dev_warn(bus->card->dev,