Lines Matching refs:card
12 static inline int _soc_card_ret(struct snd_soc_card *card, in _soc_card_ret() argument
21 dev_err(card->dev, in _soc_card_ret()
23 func, card->name, ret); in _soc_card_ret()
32 struct snd_card *card = soc_card->snd_card; in snd_soc_card_get_kcontrol() local
38 list_for_each_entry(kctl, &card->controls, list) in snd_soc_card_get_kcontrol()
60 int snd_soc_card_jack_new(struct snd_soc_card *card, const char *id, int type, in snd_soc_card_jack_new() argument
67 jack->card = card; in snd_soc_card_jack_new()
72 ret = snd_jack_new(card->snd_card, id, type, &jack->jack, false, false); in snd_soc_card_jack_new()
79 return soc_card_ret(card, ret); in snd_soc_card_jack_new()
83 int snd_soc_card_suspend_pre(struct snd_soc_card *card) in snd_soc_card_suspend_pre() argument
87 if (card->suspend_pre) in snd_soc_card_suspend_pre()
88 ret = card->suspend_pre(card); in snd_soc_card_suspend_pre()
90 return soc_card_ret(card, ret); in snd_soc_card_suspend_pre()
93 int snd_soc_card_suspend_post(struct snd_soc_card *card) in snd_soc_card_suspend_post() argument
97 if (card->suspend_post) in snd_soc_card_suspend_post()
98 ret = card->suspend_post(card); in snd_soc_card_suspend_post()
100 return soc_card_ret(card, ret); in snd_soc_card_suspend_post()
103 int snd_soc_card_resume_pre(struct snd_soc_card *card) in snd_soc_card_resume_pre() argument
107 if (card->resume_pre) in snd_soc_card_resume_pre()
108 ret = card->resume_pre(card); in snd_soc_card_resume_pre()
110 return soc_card_ret(card, ret); in snd_soc_card_resume_pre()
113 int snd_soc_card_resume_post(struct snd_soc_card *card) in snd_soc_card_resume_post() argument
117 if (card->resume_post) in snd_soc_card_resume_post()
118 ret = card->resume_post(card); in snd_soc_card_resume_post()
120 return soc_card_ret(card, ret); in snd_soc_card_resume_post()
123 int snd_soc_card_probe(struct snd_soc_card *card) in snd_soc_card_probe() argument
125 if (card->probe) { in snd_soc_card_probe()
126 int ret = card->probe(card); in snd_soc_card_probe()
129 return soc_card_ret(card, ret); in snd_soc_card_probe()
140 card->probed = 1; in snd_soc_card_probe()
146 int snd_soc_card_late_probe(struct snd_soc_card *card) in snd_soc_card_late_probe() argument
148 if (card->late_probe) { in snd_soc_card_late_probe()
149 int ret = card->late_probe(card); in snd_soc_card_late_probe()
152 return soc_card_ret(card, ret); in snd_soc_card_late_probe()
165 card->probed = 1; in snd_soc_card_late_probe()
170 int snd_soc_card_remove(struct snd_soc_card *card) in snd_soc_card_remove() argument
174 if (card->probed && in snd_soc_card_remove()
175 card->remove) in snd_soc_card_remove()
176 ret = card->remove(card); in snd_soc_card_remove()
178 card->probed = 0; in snd_soc_card_remove()
180 return soc_card_ret(card, ret); in snd_soc_card_remove()
183 int snd_soc_card_set_bias_level(struct snd_soc_card *card, in snd_soc_card_set_bias_level() argument
189 if (card && card->set_bias_level) in snd_soc_card_set_bias_level()
190 ret = card->set_bias_level(card, dapm, level); in snd_soc_card_set_bias_level()
192 return soc_card_ret(card, ret); in snd_soc_card_set_bias_level()
195 int snd_soc_card_set_bias_level_post(struct snd_soc_card *card, in snd_soc_card_set_bias_level_post() argument
201 if (card && card->set_bias_level_post) in snd_soc_card_set_bias_level_post()
202 ret = card->set_bias_level_post(card, dapm, level); in snd_soc_card_set_bias_level_post()
204 return soc_card_ret(card, ret); in snd_soc_card_set_bias_level_post()
207 int snd_soc_card_add_dai_link(struct snd_soc_card *card, in snd_soc_card_add_dai_link() argument
212 if (card->add_dai_link) in snd_soc_card_add_dai_link()
213 ret = card->add_dai_link(card, dai_link); in snd_soc_card_add_dai_link()
215 return soc_card_ret(card, ret); in snd_soc_card_add_dai_link()
219 void snd_soc_card_remove_dai_link(struct snd_soc_card *card, in snd_soc_card_remove_dai_link() argument
222 if (card->remove_dai_link) in snd_soc_card_remove_dai_link()
223 card->remove_dai_link(card, dai_link); in snd_soc_card_remove_dai_link()