Lines Matching defs:card
428 int snd_soc_register_card(struct snd_soc_card *card);
429 void snd_soc_unregister_card(struct snd_soc_card *card);
430 int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card);
478 struct snd_soc_pcm_runtime *snd_soc_get_pcm_runtime(struct snd_soc_card *card,
503 int snd_soc_set_dmi_name(struct snd_soc_card *card, const char *flavour);
505 static inline int snd_soc_set_dmi_name(struct snd_soc_card *card,
587 int snd_soc_limit_volume(struct snd_soc_card *card,
934 /* SoC card */
967 int (*probe)(struct snd_soc_card *card);
968 int (*late_probe)(struct snd_soc_card *card);
969 void (*fixup_controls)(struct snd_soc_card *card);
970 int (*remove)(struct snd_soc_card *card);
974 int (*suspend_pre)(struct snd_soc_card *card);
975 int (*suspend_post)(struct snd_soc_card *card);
976 int (*resume_pre)(struct snd_soc_card *card);
977 int (*resume_post)(struct snd_soc_card *card);
1029 /* lists of probed devices belonging to this card */
1041 /* Generic DAPM context for the card */
1064 #define for_each_card_prelinks(card, i, link) \
1066 ((i) < (card)->num_links) && ((link) = &(card)->dai_link[i]); \
1068 #define for_each_card_pre_auxs(card, i, aux) \
1070 ((i) < (card)->num_aux_devs) && ((aux) = &(card)->aux_dev[i]); \
1073 #define for_each_card_rtds(card, rtd) \
1074 list_for_each_entry(rtd, &(card)->rtd_list, list)
1075 #define for_each_card_rtds_safe(card, rtd, _rtd) \
1076 list_for_each_entry_safe(rtd, _rtd, &(card)->rtd_list, list)
1078 #define for_each_card_auxs(card, component) \
1079 list_for_each_entry(component, &card->aux_comp_list, card_aux_list)
1080 #define for_each_card_auxs_safe(card, component, _comp) \
1082 &card->aux_comp_list, card_aux_list)
1084 #define for_each_card_components(card, component) \
1085 list_for_each_entry(component, &(card)->component_dev_list, card_list)
1087 #define for_each_card_dapms(card, dapm) \
1088 list_for_each_entry(dapm, &card->dapm_list, list)
1090 #define for_each_card_widgets(card, w)\
1091 list_for_each_entry(w, &card->widgets, list)
1092 #define for_each_card_widgets_safe(card, w, _w) \
1093 list_for_each_entry_safe(w, _w, &card->widgets, list)
1096 static inline int snd_soc_card_is_instantiated(struct snd_soc_card *card)
1098 return card && card->instantiated;
1104 struct snd_soc_card *card;
1136 struct list_head list; /* rtd list of the soc card */
1292 int snd_soc_of_parse_card_name(struct snd_soc_card *card,
1294 int snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card,
1296 int snd_soc_of_parse_pin_switches(struct snd_soc_card *card, const char *prop);
1310 void snd_soc_of_parse_audio_prefix(struct snd_soc_card *card,
1315 snd_soc_of_parse_node_prefix(card->dev->of_node,
1319 int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
1321 int snd_soc_of_parse_aux_devs(struct snd_soc_card *card, const char *propname);
1360 int snd_soc_add_pcm_runtimes(struct snd_soc_card *card,
1363 void snd_soc_remove_pcm_runtime(struct snd_soc_card *card,
1388 int snd_soc_fixup_dai_links_platform_name(struct snd_soc_card *card,
1399 for_each_card_prelinks(card, i, dai_link) {
1407 name = devm_kstrdup(card->dev, platform_name, GFP_KERNEL);
1432 static inline void _snd_soc_dapm_mutex_lock_root_c(struct snd_soc_card *card)
1434 mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_ROOT);
1437 static inline void _snd_soc_dapm_mutex_lock_c(struct snd_soc_card *card)
1439 mutex_lock_nested(&card->dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
1442 static inline void _snd_soc_dapm_mutex_unlock_c(struct snd_soc_card *card)
1444 mutex_unlock(&card->dapm_mutex);
1447 static inline void _snd_soc_dapm_mutex_assert_held_c(struct snd_soc_card *card)
1449 lockdep_assert_held(&card->dapm_mutex);
1454 _snd_soc_dapm_mutex_lock_root_c(dapm->card);
1459 _snd_soc_dapm_mutex_lock_c(dapm->card);
1464 _snd_soc_dapm_mutex_unlock_c(dapm->card);
1469 _snd_soc_dapm_mutex_assert_held_c(dapm->card);
1488 static inline void _snd_soc_dpcm_mutex_lock_c(struct snd_soc_card *card)
1490 mutex_lock_nested(&card->pcm_mutex, card->pcm_subclass);
1493 static inline void _snd_soc_dpcm_mutex_unlock_c(struct snd_soc_card *card)
1495 mutex_unlock(&card->pcm_mutex);
1498 static inline void _snd_soc_dpcm_mutex_assert_held_c(struct snd_soc_card *card)
1500 lockdep_assert_held(&card->pcm_mutex);
1505 _snd_soc_dpcm_mutex_lock_c(rtd->card);
1510 _snd_soc_dpcm_mutex_unlock_c(rtd->card);
1515 _snd_soc_dpcm_mutex_assert_held_c(rtd->card);
1531 #include <sound/soc-card.h>