/Linux-v4.19/sound/soc/generic/ |
D | simple-scu-card.c | 26 struct snd_soc_dai_link *dai_link; member 33 #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i)) 68 struct snd_soc_dai_link *dai_link; in asoc_simple_card_dai_init() local 72 dai_link = simple_priv_to_link(priv, num); in asoc_simple_card_dai_init() 74 dai = dai_link->dynamic ? in asoc_simple_card_dai_init() 97 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, idx); in asoc_simple_card_dai_link_of() local 106 dai_link->codec_of_node = NULL; in asoc_simple_card_dai_link_of() 107 dai_link->codec_dai_name = "snd-soc-dummy-dai"; in asoc_simple_card_dai_link_of() 108 dai_link->codec_name = "snd-soc-dummy"; in asoc_simple_card_dai_link_of() 111 dai_link->dynamic = 1; in asoc_simple_card_dai_link_of() [all …]
|
D | audio-graph-scu-card.c | 29 struct snd_soc_dai_link *dai_link; member 36 #define graph_priv_to_link(priv, i) (graph_priv_to_card(priv)->dai_link + (i)) 65 struct snd_soc_dai_link *dai_link; in asoc_graph_card_dai_init() local 69 dai_link = graph_priv_to_link(priv, num); in asoc_graph_card_dai_init() 71 dai = dai_link->dynamic ? in asoc_graph_card_dai_init() 94 struct snd_soc_dai_link *dai_link = graph_priv_to_link(priv, idx); in asoc_graph_card_dai_link_of() local 101 dai_link->codec_of_node = NULL; in asoc_graph_card_dai_link_of() 102 dai_link->codec_dai_name = "snd-soc-dummy-dai"; in asoc_graph_card_dai_link_of() 103 dai_link->codec_name = "snd-soc-dummy"; in asoc_graph_card_dai_link_of() 106 dai_link->dynamic = 1; in asoc_graph_card_dai_link_of() [all …]
|
D | simple-card.c | 28 struct snd_soc_dai_link *dai_link; member 34 #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i)) 158 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, idx); in asoc_simple_card_dai_link_of() local 195 prefix, &dai_link->dai_fmt); in asoc_simple_card_dai_link_of() 201 ret = asoc_simple_card_parse_cpu(cpu, dai_link, in asoc_simple_card_dai_link_of() 206 ret = asoc_simple_card_parse_codec(codec, dai_link, DAI, CELL); in asoc_simple_card_dai_link_of() 210 ret = asoc_simple_card_parse_platform(plat, dai_link, DAI, CELL); in asoc_simple_card_dai_link_of() 222 ret = asoc_simple_card_parse_clk_cpu(dev, cpu, dai_link, cpu_dai); in asoc_simple_card_dai_link_of() 226 ret = asoc_simple_card_parse_clk_codec(dev, codec, dai_link, codec_dai); in asoc_simple_card_dai_link_of() 230 ret = asoc_simple_card_canonicalize_dailink(dai_link); in asoc_simple_card_dai_link_of() [all …]
|
D | audio-graph-card.c | 33 struct snd_soc_dai_link *dai_link; member 67 #define graph_priv_to_link(priv, i) (graph_priv_to_card(priv)->dai_link + (i)) 162 struct snd_soc_dai_link *dai_link = graph_priv_to_link(priv, idx); in asoc_graph_card_dai_link_of() local 179 NULL, &dai_link->dai_fmt); in asoc_graph_card_dai_link_of() 185 ret = asoc_simple_card_parse_graph_cpu(cpu_ep, dai_link); in asoc_graph_card_dai_link_of() 189 ret = asoc_simple_card_parse_graph_codec(codec_ep, dai_link); in asoc_graph_card_dai_link_of() 201 ret = asoc_simple_card_parse_clk_cpu(dev, cpu_ep, dai_link, cpu_dai); in asoc_graph_card_dai_link_of() 205 ret = asoc_simple_card_parse_clk_codec(dev, codec_ep, dai_link, codec_dai); in asoc_graph_card_dai_link_of() 209 ret = asoc_simple_card_canonicalize_dailink(dai_link); in asoc_graph_card_dai_link_of() 213 ret = asoc_simple_card_set_dailink_name(dev, dai_link, in asoc_graph_card_dai_link_of() [all …]
|
D | simple-card-utils.c | 102 struct snd_soc_dai_link *dai_link, in asoc_simple_card_set_dailink_name() argument 116 dai_link->name = name; in asoc_simple_card_set_dailink_name() 117 dai_link->stream_name = name; in asoc_simple_card_set_dailink_name() 145 if (!card->name && card->dai_link) in asoc_simple_card_parse_card_name() 146 card->name = card->dai_link->name; in asoc_simple_card_parse_card_name() 340 int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link) in asoc_simple_card_canonicalize_dailink() argument 343 if (!dai_link->platform_of_node) in asoc_simple_card_canonicalize_dailink() 344 dai_link->platform_of_node = dai_link->cpu_of_node; in asoc_simple_card_canonicalize_dailink() 350 void asoc_simple_card_canonicalize_cpu(struct snd_soc_dai_link *dai_link, in asoc_simple_card_canonicalize_cpu() argument 363 dai_link->cpu_dai_name = NULL; in asoc_simple_card_canonicalize_cpu() [all …]
|
/Linux-v4.19/include/sound/ |
D | simple_card_utils.h | 47 struct snd_soc_dai_link *dai_link, 52 #define asoc_simple_card_parse_clk_cpu(dev, node, dai_link, simple_dai) \ argument 53 asoc_simple_card_parse_clk(dev, node, dai_link->cpu_of_node, simple_dai, \ 54 dai_link->cpu_dai_name) 55 #define asoc_simple_card_parse_clk_codec(dev, node, dai_link, simple_dai) \ argument 56 asoc_simple_card_parse_clk(dev, node, dai_link->codec_of_node, simple_dai,\ 57 dai_link->codec_dai_name) 66 #define asoc_simple_card_parse_cpu(node, dai_link, \ argument 68 asoc_simple_card_parse_dai(node, &dai_link->cpu_of_node, \ 69 &dai_link->cpu_dai_name, list_name, cells_name, is_single_link) [all …]
|
/Linux-v4.19/sound/soc/qcom/ |
D | storm.c | 73 struct snd_soc_dai_link *dai_link = card->dai_link; in storm_parse_of() local 76 dai_link->cpu_of_node = of_parse_phandle(np, "cpu", 0); in storm_parse_of() 77 if (!dai_link->cpu_of_node) { in storm_parse_of() 81 dai_link->platform_of_node = dai_link->cpu_of_node; in storm_parse_of() 83 dai_link->codec_of_node = of_parse_phandle(np, "codec", 0); in storm_parse_of() 84 if (!dai_link->codec_of_node) { in storm_parse_of() 109 card->dai_link = &storm_dai_link; in storm_platform_probe()
|
D | apq8016_sbc.c | 34 struct snd_soc_dai_link dai_link[]; /* dynamically allocated */ member 47 struct snd_soc_dai_link *dai_link = rtd->dai_link; in apq8016_sbc_dai_init() local 102 for (i = 0 ; i < dai_link->num_codecs; i++) { in apq8016_sbc_dai_init() 151 struct_size(data, dai_link, num_links), in apq8016_sbc_parse_of() 156 card->dai_link = &data->dai_link[0]; in apq8016_sbc_parse_of() 159 link = data->dai_link; in apq8016_sbc_parse_of()
|
D | common.c | 36 card->dai_link = kcalloc(num_links, sizeof(*link), GFP_KERNEL); in qcom_snd_parse_of() 37 if (!card->dai_link) in qcom_snd_parse_of() 41 link = card->dai_link; in qcom_snd_parse_of() 107 kfree(card->dai_link); in qcom_snd_parse_of()
|
D | apq8096.c | 28 struct snd_soc_dai_link *link = card->dai_link; in apq8096_add_be_ops() 64 kfree(card->dai_link); in apq8096_platform_probe() 75 kfree(card->dai_link); in apq8096_platform_remove()
|
/Linux-v4.19/sound/soc/ |
D | soc-core.c | 340 const char *dai_link, int stream) in snd_soc_get_dai_substream() argument 345 if (rtd->dai_link->no_pcm && in snd_soc_get_dai_substream() 346 !strcmp(rtd->dai_link->name, dai_link)) in snd_soc_get_dai_substream() 349 dev_dbg(card->dev, "ASoC: failed to find dai link %s\n", dai_link); in snd_soc_get_dai_substream() 357 struct snd_soc_card *card, struct snd_soc_dai_link *dai_link) in soc_new_pcm_runtime() argument 367 rtd->dai_link = dai_link; in soc_new_pcm_runtime() 368 if (!rtd->dai_link->ops) in soc_new_pcm_runtime() 369 rtd->dai_link->ops = &null_snd_soc_ops; in soc_new_pcm_runtime() 371 rtd->codec_dais = kcalloc(dai_link->num_codecs, in soc_new_pcm_runtime() 410 const char *dai_link) in snd_soc_get_pcm_runtime() argument [all …]
|
D | soc-pcm.c | 134 if (!rtd->pmdown_time || rtd->dai_link->ignore_pmdown_time) in snd_soc_runtime_ignore_pmdown_time() 180 be->dai_link->name, event, dir); in dpcm_dapm_stream_event() 201 rtd->dai_link->symmetric_rates)) { in soc_pcm_apply_symmetry() 217 rtd->dai_link->symmetric_channels)) { in soc_pcm_apply_symmetry() 233 rtd->dai_link->symmetric_samplebits)) { in soc_pcm_apply_symmetry() 264 rtd->dai_link->symmetric_rates; in soc_pcm_params_symmetry() 276 rtd->dai_link->symmetric_channels; in soc_pcm_params_symmetry() 288 rtd->dai_link->symmetric_samplebits; in soc_pcm_params_symmetry() 306 struct snd_soc_dai_link *link = rtd->dai_link; in soc_pcm_has_symmetry() 542 if (rtd->dai_link->ops->startup) { in soc_pcm_open() [all …]
|
D | soc-compress.c | 99 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->startup) { in soc_compr_open() 100 ret = rtd->dai_link->compr_ops->startup(cstream); in soc_compr_open() 104 rtd->dai_link->name, ret); in soc_compr_open() 150 fe->dai_link->name, stream ? "capture" : "playback"); in soc_compr_open_fe() 182 if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->startup) { in soc_compr_open_fe() 183 ret = fe->dai_link->compr_ops->startup(cstream); in soc_compr_open_fe() 186 fe->dai_link->name, ret); in soc_compr_open_fe() 269 if (rtd->dai_link->compr_ops && rtd->dai_link->compr_ops->shutdown) in soc_compr_free() 270 rtd->dai_link->compr_ops->shutdown(cstream); in soc_compr_free() 336 if (fe->dai_link->compr_ops && fe->dai_link->compr_ops->shutdown) in soc_compr_free_fe() [all …]
|
/Linux-v4.19/sound/soc/fsl/ |
D | fsl-asoc-card.c | 84 struct snd_soc_dai_link dai_link[3]; member 244 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in fsl_asoc_card_set_bias_level() 597 priv->card.dai_link = priv->dai_link; in fsl_asoc_card_probe() 609 memcpy(priv->dai_link, fsl_asoc_card_dai, in fsl_asoc_card_probe() 610 sizeof(struct snd_soc_dai_link) * ARRAY_SIZE(priv->dai_link)); in fsl_asoc_card_probe() 619 priv->dai_link[0].cpu_of_node = cpu_np; in fsl_asoc_card_probe() 620 priv->dai_link[0].codec_dai_name = codec_dai_name; in fsl_asoc_card_probe() 623 priv->dai_link[0].codec_of_node = codec_np; in fsl_asoc_card_probe() 634 priv->dai_link[0].codec_name = in fsl_asoc_card_probe() 638 if (!priv->dai_link[0].codec_name) { in fsl_asoc_card_probe() [all …]
|
/Linux-v4.19/sound/soc/au1x/ |
D | db1200.c | 61 .dai_link = &db1200_ac97_dai, 77 .dai_link = &db1300_ac97_dai, 84 .dai_link = &db1200_ac97_dai, 121 .dai_link = &db1200_i2s_dai, 140 .dai_link = &db1300_i2s_dai, 159 .dai_link = &db1550_i2s_dai,
|
/Linux-v4.19/sound/soc/meson/ |
D | axg-card.c | 40 links = krealloc(priv->card.dai_link, in axg_card_reallocate_links() 41 num_links * sizeof(*priv->card.dai_link), in axg_card_reallocate_links() 52 priv->card.dai_link = links; in axg_card_reallocate_links() 102 if (card->dai_link) { in axg_card_clean_references() 104 link = &card->dai_link[i]; in axg_card_clean_references() 116 kfree(card->dai_link); in axg_card_clean_references() 244 struct snd_soc_dai_link *pad = &card->dai_link[*index]; in axg_card_add_tdm_loopback() 253 lb = &card->dai_link[*index + 1]; in axg_card_add_tdm_loopback() 405 struct snd_soc_dai_link *link = &card->dai_link[*index]; in axg_card_parse_tdm() 523 struct snd_soc_dai_link *dai_link = &card->dai_link[*index]; in axg_card_add_link() local [all …]
|
/Linux-v4.19/sound/soc/samsung/ |
D | odroid.c | 20 struct snd_soc_dai_link dai_link; member 133 link = &priv->dai_link; in odroid_audio_probe() 139 card->dai_link = &priv->dai_link; in odroid_audio_probe() 196 of_node_put(priv->dai_link.cpu_of_node); in odroid_audio_remove() 197 snd_soc_of_put_dai_link_codecs(&priv->dai_link); in odroid_audio_remove()
|
D | bells.c | 67 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); in bells_set_bias_level() 113 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); in bells_set_bias_level_post() 159 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_AP_DSP].name); in bells_late_probe() 162 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_DSP_CODEC].name); in bells_late_probe() 202 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_CODEC_CP].name); in bells_late_probe() 214 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[DAI_CODEC_SUB].name); in bells_late_probe() 390 .dai_link = bells_dai_wm2200, 410 .dai_link = bells_dai_wm5102, 430 .dai_link = bells_dai_wm5110,
|
D | littlemill.c | 30 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in littlemill_set_bias_level() 77 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in littlemill_set_bias_level_post() 183 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); in bbclk_ev() 266 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in littlemill_late_probe() 270 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[1].name); in littlemill_late_probe() 304 .dai_link = littlemill_dai,
|
D | snow.c | 27 struct snd_soc_dai_link dai_link; member 113 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in snow_late_probe() 145 link = &priv->dai_link; in snow_probe() 153 card->dai_link = link; in snow_probe() 226 struct snd_soc_dai_link *link = &priv->dai_link; in snow_remove()
|
D | tm2_wm5110.c | 290 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[0].name); in tm2_set_bias_level() 323 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[TM2_DAI_AIF1].name); in tm2_late_probe() 333 rtd = snd_soc_get_pcm_runtime(card, card->dai_link[TM2_DAI_AIF2].name); in tm2_late_probe() 473 .dai_link = tm2_dai_links, 564 card->dai_link[i].cpu_name = NULL; in tm2_probe() 565 card->dai_link[i].platform_name = NULL; in tm2_probe() 570 card->dai_link[i].codec_of_node = codec_dai_node[dai_index]; in tm2_probe() 571 card->dai_link[i].cpu_of_node = cpu_dai_node[dai_index]; in tm2_probe() 572 card->dai_link[i].platform_of_node = cpu_dai_node[dai_index]; in tm2_probe() 586 ret = snd_soc_get_dai_name(&args, &card->dai_link[i].codec_dai_name); in tm2_probe()
|
/Linux-v4.19/sound/soc/omap/ |
D | omap-hdmi-audio.c | 370 card->dai_link = in omap_hdmi_audio_probe() 371 devm_kzalloc(dev, sizeof(*(card->dai_link)), GFP_KERNEL); in omap_hdmi_audio_probe() 372 if (!card->dai_link) in omap_hdmi_audio_probe() 374 card->dai_link->name = card->name; in omap_hdmi_audio_probe() 375 card->dai_link->stream_name = card->name; in omap_hdmi_audio_probe() 376 card->dai_link->cpu_dai_name = dev_name(ad->dssdev); in omap_hdmi_audio_probe() 377 card->dai_link->platform_name = dev_name(ad->dssdev); in omap_hdmi_audio_probe() 378 card->dai_link->codec_name = "snd-soc-dummy"; in omap_hdmi_audio_probe() 379 card->dai_link->codec_dai_name = "snd-soc-dummy-dai"; in omap_hdmi_audio_probe()
|
/Linux-v4.19/sound/soc/atmel/ |
D | atmel-classd.c | 501 struct snd_soc_dai_link *dai_link; in atmel_classd_asoc_card_init() local 504 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_classd_asoc_card_init() 505 if (!dai_link) in atmel_classd_asoc_card_init() 508 dai_link->name = "CLASSD"; in atmel_classd_asoc_card_init() 509 dai_link->stream_name = "CLASSD PCM"; in atmel_classd_asoc_card_init() 510 dai_link->codec_dai_name = ATMEL_CLASSD_CODEC_DAI_NAME; in atmel_classd_asoc_card_init() 511 dai_link->cpu_dai_name = dev_name(dev); in atmel_classd_asoc_card_init() 512 dai_link->codec_name = dev_name(dev); in atmel_classd_asoc_card_init() 513 dai_link->platform_name = dev_name(dev); in atmel_classd_asoc_card_init() 515 card->dai_link = dai_link; in atmel_classd_asoc_card_init()
|
D | atmel-pdmic.c | 512 struct snd_soc_dai_link *dai_link; in atmel_pdmic_asoc_card_init() local 515 dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL); in atmel_pdmic_asoc_card_init() 516 if (!dai_link) in atmel_pdmic_asoc_card_init() 519 dai_link->name = "PDMIC"; in atmel_pdmic_asoc_card_init() 520 dai_link->stream_name = "PDMIC PCM"; in atmel_pdmic_asoc_card_init() 521 dai_link->codec_dai_name = ATMEL_PDMIC_CODEC_DAI_NAME; in atmel_pdmic_asoc_card_init() 522 dai_link->cpu_dai_name = dev_name(dev); in atmel_pdmic_asoc_card_init() 523 dai_link->codec_name = dev_name(dev); in atmel_pdmic_asoc_card_init() 524 dai_link->platform_name = dev_name(dev); in atmel_pdmic_asoc_card_init() 526 card->dai_link = dai_link; in atmel_pdmic_asoc_card_init()
|
/Linux-v4.19/sound/soc/davinci/ |
D | davinci-evm.c | 258 .dai_link = &dm6446_evm_dai, 272 .dai_link = &dm355_evm_dai, 285 .dai_link = &dm365_evm_dai, 298 .dai_link = dm6467_evm_dai, 310 .dai_link = &da830_evm_dai, 322 .dai_link = &da850_evm_dai, 375 evm_soc_card.dai_link = dai; in davinci_evm_probe()
|