Lines Matching +full:trigger +full:- +full:name
1 // SPDX-License-Identifier: GPL-2.0
3 // mt6797-mt6351.c -- MT6797 MT6351 ALSA SoC machine driver
11 #include "mt6797-afe-common.h"
60 DAILINK_COMP_ARRAY(COMP_CODEC(NULL, "mt6351-snd-codec-aif1")),
76 .name = "Playback_1",
78 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
85 .name = "Playback_2",
87 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
94 .name = "Playback_3",
96 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
103 .name = "Capture_1",
105 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
112 .name = "Capture_2",
114 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
121 .name = "Capture_3",
123 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
130 .name = "Capture_Mono_1",
132 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
139 .name = "Hostless_LPBK",
141 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
150 .name = "Hostless_Speech",
152 .trigger = {SND_SOC_DPCM_TRIGGER_PRE,
162 .name = "Primary Codec",
170 .name = "PCM 1",
178 .name = "PCM 2",
188 .name = "mt6797-mt6351",
201 card->dev = &pdev->dev; in mt6797_mt6351_dev_probe()
203 platform_node = of_parse_phandle(pdev->dev.of_node, in mt6797_mt6351_dev_probe()
206 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n"); in mt6797_mt6351_dev_probe()
207 return -EINVAL; in mt6797_mt6351_dev_probe()
210 if (dai_link->platforms->name) in mt6797_mt6351_dev_probe()
212 dai_link->platforms->of_node = platform_node; in mt6797_mt6351_dev_probe()
215 codec_node = of_parse_phandle(pdev->dev.of_node, in mt6797_mt6351_dev_probe()
216 "mediatek,audio-codec", 0); in mt6797_mt6351_dev_probe()
218 dev_err(&pdev->dev, in mt6797_mt6351_dev_probe()
219 "Property 'audio-codec' missing or invalid\n"); in mt6797_mt6351_dev_probe()
220 ret = -EINVAL; in mt6797_mt6351_dev_probe()
224 if (dai_link->codecs->name) in mt6797_mt6351_dev_probe()
226 dai_link->codecs->of_node = codec_node; in mt6797_mt6351_dev_probe()
229 ret = devm_snd_soc_register_card(&pdev->dev, card); in mt6797_mt6351_dev_probe()
231 dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n", in mt6797_mt6351_dev_probe()
242 {.compatible = "mediatek,mt6797-mt6351-sound",},
250 .name = "mt6797-mt6351",