Lines Matching +full:custom +full:- +full:rtd
1 // SPDX-License-Identifier: GPL-2.0
3 // audio-graph-card2-custom-sample.c
14 * Custom driver can have own priv
20 /* custom driver's own params */
33 dev_info(dev, "custom probe\n"); in custom_card_probe()
35 custom_priv->custom_params = 1; in custom_card_probe()
45 /* You can custom before parsing */ in custom_hook_pre()
56 /* You can custom after parsing */ in custom_hook_post()
61 card->probe = custom_card_probe; in custom_hook_post()
73 * You can custom Normal parsing in custom_normal()
88 * You can custom DPCM parsing in custom_dpcm()
103 * You can custom Codec2Codec parsing in custom_c2c()
112 * audio-graph-card2 has many hooks for your customizing.
124 struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); in custom_startup() local
125 struct asoc_simple_priv *priv = snd_soc_card_get_drvdata(rtd->card); in custom_startup()
128 dev_info(dev, "custom startup\n"); in custom_startup()
133 /* You can use custom ops */
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 /* use audio-graph-card2 parsing with own custom hooks */ in custom_probe()
165 { .compatible = "audio-graph-card2-custom-sample", },
172 .name = "audio-graph-card2-custom-sample",
180 MODULE_ALIAS("platform:asoc-audio-graph-card2-custom-sample");
182 MODULE_DESCRIPTION("ASoC Audio Graph Card2 Custom Sample");