Lines Matching +full:audio +full:- +full:graph +full:- +full:card
1 // SPDX-License-Identifier: GPL-2.0
3 // audio-graph-card2-custom-sample.c
27 static int custom_card_probe(struct snd_soc_card *card) in custom_card_probe() argument
29 struct asoc_simple_priv *simple_priv = snd_soc_card_get_drvdata(card); in custom_card_probe()
35 custom_priv->custom_params = 1; in custom_card_probe()
38 return asoc_graph_card_probe(card); in custom_card_probe()
54 struct snd_soc_card *card; in custom_hook_post() local
60 card = simple_priv_to_card(priv); in custom_hook_post()
61 card->probe = custom_card_probe; in custom_hook_post()
112 * audio-graph-card2 has many hooks for your customizing.
125 struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); in custom_startup()
144 struct device *dev = &pdev->dev; in custom_probe()
149 return -ENOMEM; in custom_probe()
151 simple_priv = &custom_priv->simple_priv; in custom_probe()
152 simple_priv->ops = &custom_ops; /* customize dai_link ops */ in custom_probe()
154 /* "audio-graph-card2-custom-sample" is too long */ in custom_probe()
155 simple_priv->snd_card.name = "card2-custom"; in custom_probe()
157 /* use audio-graph-card2 parsing with own custom hooks */ in custom_probe()
168 { .compatible = "audio-graph-card2-custom-sample", },
175 .name = "audio-graph-card2-custom-sample",
183 MODULE_ALIAS("platform:asoc-audio-graph-card2-custom-sample");
185 MODULE_DESCRIPTION("ASoC Audio Graph Card2 Custom Sample");