Lines Matching +full:mt2701 +full:- +full:wm8960 +full:- +full:machine
1 // SPDX-License-Identifier: GPL-2.0
3 * mt2701-wm8960.c -- MT2701 WM8960 ALSA SoC machine driver
12 #include "mt2701-afe-common.h"
59 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "wm8960-hifi")),
65 .name = "wm8960-playback",
66 .stream_name = "wm8960-playback",
74 .name = "wm8960-capture",
75 .stream_name = "wm8960-capture",
84 .name = "wm8960-codec",
96 .name = "mt2701-wm8960",
113 platform_node = of_parse_phandle(pdev->dev.of_node, in mt2701_wm8960_machine_probe()
116 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n"); in mt2701_wm8960_machine_probe()
117 return -EINVAL; in mt2701_wm8960_machine_probe()
120 if (dai_link->platforms->name) in mt2701_wm8960_machine_probe()
122 dai_link->platforms->of_node = platform_node; in mt2701_wm8960_machine_probe()
125 card->dev = &pdev->dev; in mt2701_wm8960_machine_probe()
127 codec_node = of_parse_phandle(pdev->dev.of_node, in mt2701_wm8960_machine_probe()
128 "mediatek,audio-codec", 0); in mt2701_wm8960_machine_probe()
130 dev_err(&pdev->dev, in mt2701_wm8960_machine_probe()
131 "Property 'audio-codec' missing or invalid\n"); in mt2701_wm8960_machine_probe()
132 ret = -EINVAL; in mt2701_wm8960_machine_probe()
136 if (dai_link->codecs->name) in mt2701_wm8960_machine_probe()
138 dai_link->codecs->of_node = codec_node; in mt2701_wm8960_machine_probe()
141 ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); in mt2701_wm8960_machine_probe()
143 dev_err(&pdev->dev, "failed to parse audio-routing: %d\n", ret); in mt2701_wm8960_machine_probe()
147 ret = devm_snd_soc_register_card(&pdev->dev, card); in mt2701_wm8960_machine_probe()
149 dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n", in mt2701_wm8960_machine_probe()
161 {.compatible = "mediatek,mt2701-wm8960-machine",},
169 .name = "mt2701-wm8960",
180 MODULE_DESCRIPTION("MT2701 WM8960 ALSA SoC machine driver");
183 MODULE_ALIAS("mt2701 wm8960 soc card");