/Linux-v6.6/sound/soc/ |
D | soc-link.c | 27 func, rtd->dai_link->name, ret); in _soc_link_ret() 45 if (rtd->dai_link->init) in snd_soc_link_init() 46 ret = rtd->dai_link->init(rtd); in snd_soc_link_init() 53 if (rtd->dai_link->exit) in snd_soc_link_exit() 54 rtd->dai_link->exit(rtd); in snd_soc_link_exit() 62 if (rtd->dai_link->be_hw_params_fixup) in snd_soc_link_be_hw_params_fixup() 63 ret = rtd->dai_link->be_hw_params_fixup(rtd, params); in snd_soc_link_be_hw_params_fixup() 73 if (rtd->dai_link->ops && in snd_soc_link_startup() 74 rtd->dai_link->ops->startup) in snd_soc_link_startup() 75 ret = rtd->dai_link->ops->startup(substream); in snd_soc_link_startup() [all …]
|
D | soc-pcm.c | 46 func, rtd->dai_link->name, ret); in _soc_pcm_ret() 74 return (rtd)->dai_link->num_cpus == 1 ? asoc_rtd_to_cpu(rtd, 0)->name : "multicpu"; in soc_cpu_dai_name() 78 return (rtd)->dai_link->num_codecs == 1 ? asoc_rtd_to_codec(rtd, 0)->name : "multicodec"; in soc_codec_dai_name() 119 "[%s - %s]\n", fe->dai_link->name, in dpcm_show_state() 148 "- %s\n", be->dai_link->name); in dpcm_show_state() 175 if (fe->dai_link->num_cpus > 1) { in dpcm_state_read_file() 207 if (!rtd->dai_link->dynamic) in soc_dpcm_debugfs_add() 213 rtd->debugfs_dpcm_root = debugfs_create_dir(rtd->dai_link->name, in soc_dpcm_debugfs_add() 224 name = kasprintf(GFP_KERNEL, "%s:%s", dpcm->be->dai_link->name, in dpcm_create_debugfs_state() 320 if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time) in snd_soc_runtime_ignore_pmdown_time() [all …]
|
D | soc-core.c | 110 return rtd->dai_link->num_codecs ? attr->mode : 0; /* enabled only with codec */ in soc_dev_attr_is_visible() 403 struct snd_soc_dai_link *dai_link) in snd_soc_get_pcm_runtime() argument 408 if (rtd->dai_link == dai_link) in snd_soc_get_pcm_runtime() 411 dev_dbg(card->dev, "ASoC: failed to find rtd %s\n", dai_link->name); in snd_soc_get_pcm_runtime() 494 struct snd_soc_card *card, struct snd_soc_dai_link *dai_link) in soc_new_pcm_runtime() argument 512 dev_set_name(dev, "%s", dai_link->name); in soc_new_pcm_runtime() 525 sizeof(component) * (dai_link->num_cpus + in soc_new_pcm_runtime() 526 dai_link->num_codecs + in soc_new_pcm_runtime() 527 dai_link->num_platforms), in soc_new_pcm_runtime() 546 rtd->dais = devm_kcalloc(dev, dai_link->num_cpus + dai_link->num_codecs, in soc_new_pcm_runtime() [all …]
|
/Linux-v6.6/sound/soc/mediatek/common/ |
D | mtk-soundcard-driver.c | 17 struct snd_soc_dai_link *dai_link) in set_card_codec_info() argument 25 dev_dbg(dev, "%s no specified codec\n", dai_link->name); in set_card_codec_info() 30 ret = snd_soc_of_get_dai_link_codecs(dev, codec_node, dai_link); in set_card_codec_info() 36 dai_link->name); in set_card_codec_info() 43 struct snd_soc_dai_link *dai_link) in set_dailink_daifmt() argument 58 dai_link->dai_fmt &= SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK; in set_dailink_daifmt() 59 dai_link->dai_fmt |= daifmt; in set_dailink_daifmt() 72 dai_link->dai_fmt &= ~SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK; in set_dailink_daifmt() 73 dai_link->dai_fmt |= of_clk_table[i].val; in set_dailink_daifmt() 86 struct snd_soc_dai_link *dai_link; in parse_dai_link_info() local [all …]
|
D | mtk-dsp-sof-common.c | 27 if (strcmp(rtd->dai_link->name, conn->normal_link)) in mtk_sof_dai_link_fixup() 31 if (strcmp(runtime->dai_link->name, conn->sof_link)) in mtk_sof_dai_link_fixup() 36 sof_dai_link = runtime->dai_link; in mtk_sof_dai_link_fixup() 56 struct snd_soc_dai_link *dai_link; in mtk_sof_card_probe() local 59 for_each_card_prelinks(card, i, dai_link) { in mtk_sof_card_probe() 60 if (dai_link->no_pcm && !dai_link->stream_name && dai_link->name) in mtk_sof_card_probe() 61 dai_link->stream_name = dai_link->name; in mtk_sof_card_probe() 96 if (!strcmp(rtd->dai_link->name, conn->sof_link)) { in mtk_sof_card_late_probe() 100 if (!strcmp(rtd->dai_link->name, conn->normal_link)) { in mtk_sof_card_late_probe() 134 sof_rtd->dai_link->be_hw_params_fixup = in mtk_sof_card_late_probe() [all …]
|
/Linux-v6.6/sound/soc/meson/ |
D | gx-card.c | 49 struct snd_soc_dai_link *link = &card->dai_link[*index]; in gx_card_parse_i2s() 82 struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; in gx_card_add_link() local 90 dai_link->cpus = cpu; in gx_card_add_link() 91 dai_link->num_cpus = 1; in gx_card_add_link() 93 ret = meson_card_parse_dai(card, np, dai_link->cpus); in gx_card_add_link() 97 if (gx_card_cpu_identify(dai_link->cpus, "FIFO")) in gx_card_add_link() 98 return meson_card_set_fe_link(card, dai_link, np, true); in gx_card_add_link() 100 ret = meson_card_set_be_link(card, dai_link, np); in gx_card_add_link() 105 if (gx_card_cpu_identify(dai_link->cpus, "CODEC CTRL")) { in gx_card_add_link() 106 dai_link->c2c_params = &codec_params; in gx_card_add_link() [all …]
|
D | axg-card.c | 107 struct snd_soc_dai_link *pad = &card->dai_link[*index]; in axg_card_add_tdm_loopback() 117 lb = &card->dai_link[*index + 1]; in axg_card_add_tdm_loopback() 250 struct snd_soc_dai_link *link = &card->dai_link[*index]; in axg_card_parse_tdm() 311 struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; in axg_card_add_link() local 319 dai_link->cpus = cpu; in axg_card_add_link() 320 dai_link->num_cpus = 1; in axg_card_add_link() 322 ret = meson_card_parse_dai(card, np, dai_link->cpus); in axg_card_add_link() 326 if (axg_card_cpu_is_playback_fe(dai_link->cpus->of_node)) in axg_card_add_link() 327 return meson_card_set_fe_link(card, dai_link, np, true); in axg_card_add_link() 328 else if (axg_card_cpu_is_capture_fe(dai_link->cpus->of_node)) in axg_card_add_link() [all …]
|
/Linux-v6.6/sound/soc/mediatek/mt8183/ |
D | mt8183-mt6358-ts3a227-max98357.c | 621 .dai_link = mt8183_mt6358_ts3a227_dai_links, 632 .dai_link = mt8183_mt6358_ts3a227_dai_links, 654 .dai_link = mt8183_mt6358_ts3a227_dai_links, 667 .dai_link = mt8183_mt6358_ts3a227_dai_links, 709 struct snd_soc_dai_link *dai_link; in mt8183_mt6358_ts3a227_max98357_dev_probe() local 731 for_each_card_prelinks(card, i, dai_link) { in mt8183_mt6358_ts3a227_max98357_dev_probe() 732 if (ec_codec && strcmp(dai_link->name, "Wake on Voice") == 0) { in mt8183_mt6358_ts3a227_max98357_dev_probe() 733 dai_link->cpus[0].name = NULL; in mt8183_mt6358_ts3a227_max98357_dev_probe() 734 dai_link->cpus[0].of_node = ec_codec; in mt8183_mt6358_ts3a227_max98357_dev_probe() 735 dai_link->cpus[0].dai_name = NULL; in mt8183_mt6358_ts3a227_max98357_dev_probe() [all …]
|
D | mt8183-da7219-max98357.c | 659 .dai_link = mt8183_da7219_dai_links, 716 .dai_link = mt8183_da7219_dai_links, 733 .dai_link = mt8183_da7219_dai_links, 745 struct snd_soc_dai_link *dai_link; in mt8183_da7219_max98357_dev_probe() local 768 for_each_card_prelinks(card, i, dai_link) { in mt8183_da7219_max98357_dev_probe() 769 if (strcmp(dai_link->name, "I2S3") == 0) { in mt8183_da7219_max98357_dev_probe() 771 dai_link->be_hw_params_fixup = in mt8183_da7219_max98357_dev_probe() 773 dai_link->ops = &mt8183_da7219_i2s_ops; in mt8183_da7219_max98357_dev_probe() 774 dai_link->cpus = i2s3_max98357a_cpus; in mt8183_da7219_max98357_dev_probe() 775 dai_link->num_cpus = in mt8183_da7219_max98357_dev_probe() [all …]
|
/Linux-v6.6/sound/soc/samsung/ |
D | arndale.c | 124 .dai_link = arndale_rt5631_dai, 131 .dai_link = arndale_wm1811_dai, 137 struct snd_soc_dai_link *dai_link; in arndale_put_of_nodes() local 140 for_each_card_prelinks(card, i, dai_link) { in arndale_put_of_nodes() 141 of_node_put(dai_link->cpus->of_node); in arndale_put_of_nodes() 142 of_node_put(dai_link->codecs->of_node); in arndale_put_of_nodes() 150 struct snd_soc_dai_link *dai_link; in arndale_audio_probe() local 155 dai_link = card->dai_link; in arndale_audio_probe() 157 dai_link->cpus->of_node = of_parse_phandle(np, "samsung,audio-cpu", 0); in arndale_audio_probe() 158 if (!dai_link->cpus->of_node) { in arndale_audio_probe() [all …]
|
/Linux-v6.6/sound/soc/qcom/ |
D | storm.c | 70 struct snd_soc_dai_link *dai_link = card->dai_link; in storm_parse_of() local 73 dai_link->cpus->of_node = of_parse_phandle(np, "cpu", 0); in storm_parse_of() 74 if (!dai_link->cpus->of_node) { in storm_parse_of() 78 dai_link->platforms->of_node = dai_link->cpus->of_node; in storm_parse_of() 80 dai_link->codecs->of_node = of_parse_phandle(np, "codec", 0); in storm_parse_of() 81 if (!dai_link->codecs->of_node) { in storm_parse_of() 107 card->dai_link = &storm_dai_link; in storm_platform_probe()
|
/Linux-v6.6/sound/soc/generic/ |
D | simple-card.c | 159 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_parse_node() local 166 dlc = asoc_link_to_cpu(dai_link, 0); in simple_parse_node() 169 dlc = asoc_link_to_codec(dai_link, 0); in simple_parse_node() 197 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_link_init() local 201 prefix, &dai_link->dai_fmt); in simple_link_init() 205 dai_link->init = asoc_simple_dai_init; in simple_link_init() 206 dai_link->ops = &simple_ops; in simple_link_init() 208 return asoc_simple_set_dailink_name(dev, dai_link, name); in simple_link_init() 218 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of_dpcm() local 233 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0); in simple_dai_link_of_dpcm() [all …]
|
D | audio-graph-card.c | 113 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_parse_node() local 120 dlc = asoc_link_to_cpu(dai_link, 0); in graph_parse_node() 123 dlc = asoc_link_to_codec(dai_link, 0); in graph_parse_node() 151 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_link_init() local 155 NULL, &dai_link->dai_fmt); in graph_link_init() 159 dai_link->init = asoc_simple_dai_init; in graph_link_init() 160 dai_link->ops = &graph_ops; in graph_link_init() 162 dai_link->ops = priv->ops; in graph_link_init() 164 return asoc_simple_set_dailink_name(dev, dai_link, name); in graph_link_init() 173 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of_dpcm() local [all …]
|
D | simple-card-utils.c | 164 struct snd_soc_dai_link *dai_link, in asoc_simple_set_dailink_name() argument 178 dai_link->name = name; in asoc_simple_set_dailink_name() 179 dai_link->stream_name = name; in asoc_simple_set_dailink_name() 205 if (!card->name && card->dai_link) in asoc_simple_parse_card_name() 206 card->name = card->dai_link->name; in asoc_simple_parse_card_name() 564 struct snd_soc_dai_link *dai_link = rtd->dai_link; in asoc_simple_init_for_codec2codec() local 571 if (dai_link->c2c_params) in asoc_simple_init_for_codec2codec() 575 if (dai_link->no_pcm) in asoc_simple_init_for_codec2codec() 607 dai_link->c2c_params = c2c_params; in asoc_simple_init_for_codec2codec() 608 dai_link->num_c2c_params = 1; in asoc_simple_init_for_codec2codec() [all …]
|
D | audio-graph-card2.c | 406 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in __graph_parse_node() local 413 dlc = asoc_link_to_cpu(dai_link, idx); in __graph_parse_node() 416 dlc = asoc_link_to_codec(dai_link, idx); in __graph_parse_node() 441 if (!dai_link->name) { in __graph_parse_node() 443 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, idx); in __graph_parse_node() 447 if (dai_link->num_cpus > 1) in __graph_parse_node() 449 if (dai_link->num_codecs > 1) in __graph_parse_node() 456 asoc_simple_set_dailink_name(dev, dai_link, "%s%s-%s%s", in __graph_parse_node() 462 asoc_simple_set_dailink_name(dev, dai_link, "fe.%pOFP.%s%s", in __graph_parse_node() 465 asoc_simple_set_dailink_name(dev, dai_link, "be.%pOFP.%s%s", in __graph_parse_node() [all …]
|
/Linux-v6.6/sound/soc/rockchip/ |
D | rockchip_max98090.c | 183 if (!strcmp(rtd->dai_link->name, "HDMI")) in rk_aif1_hw_params() 303 .dai_link = rk_max98090_dailinks, 318 .dai_link = rk_hdmi_dailinks, 331 .dai_link = rk_max98090_hdmi_dailinks, 401 card->dai_link[DAILINK_MAX98090].codecs->of_node = np_audio; in snd_rk_mc_probe() 402 card->dai_link[DAILINK_HDMI].codecs->of_node = np_hdmi; in snd_rk_mc_probe() 403 card->dai_link[DAILINK_MAX98090].cpus->of_node = np_cpu; in snd_rk_mc_probe() 404 card->dai_link[DAILINK_MAX98090].platforms->of_node = np_cpu; in snd_rk_mc_probe() 405 card->dai_link[DAILINK_HDMI].cpus->of_node = np_cpu; in snd_rk_mc_probe() 406 card->dai_link[DAILINK_HDMI].platforms->of_node = np_cpu; in snd_rk_mc_probe() [all …]
|
/Linux-v6.6/sound/soc/mediatek/mt2701/ |
D | mt2701-wm8960.c | 98 .dai_link = mt2701_wm8960_dai_links, 110 struct snd_soc_dai_link *dai_link; in mt2701_wm8960_machine_probe() local 119 for_each_card_prelinks(card, i, dai_link) { 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() 135 for_each_card_prelinks(card, i, dai_link) { 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()
|
/Linux-v6.6/sound/soc/mediatek/mt8195/ |
D | mt8195-mt6359.c | 1351 .dai_link = mt8195_mt6359_dai_links, 1370 if (!strcmp(rtd->dai_link->name, "ETDM2_IN_BE") || in mt8195_dai_link_fixup() 1371 !strcmp(rtd->dai_link->name, "ETDM1_OUT_BE")) { in mt8195_dai_link_fixup() 1381 struct snd_soc_dai_link *dai_link; in mt8195_mt6359_dev_probe() local 1465 for_each_card_prelinks(card, i, dai_link) { in mt8195_mt6359_dev_probe() 1466 if (!dai_link->platforms->name) { in mt8195_mt6359_dev_probe() 1467 if (!strncmp(dai_link->name, "AFE_SOF", strlen("AFE_SOF")) && sof_on) in mt8195_mt6359_dev_probe() 1468 dai_link->platforms->of_node = adsp_node; in mt8195_mt6359_dev_probe() 1470 dai_link->platforms->of_node = platform_node; in mt8195_mt6359_dev_probe() 1473 if (strcmp(dai_link->name, "DPTX_BE") == 0) { in mt8195_mt6359_dev_probe() [all …]
|
/Linux-v6.6/sound/soc/mediatek/mt7986/ |
D | mt7986-wm8960.c | 82 .dai_link = mt7986_wm8960_dai_links, 93 struct snd_soc_dai_link *dai_link; in mt7986_wm8960_machine_probe() local 117 for_each_card_prelinks(card, i, dai_link) { in mt7986_wm8960_machine_probe() 118 if (dai_link->platforms->name) in mt7986_wm8960_machine_probe() 120 dai_link->platforms->of_node = priv->platform_node; in mt7986_wm8960_machine_probe() 142 for_each_card_prelinks(card, i, dai_link) { in mt7986_wm8960_machine_probe() 143 if (dai_link->codecs->name) in mt7986_wm8960_machine_probe() 145 dai_link->codecs->of_node = priv->codec_node; in mt7986_wm8960_machine_probe()
|
/Linux-v6.6/sound/soc/mediatek/mt8173/ |
D | mt8173-max98090.c | 136 .dai_link = mt8173_max98090_dais, 150 struct snd_soc_dai_link *dai_link; in mt8173_max98090_dev_probe() local 159 for_each_card_prelinks(card, i, dai_link) { in mt8173_max98090_dev_probe() 160 if (dai_link->platforms->name) in mt8173_max98090_dev_probe() 162 dai_link->platforms->of_node = platform_node; in mt8173_max98090_dev_probe() 173 for_each_card_prelinks(card, i, dai_link) { in mt8173_max98090_dev_probe() 174 if (dai_link->codecs->name) in mt8173_max98090_dev_probe() 176 dai_link->codecs->of_node = codec_node; in mt8173_max98090_dev_probe()
|
/Linux-v6.6/sound/soc/fsl/ |
D | fsl-asoc-card.c | 96 struct snd_soc_dai_link dai_link[3]; member 618 memcpy(priv->dai_link, fsl_asoc_card_dai, in fsl_asoc_card_probe() 619 sizeof(struct snd_soc_dai_link) * ARRAY_SIZE(priv->dai_link)); in fsl_asoc_card_probe() 651 priv->dai_link[1].dpcm_capture = 0; in fsl_asoc_card_probe() 652 priv->dai_link[2].dpcm_capture = 0; in fsl_asoc_card_probe() 678 priv->dai_link[1].dpcm_capture = 0; in fsl_asoc_card_probe() 679 priv->dai_link[2].dpcm_capture = 0; in fsl_asoc_card_probe() 685 priv->dai_link[1].dpcm_capture = 0; in fsl_asoc_card_probe() 686 priv->dai_link[2].dpcm_capture = 0; in fsl_asoc_card_probe() 792 priv->card.dai_link = priv->dai_link; in fsl_asoc_card_probe() [all …]
|
/Linux-v6.6/sound/soc/mediatek/mt8188/ |
D | mt8188-mt6359.c | 605 if (rtd->dai_link->num_codecs <= 2) in mt8188_max98390_codec_init() 1013 .dai_link = mt8188_mt6359_dai_links, 1028 struct snd_soc_dai_link *dai_link; in mt8188_mt6359_dev_probe() local 1067 for_each_card_prelinks(card, i, dai_link) { in mt8188_mt6359_dev_probe() 1068 if (!dai_link->platforms->name) in mt8188_mt6359_dev_probe() 1069 dai_link->platforms->of_node = platform_node; in mt8188_mt6359_dev_probe() 1071 if (strcmp(dai_link->name, "DPTX_BE") == 0) { in mt8188_mt6359_dev_probe() 1072 if (strcmp(dai_link->codecs->dai_name, "snd-soc-dummy-dai")) in mt8188_mt6359_dev_probe() 1073 dai_link->init = mt8188_dptx_codec_init; in mt8188_mt6359_dev_probe() 1074 } else if (strcmp(dai_link->name, "ETDM3_OUT_BE") == 0) { in mt8188_mt6359_dev_probe() [all …]
|
/Linux-v6.6/sound/soc/mediatek/mt6797/ |
D | mt6797-mt6351.c | 190 .dai_link = mt6797_mt6351_dai_links, 198 struct snd_soc_dai_link *dai_link; in mt6797_mt6351_dev_probe() local 209 for_each_card_prelinks(card, i, dai_link) { 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() 223 for_each_card_prelinks(card, i, dai_link) { 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()
|
/Linux-v6.6/sound/soc/au1x/ |
D | db1200.c | 64 .dai_link = &db1200_ac97_dai, 82 .dai_link = &db1300_ac97_dai, 89 .dai_link = &db1200_ac97_dai, 128 .dai_link = &db1200_i2s_dai, 149 .dai_link = &db1300_i2s_dai, 170 .dai_link = &db1550_i2s_dai,
|
/Linux-v6.6/sound/soc/atmel/ |
D | atmel-classd.c | 468 struct snd_soc_dai_link *dai_link; in atmel_classd_asoc_card_init() local 472 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_classd_asoc_card_init() 473 if (!dai_link) in atmel_classd_asoc_card_init() 480 dai_link->cpus = comp; in atmel_classd_asoc_card_init() 481 dai_link->codecs = &asoc_dummy_dlc; in atmel_classd_asoc_card_init() 483 dai_link->num_cpus = 1; in atmel_classd_asoc_card_init() 484 dai_link->num_codecs = 1; in atmel_classd_asoc_card_init() 486 dai_link->name = "CLASSD"; in atmel_classd_asoc_card_init() 487 dai_link->stream_name = "CLASSD PCM"; in atmel_classd_asoc_card_init() 488 dai_link->cpus->dai_name = dev_name(dev); in atmel_classd_asoc_card_init() [all …]
|