Lines Matching +full:codec +full:- +full:aif1

1 // SPDX-License-Identifier: GPL-2.0
3 * mt8173-rt5650-rt5514.c -- MT8173 machine driver with RT5650/5514 codecs
84 struct snd_soc_card *card = runtime->card; in mt8173_rt5650_rt5514_init()
85 struct snd_soc_component *component = snd_soc_rtd_to_codec(runtime, 0)->component; in mt8173_rt5650_rt5514_init()
102 dev_err(card->dev, "Can't new Headset Jack %d\n", ret); in mt8173_rt5650_rt5514_init()
128 SND_SOC_DAILINK_DEFS(codec,
130 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "rt5645-aif1"),
131 COMP_CODEC(NULL, "rt5514-aif1")),
134 /* Digital audio interface glue - connects codec <---> CPU */
155 .name = "Codec",
162 SND_SOC_DAILINK_REG(codec),
173 .name = "mtk-rt5650-rt5514",
194 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_rt5514_dev_probe()
197 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n"); in mt8173_rt5650_rt5514_dev_probe()
198 return -EINVAL; in mt8173_rt5650_rt5514_dev_probe()
202 if (dai_link->platforms->name) in mt8173_rt5650_rt5514_dev_probe()
204 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5514_dev_probe()
208 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_rt5514_dev_probe()
210 dev_err(&pdev->dev, in mt8173_rt5650_rt5514_dev_probe()
211 "Property 'audio-codec' missing or invalid\n"); in mt8173_rt5650_rt5514_dev_probe()
212 ret = -EINVAL; in mt8173_rt5650_rt5514_dev_probe()
216 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_rt5514_dev_probe()
218 dev_err(&pdev->dev, in mt8173_rt5650_rt5514_dev_probe()
219 "Property 'audio-codec' missing or invalid\n"); in mt8173_rt5650_rt5514_dev_probe()
220 ret = -EINVAL; in mt8173_rt5650_rt5514_dev_probe()
226 card->dev = &pdev->dev; in mt8173_rt5650_rt5514_dev_probe()
228 ret = devm_snd_soc_register_card(&pdev->dev, card); in mt8173_rt5650_rt5514_dev_probe()
236 { .compatible = "mediatek,mt8173-rt5650-rt5514", },
243 .name = "mtk-rt5650-rt5514",
256 MODULE_ALIAS("platform:mtk-rt5650-rt5514");