Home
last modified time | relevance | path

Searched refs:link (Results 1 – 25 of 29) sorted by relevance

12

/sound/soc/qcom/
Dcommon.c16 struct snd_soc_dai_link *link; in qcom_snd_parse_of() local
39 card->dai_link = kcalloc(num_links, sizeof(*link), GFP_KERNEL); in qcom_snd_parse_of()
44 link = card->dai_link; in qcom_snd_parse_of()
53 link->cpus = &dlc[0]; in qcom_snd_parse_of()
54 link->platforms = &dlc[1]; in qcom_snd_parse_of()
56 link->num_cpus = 1; in qcom_snd_parse_of()
57 link->num_platforms = 1; in qcom_snd_parse_of()
59 ret = of_property_read_string(np, "link-name", &link->name); in qcom_snd_parse_of()
70 dev_err(dev, "%s: Can't find cpu DT node\n", link->name); in qcom_snd_parse_of()
78 dev_err(card->dev, "%s: error getting cpu phandle\n", link->name); in qcom_snd_parse_of()
[all …]
Dapq8016_sbc.c117 struct snd_soc_dai_link *link; in apq8016_sbc_parse_of() local
151 link = data->dai_link; in apq8016_sbc_parse_of()
158 link->cpus = &dlc[0]; in apq8016_sbc_parse_of()
159 link->platforms = &dlc[1]; in apq8016_sbc_parse_of()
161 link->num_cpus = 1; in apq8016_sbc_parse_of()
162 link->num_platforms = 1; in apq8016_sbc_parse_of()
173 link->cpus->of_node = of_parse_phandle(cpu, "sound-dai", 0); in apq8016_sbc_parse_of()
174 if (!link->cpus->of_node) { in apq8016_sbc_parse_of()
180 ret = snd_soc_of_get_dai_name(cpu, &link->cpus->dai_name); in apq8016_sbc_parse_of()
186 ret = snd_soc_of_get_dai_link_codecs(dev, codec, link); in apq8016_sbc_parse_of()
[all …]
Dapq8096.c94 struct snd_soc_dai_link *link; in apq8096_add_be_ops() local
97 for_each_card_prelinks(card, i, link) { in apq8096_add_be_ops()
98 if (link->no_pcm == 1) { in apq8096_add_be_ops()
99 link->be_hw_params_fixup = apq8096_be_hw_params_fixup; in apq8096_add_be_ops()
100 link->init = apq8096_init; in apq8096_add_be_ops()
101 link->ops = &apq8096_ops; in apq8096_add_be_ops()
Dsdm845.c381 struct snd_soc_dai_link *link; in sdm845_add_ops() local
384 for_each_card_prelinks(card, i, link) { in sdm845_add_ops()
385 if (link->no_pcm == 1) { in sdm845_add_ops()
386 link->ops = &sdm845_be_ops; in sdm845_add_ops()
387 link->be_hw_params_fixup = sdm845_be_hw_params_fixup; in sdm845_add_ops()
389 link->init = sdm845_dai_init; in sdm845_add_ops()
/sound/pcmcia/pdaudiocf/
Dpdaudiocf.c46 static int pdacf_config(struct pcmcia_device *link);
49 static void pdacf_release(struct pcmcia_device *link) in pdacf_release() argument
51 free_irq(link->irq, link->priv); in pdacf_release()
52 pcmcia_disable_device(link); in pdacf_release()
60 struct pcmcia_device *link = pdacf->p_dev; in snd_pdacf_free() local
62 pdacf_release(link); in snd_pdacf_free()
80 static int snd_pdacf_probe(struct pcmcia_device *link) in snd_pdacf_probe() argument
103 err = snd_card_new(&link->dev, index[i], id[i], THIS_MODULE, in snd_pdacf_probe()
126 pdacf->p_dev = link; in snd_pdacf_probe()
127 link->priv = pdacf; in snd_pdacf_probe()
[all …]
/sound/soc/samsung/
Dsnow.c133 struct snd_soc_dai_link *link; in snow_probe() local
141 link = &priv->dai_link; in snow_probe()
143 link->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | in snow_probe()
146 link->name = "Primary"; in snow_probe()
147 link->stream_name = link->name; in snow_probe()
149 link->cpus = links_cpus; in snow_probe()
150 link->num_cpus = ARRAY_SIZE(links_cpus); in snow_probe()
151 link->codecs = links_codecs; in snow_probe()
152 link->num_codecs = ARRAY_SIZE(links_codecs); in snow_probe()
153 link->platforms = links_platforms; in snow_probe()
[all …]
Dodroid.c206 struct snd_soc_dai_link *link, *codec_link; in odroid_audio_probe() local
246 link = card->dai_link; in odroid_audio_probe()
262 for (i = 0; i < num_pcms; i++, link += 2) { in odroid_audio_probe()
274 ret = snd_soc_get_dai_name(&args, &link->cpus->dai_name); in odroid_audio_probe()
/sound/pcmcia/vx/
Dvxpocket.c51 static void vxpocket_release(struct pcmcia_device *link) in vxpocket_release() argument
53 free_irq(link->irq, link->priv); in vxpocket_release()
54 pcmcia_disable_device(link); in vxpocket_release()
124 struct pcmcia_device *link, in snd_vxpocket_new() argument
148 vxp->p_dev = link; in snd_vxpocket_new()
149 link->priv = chip; in snd_vxpocket_new()
151 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in snd_vxpocket_new()
152 link->resource[0]->end = 16; in snd_vxpocket_new()
154 link->config_flags |= CONF_ENABLE_IRQ; in snd_vxpocket_new()
155 link->config_index = 1; in snd_vxpocket_new()
[all …]
/sound/soc/meson/
Daxg-card.c94 struct snd_soc_dai_link *link, in axg_card_set_link_name() argument
103 link->name = name; in axg_card_set_link_name()
104 link->stream_name = name; in axg_card_set_link_name()
112 struct snd_soc_dai_link *link; in axg_card_clean_references() local
118 for_each_card_prelinks(card, i, link) { in axg_card_clean_references()
119 if (link->cpus) in axg_card_clean_references()
120 of_node_put(link->cpus->of_node); in axg_card_clean_references()
121 for_each_link_codecs(link, j, codec) in axg_card_clean_references()
334 struct snd_soc_dai_link *link, in axg_card_parse_cpu_tdm_slots() argument
357 link->dpcm_playback = 0; in axg_card_parse_cpu_tdm_slots()
[all …]
/sound/hda/ext/
Dhdac_ext_controller.c165 static int check_hdac_link_power_active(struct hdac_ext_link *link, bool enable) in check_hdac_link_power_active() argument
175 val = readl(link->ml_addr + AZX_REG_ML_LCTL); in check_hdac_link_power_active()
193 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *link) in snd_hdac_ext_bus_link_power_up() argument
195 snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL, in snd_hdac_ext_bus_link_power_up()
198 return check_hdac_link_power_active(link, true); in snd_hdac_ext_bus_link_power_up()
206 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *link) in snd_hdac_ext_bus_link_power_down() argument
208 snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0); in snd_hdac_ext_bus_link_power_down()
210 return check_hdac_link_power_active(link, false); in snd_hdac_ext_bus_link_power_down()
257 struct hdac_ext_link *link) in snd_hdac_ext_bus_link_get() argument
268 if (++link->ref_count == 1) { in snd_hdac_ext_bus_link_get()
[all …]
Dhdac_ext_stream.c232 void snd_hdac_ext_link_set_stream_id(struct hdac_ext_link *link, in snd_hdac_ext_link_set_stream_id() argument
235 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream); in snd_hdac_ext_link_set_stream_id()
244 void snd_hdac_ext_link_clear_stream_id(struct hdac_ext_link *link, in snd_hdac_ext_link_clear_stream_id() argument
247 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 0); in snd_hdac_ext_link_clear_stream_id()
/sound/soc/sof/intel/
Dhda-dai.c126 struct hdac_ext_link *link; in hda_link_dma_params() local
142 list_for_each_entry(link, &bus->hlink_list, list) { in hda_link_dma_params()
143 if (link->index == params->link_index) in hda_link_dma_params()
144 snd_hdac_ext_link_set_stream_id(link, in hda_link_dma_params()
210 struct hdac_ext_link *link; in hda_link_hw_params() local
214 link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); in hda_link_hw_params()
215 if (!link) in hda_link_hw_params()
249 p_params.link_index = link->index; in hda_link_hw_params()
286 struct hdac_ext_link *link; in hda_link_pcm_trigger() local
296 link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name); in hda_link_pcm_trigger()
[all …]
Dhda-dsp.c439 struct hdac_ext_link *link; in hda_dsp_set_hw_params_upon_resume() local
457 link = snd_hdac_ext_bus_get_link(bus, name); in hda_dsp_set_hw_params_upon_resume()
458 if (!link) in hda_dsp_set_hw_params_upon_resume()
468 snd_hdac_ext_link_clear_stream_id(link, stream_tag); in hda_dsp_set_hw_params_upon_resume()
/sound/soc/
Dsoc-topology.c319 struct snd_soc_dai_link *link, struct snd_soc_tplg_link_config *cfg) in soc_tplg_dai_link_load() argument
322 return tplg->ops->link_load(tplg->comp, tplg->index, link, cfg); in soc_tplg_dai_link_load()
542 struct snd_soc_dai_link *link = in remove_link() local
552 snd_soc_remove_dai_link(comp->card, link); in remove_link()
554 kfree(link->name); in remove_link()
555 kfree(link->stream_name); in remove_link()
556 kfree(link->cpus->dai_name); in remove_link()
557 kfree(link); in remove_link()
1883 static void set_link_flags(struct snd_soc_dai_link *link, in set_link_flags() argument
1887 link->symmetric_rates = in set_link_flags()
[all …]
Dsoc-core.c840 struct snd_soc_dai_link *link; in snd_soc_find_dai_link() local
844 for_each_card_links(card, link) { in snd_soc_find_dai_link()
845 if (link->id != id) in snd_soc_find_dai_link()
848 if (name && (!link->name || strcmp(name, link->name))) in snd_soc_find_dai_link()
851 if (stream_name && (!link->stream_name in snd_soc_find_dai_link()
852 || strcmp(stream_name, link->stream_name))) in snd_soc_find_dai_link()
855 return link; in snd_soc_find_dai_link()
1239 struct snd_soc_dai_link *link, *_link; in soc_remove_dai_links() local
1245 for_each_card_links_safe(card, link, _link) { in soc_remove_dai_links()
1246 if (link->dobj.type == SND_SOC_DOBJ_DAI_LINK) in soc_remove_dai_links()
[all …]
/sound/soc/fsl/
Dfsl_dma.c94 struct fsl_dma_link_descriptor link[NUM_DMA_LINKS]; member
162 struct fsl_dma_link_descriptor *link = in fsl_dma_update_pointers() local
163 &dma_private->link[dma_private->current_link]; in fsl_dma_update_pointers()
170 link->source_addr = cpu_to_be32(dma_private->dma_buf_next); in fsl_dma_update_pointers()
172 link->source_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP | in fsl_dma_update_pointers()
176 link->dest_addr = cpu_to_be32(dma_private->dma_buf_next); in fsl_dma_update_pointers()
178 link->dest_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP | in fsl_dma_update_pointers()
461 dma_private->link[i].next = cpu_to_be64(temp_link); in fsl_dma_open()
466 dma_private->link[i - 1].next = cpu_to_be64(dma_private->ld_buf_phys); in fsl_dma_open()
644 struct fsl_dma_link_descriptor *link = &dma_private->link[i]; in fsl_dma_hw_params() local
[all …]
/sound/soc/sof/imx/
Dimx8.c56 struct device_link **link; member
215 priv->link = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
216 sizeof(*priv->link), GFP_KERNEL); in imx8_probe()
217 if (!priv->link) in imx8_probe()
226 priv->link[i] = device_link_add(&pdev->dev, priv->pd_dev[i], in imx8_probe()
230 if (!priv->link[i]) { in imx8_probe()
316 device_link_del(priv->link[i]); in imx8_probe()
331 device_link_del(priv->link[i]); in imx8_remove()
/sound/soc/intel/boards/
Dskl_hda_dsp_generic.c70 skl_hda_add_dai_link(struct snd_soc_card *card, struct snd_soc_dai_link *link) in skl_hda_add_dai_link() argument
75 dev_dbg(card->dev, "%s: dai link name - %s\n", __func__, link->name); in skl_hda_add_dai_link()
76 link->platforms->name = ctx->platform_name; in skl_hda_add_dai_link()
77 link->nonatomic = 1; in skl_hda_add_dai_link()
79 if (strstr(link->name, "HDMI")) { in skl_hda_add_dai_link()
/sound/soc/generic/
Daudio-graph-card.c210 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of_dpcm()
211 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in graph_dai_link_of_dpcm()
230 li->link++; in graph_dai_link_of_dpcm()
340 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of()
341 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in graph_dai_link_of()
353 li->link++; in graph_dai_link_of()
526 li->link += 1; /* 1xCPU-Codec */ in graph_count_noml()
542 li->link++; /* 1xCPU-dummy */ in graph_count_dpcm()
546 li->link++; /* 1xdummy-Codec */ in graph_count_dpcm()
611 li->link, li->dais, li->conf); in graph_get_dais_count()
[all …]
Dsimple-card.c122 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of_dpcm()
123 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in simple_dai_link_of_dpcm()
143 li->link++; in simple_dai_link_of_dpcm()
251 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of()
252 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in simple_dai_link_of()
274 li->link++; in simple_dai_link_of()
513 li->link++; /* CPU-Codec */ in simple_count_noml()
524 li->link++; /* CPU-dummy or dummy-Codec */ in simple_count_dpcm()
584 li->link = 1; in simple_get_dais_count()
595 li->link, li->dais, li->conf); in simple_get_dais_count()
[all …]
Dsimple-card-utils.c559 dai_props = devm_kcalloc(dev, li->link, sizeof(*dai_props), GFP_KERNEL); in asoc_simple_init_priv()
560 dai_link = devm_kcalloc(dev, li->link, sizeof(*dai_link), GFP_KERNEL); in asoc_simple_init_priv()
581 for (i = 0; i < li->link; i++) { in asoc_simple_init_priv()
596 card->num_links = li->link; in asoc_simple_init_priv()
/sound/soc/sof/
Dtopology.c2411 struct snd_soc_dai_link *link, in sof_set_dai_config() argument
2421 if (strcmp(link->name, dai->name) == 0) { in sof_set_dai_config()
2427 dai->cpu_dai_name = link->cpus->dai_name; in sof_set_dai_config()
2440 link->name); in sof_set_dai_config()
2447 struct snd_soc_dai_link *link, in sof_link_ssp_load() argument
2515 ret = sof_set_dai_config(sdev, size, link, config); in sof_link_ssp_load()
2524 struct snd_soc_dai_link *link, in sof_link_sai_load() argument
2534 struct snd_soc_dai_link *link, in sof_link_esai_load() argument
2544 struct snd_soc_dai_link *link, in sof_link_dmic_load() argument
2658 ret = sof_set_dai_config(sdev, size, link, ipc_config); in sof_link_dmic_load()
[all …]
/sound/soc/sunxi/
Dsun4i-codec.c1297 struct snd_soc_dai_link *link = devm_kzalloc(dev, sizeof(*link), in sun4i_codec_create_link() local
1301 if (!link || !dlc) in sun4i_codec_create_link()
1304 link->cpus = &dlc[0]; in sun4i_codec_create_link()
1305 link->codecs = &dlc[1]; in sun4i_codec_create_link()
1306 link->platforms = &dlc[2]; in sun4i_codec_create_link()
1308 link->num_cpus = 1; in sun4i_codec_create_link()
1309 link->num_codecs = 1; in sun4i_codec_create_link()
1310 link->num_platforms = 1; in sun4i_codec_create_link()
1312 link->name = "cdc"; in sun4i_codec_create_link()
1313 link->stream_name = "CDC PCM"; in sun4i_codec_create_link()
[all …]
/sound/soc/intel/skylake/
Dskl-pcm.c186 struct hdac_ext_link *link; in skl_pcm_link_dma_prepare() local
208 list_for_each_entry(link, &bus->hlink_list, list) { in skl_pcm_link_dma_prepare()
209 if (link->index == params->link_index) in skl_pcm_link_dma_prepare()
210 snd_hdac_ext_link_set_stream_id(link, in skl_pcm_link_dma_prepare()
565 struct hdac_ext_link *link; in skl_link_hw_params() local
575 link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); in skl_link_hw_params()
576 if (!link) in skl_link_hw_params()
592 p_params.link_index = link->index; in skl_link_hw_params()
655 struct hdac_ext_link *link; in skl_link_hw_free() local
662 link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name); in skl_link_hw_free()
[all …]
/sound/soc/sprd/
Dsprd-pcm-dma.c242 struct sprd_dma_linklist link = { }; in sprd_pcm_hw_params() local
274 link.virt_addr = (unsigned long)data->virt; in sprd_pcm_hw_params()
275 link.phy_addr = data->phys; in sprd_pcm_hw_params()
292 flags, &link); in sprd_pcm_hw_params()

12