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
75 struct snd_soc_card *card = runtime->card; in mt8173_rt5650_rt5514_init()
76 struct snd_soc_component *component = asoc_rtd_to_codec(runtime, 0)->component; in mt8173_rt5650_rt5514_init()
91 dev_err(card->dev, "Can't new Headset Jack %d\n", ret); in mt8173_rt5650_rt5514_init()
117 SND_SOC_DAILINK_DEFS(codec,
119 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "rt5645-aif1"),
120 COMP_CODEC(NULL, "rt5514-aif1")),
123 /* Digital audio interface glue - connects codec <---> CPU */
144 .name = "Codec",
153 SND_SOC_DAILINK_REG(codec),
164 .name = "mtk-rt5650-rt5514",
185 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_rt5514_dev_probe()
188 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n"); in mt8173_rt5650_rt5514_dev_probe()
189 return -EINVAL; in mt8173_rt5650_rt5514_dev_probe()
193 if (dai_link->platforms->name) in mt8173_rt5650_rt5514_dev_probe()
195 dai_link->platforms->of_node = platform_node; in mt8173_rt5650_rt5514_dev_probe()
199 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_rt5514_dev_probe()
201 dev_err(&pdev->dev, in mt8173_rt5650_rt5514_dev_probe()
202 "Property 'audio-codec' missing or invalid\n"); in mt8173_rt5650_rt5514_dev_probe()
203 return -EINVAL; in mt8173_rt5650_rt5514_dev_probe()
206 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 1); in mt8173_rt5650_rt5514_dev_probe()
208 dev_err(&pdev->dev, in mt8173_rt5650_rt5514_dev_probe()
209 "Property 'audio-codec' missing or invalid\n"); in mt8173_rt5650_rt5514_dev_probe()
210 return -EINVAL; in mt8173_rt5650_rt5514_dev_probe()
215 card->dev = &pdev->dev; in mt8173_rt5650_rt5514_dev_probe()
217 ret = devm_snd_soc_register_card(&pdev->dev, card); in mt8173_rt5650_rt5514_dev_probe()
219 dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n", in mt8173_rt5650_rt5514_dev_probe()
227 { .compatible = "mediatek,mt8173-rt5650-rt5514", },
234 .name = "mtk-rt5650-rt5514",
249 MODULE_ALIAS("platform:mtk-rt5650-rt5514");