Home
last modified time | relevance | path

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

123

/sound/soc/qcom/
Dcommon.c15 struct snd_soc_dai_link *link; in qcom_snd_parse_of() local
50 card->dai_link = devm_kcalloc(dev, num_links, sizeof(*link), GFP_KERNEL); in qcom_snd_parse_of()
55 link = card->dai_link; in qcom_snd_parse_of()
64 link->cpus = &dlc[0]; in qcom_snd_parse_of()
65 link->platforms = &dlc[1]; in qcom_snd_parse_of()
67 link->num_cpus = 1; in qcom_snd_parse_of()
68 link->num_platforms = 1; in qcom_snd_parse_of()
70 ret = of_property_read_string(np, "link-name", &link->name); in qcom_snd_parse_of()
81 dev_err(dev, "%s: Can't find cpu DT node\n", link->name); in qcom_snd_parse_of()
89 dev_err(card->dev, "%s: error getting cpu phandle\n", link->name); in qcom_snd_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()
Dsm8250.c172 struct snd_soc_dai_link *link; in sm8250_add_be_ops() local
175 for_each_card_prelinks(card, i, link) { in sm8250_add_be_ops()
176 if (link->no_pcm == 1) { in sm8250_add_be_ops()
177 link->be_hw_params_fixup = sm8250_be_hw_params_fixup; in sm8250_add_be_ops()
178 link->ops = &sm8250_be_ops; in sm8250_add_be_ops()
Dsc7180.c319 struct snd_soc_dai_link *link; in sc7180_snd_platform_probe() local
360 for_each_card_prelinks(card, i, link) { in sc7180_snd_platform_probe()
362 link->ops = &sc7180_adau7002_ops; in sc7180_snd_platform_probe()
363 link->init = sc7180_adau7002_init; in sc7180_snd_platform_probe()
365 link->ops = &sc7180_ops; in sc7180_snd_platform_probe()
366 link->init = sc7180_init; in sc7180_snd_platform_probe()
/sound/pcmcia/pdaudiocf/
Dpdaudiocf.c45 static int pdacf_config(struct pcmcia_device *link);
48 static void pdacf_release(struct pcmcia_device *link) in pdacf_release() argument
50 free_irq(link->irq, link->priv); in pdacf_release()
51 pcmcia_disable_device(link); in pdacf_release()
59 struct pcmcia_device *link = pdacf->p_dev; in snd_pdacf_free() local
61 pdacf_release(link); in snd_pdacf_free()
79 static int snd_pdacf_probe(struct pcmcia_device *link) in snd_pdacf_probe() argument
102 err = snd_card_new(&link->dev, index[i], id[i], THIS_MODULE, in snd_pdacf_probe()
125 pdacf->p_dev = link; in snd_pdacf_probe()
126 link->priv = pdacf; in snd_pdacf_probe()
[all …]
/sound/pcmcia/vx/
Dvxpocket.c47 static void vxpocket_release(struct pcmcia_device *link) in vxpocket_release() argument
49 free_irq(link->irq, link->priv); in vxpocket_release()
50 pcmcia_disable_device(link); in vxpocket_release()
107 struct pcmcia_device *link, in snd_vxpocket_new() argument
122 vxp->p_dev = link; in snd_vxpocket_new()
123 link->priv = chip; in snd_vxpocket_new()
125 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in snd_vxpocket_new()
126 link->resource[0]->end = 16; in snd_vxpocket_new()
128 link->config_flags |= CONF_ENABLE_IRQ; in snd_vxpocket_new()
129 link->config_index = 1; in snd_vxpocket_new()
[all …]
/sound/soc/samsung/
Dsnow.c130 struct snd_soc_dai_link *link; in snow_probe() local
138 link = &priv->dai_link; in snow_probe()
140 link->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | in snow_probe()
143 link->name = "Primary"; in snow_probe()
144 link->stream_name = link->name; in snow_probe()
146 link->cpus = links_cpus; in snow_probe()
147 link->num_cpus = ARRAY_SIZE(links_cpus); in snow_probe()
148 link->codecs = links_codecs; in snow_probe()
149 link->num_codecs = ARRAY_SIZE(links_codecs); in snow_probe()
150 link->platforms = links_platforms; in snow_probe()
[all …]
/sound/soc/fsl/
Dimx-card.c492 struct snd_soc_dai_link *link; in imx_card_parse_of() local
516 card->dai_link = devm_kcalloc(dev, num_links, sizeof(*link), GFP_KERNEL); in imx_card_parse_of()
520 data->link_data = devm_kcalloc(dev, num_links, sizeof(*link), GFP_KERNEL); in imx_card_parse_of()
525 link = card->dai_link; in imx_card_parse_of()
535 link->cpus = &dlc[0]; in imx_card_parse_of()
536 link->platforms = &dlc[1]; in imx_card_parse_of()
538 link->num_cpus = 1; in imx_card_parse_of()
539 link->num_platforms = 1; in imx_card_parse_of()
541 ret = of_property_read_string(np, "link-name", &link->name); in imx_card_parse_of()
549 dev_err(dev, "%s: Can't find cpu DT node\n", link->name); in imx_card_parse_of()
[all …]
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()
433 dma_private->link[i].next = cpu_to_be64(temp_link); in fsl_dma_open()
438 dma_private->link[i - 1].next = cpu_to_be64(dma_private->ld_buf_phys); in fsl_dma_open()
615 struct fsl_dma_link_descriptor *link = &dma_private->link[i]; in fsl_dma_hw_params() local
[all …]
/sound/soc/meson/
Dmeson-card-utils.c100 struct snd_soc_dai_link *link, in meson_card_set_link_name() argument
109 link->name = name; in meson_card_set_link_name()
110 link->stream_name = name; in meson_card_set_link_name()
143 struct snd_soc_dai_link *link, in meson_card_set_be_link() argument
161 link->codecs = codec; in meson_card_set_be_link()
162 link->num_codecs = num_codecs; in meson_card_set_be_link()
175 ret = meson_card_set_link_name(card, link, node, "be"); in meson_card_set_be_link()
184 struct snd_soc_dai_link *link, in meson_card_set_fe_link() argument
194 link->codecs = codec; in meson_card_set_fe_link()
195 link->num_codecs = 1; in meson_card_set_fe_link()
[all …]
Daxg-card.c158 struct snd_soc_dai_link *link, in axg_card_parse_cpu_tdm_slots() argument
181 link->dpcm_playback = 0; in axg_card_parse_cpu_tdm_slots()
191 link->dpcm_capture = 0; in axg_card_parse_cpu_tdm_slots()
221 struct snd_soc_dai_link *link, in axg_card_parse_codecs_masks() argument
228 codec_mask = devm_kcalloc(card->dev, link->num_codecs, in axg_card_parse_codecs_masks()
252 struct snd_soc_dai_link *link = &card->dai_link[*index]; in axg_card_parse_tdm() local
263 link->ops = &axg_card_tdm_be_ops; in axg_card_parse_tdm()
264 link->init = axg_card_tdm_dai_init; in axg_card_parse_tdm()
265 link->dai_fmt = meson_card_parse_daifmt(node, link->cpus->of_node); in axg_card_parse_tdm()
269 ret = axg_card_parse_cpu_tdm_slots(card, link, node, be); in axg_card_parse_tdm()
[all …]
Dgx-card.c49 struct snd_soc_dai_link *link = &card->dai_link[*index]; in gx_card_parse_i2s() local
59 link->ops = &gx_card_i2s_be_ops; in gx_card_parse_i2s()
60 link->dai_fmt = meson_card_parse_daifmt(node, link->cpus->of_node); in gx_card_parse_i2s()
/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 …]
/sound/soc/intel/boards/
Dsof_sdw_common.h66 const struct snd_soc_acpi_link_adr *link,
101 const struct snd_soc_acpi_link_adr *link,
109 const struct snd_soc_acpi_link_adr *link,
117 const struct snd_soc_acpi_link_adr *link,
126 const struct snd_soc_acpi_link_adr *link,
133 const struct snd_soc_acpi_link_adr *link,
140 const struct snd_soc_acpi_link_adr *link,
147 const struct snd_soc_acpi_link_adr *link,
154 const struct snd_soc_acpi_link_adr *link,
163 const struct snd_soc_acpi_link_adr *link,
Dsof_realtek_common.c127 void sof_rt1011_dai_link(struct snd_soc_dai_link *link) in sof_rt1011_dai_link() argument
129 link->codecs = rt1011_dai_link_components; in sof_rt1011_dai_link()
130 link->num_codecs = ARRAY_SIZE(rt1011_dai_link_components); in sof_rt1011_dai_link()
131 link->init = rt1011_init; in sof_rt1011_dai_link()
132 link->ops = &rt1011_ops; in sof_rt1011_dai_link()
228 void sof_rt1015p_dai_link(struct snd_soc_dai_link *link) in sof_rt1015p_dai_link() argument
230 link->codecs = rt1015p_dai_link_components; in sof_rt1015p_dai_link()
231 link->num_codecs = rt1015p_get_num_codecs(); in sof_rt1015p_dai_link()
232 link->init = rt1015p_init; in sof_rt1015p_dai_link()
233 link->ops = &rt1015p_ops; in sof_rt1015p_dai_link()
Dsof_maxim_common.c195 void max_98357a_dai_link(struct snd_soc_dai_link *link) in max_98357a_dai_link() argument
197 link->codecs = max_98357a_components; in max_98357a_dai_link()
198 link->num_codecs = ARRAY_SIZE(max_98357a_components); in max_98357a_dai_link()
199 link->init = max_98357a_init; in max_98357a_dai_link()
203 void max_98360a_dai_link(struct snd_soc_dai_link *link) in max_98360a_dai_link() argument
205 link->codecs = max_98360a_components; in max_98360a_dai_link()
206 link->num_codecs = ARRAY_SIZE(max_98360a_components); in max_98360a_dai_link()
207 link->init = max_98357a_init; in max_98360a_dai_link()
Dsof_sdw.c388 const struct snd_soc_acpi_link_adr *link, in sof_sdw_mic_codec_mockup_init() argument
560 const struct snd_soc_acpi_link_adr *link; in get_sdw_dailink_info() local
575 for (link = links; link->num_adr; link++) { in get_sdw_dailink_info()
581 adr = link->adr_d->adr; in get_sdw_dailink_info()
586 endpoint = link->adr_d->endpoints; in get_sdw_dailink_info()
631 static bool is_unique_device(const struct snd_soc_acpi_link_adr *link, in is_unique_device() argument
641 for (i = 0; i < link->num_adr; i++) { in is_unique_device()
649 adr = link->adr_d[i].adr; in is_unique_device()
667 const struct snd_soc_acpi_link_adr *link, in create_codec_dai_name() argument
677 if (*codec_conf_index + link->num_adr > codec_count) { in create_codec_dai_name()
[all …]
Dskl_hda_dsp_generic.c73 skl_hda_add_dai_link(struct snd_soc_card *card, struct snd_soc_dai_link *link) in skl_hda_add_dai_link() argument
78 dev_dbg(card->dev, "%s: dai link name - %s\n", __func__, link->name); in skl_hda_add_dai_link()
79 link->platforms->name = ctx->platform_name; in skl_hda_add_dai_link()
80 link->nonatomic = 1; in skl_hda_add_dai_link()
85 if (strstr(link->name, "HDMI")) { in skl_hda_add_dai_link()
Dsof_realtek_common.h21 void sof_rt1011_dai_link(struct snd_soc_dai_link *link);
28 void sof_rt1015p_dai_link(struct snd_soc_dai_link *link);
/sound/soc/
Dsoc-topology.c306 struct snd_soc_dai_link *link, struct snd_soc_tplg_link_config *cfg) in soc_tplg_dai_link_load() argument
309 return tplg->ops->link_load(tplg->comp, tplg->index, link, cfg); in soc_tplg_dai_link_load()
469 struct snd_soc_dai_link *link = in remove_link() local
480 snd_soc_get_pcm_runtime(comp->card, link)); in remove_link()
1747 static void set_link_flags(struct snd_soc_dai_link *link, in set_link_flags() argument
1751 link->symmetric_rate = in set_link_flags()
1755 link->symmetric_channels = in set_link_flags()
1760 link->symmetric_sample_bits = in set_link_flags()
1765 link->ignore_suspend = in set_link_flags()
1774 struct snd_soc_dai_link *link; in soc_tplg_fe_link_create() local
[all …]
/sound/soc/generic/
Daudio-graph-card.c218 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_parse_node()
219 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in graph_parse_node()
256 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_link_init()
278 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of_dpcm()
279 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in graph_dai_link_of_dpcm()
359 li->link++; in graph_dai_link_of_dpcm()
370 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in graph_dai_link_of()
397 li->link++; in graph_dai_link_of()
551 if (!li->link) in audio_graph_parse_of()
612 if (li->link >= SNDRV_MAX_LINKS) { in graph_count_noml()
[all …]
Dsimple-card.c145 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_parse_node()
146 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in simple_parse_node()
183 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_link_init()
204 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of_dpcm()
205 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link); in simple_dai_link_of_dpcm()
271 li->link++; in simple_dai_link_of_dpcm()
284 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link); in simple_dai_link_of()
332 li->link++; in simple_dai_link_of()
507 if (li->link >= SNDRV_MAX_LINKS) { in simple_count_noml()
514 li->num[li->link].cpus = 1; in simple_count_noml()
[all …]
/sound/soc/sof/intel/
Dhda-dai.c127 struct hdac_ext_link *link; in hda_link_dma_params() local
143 list_for_each_entry(link, &bus->hlink_list, list) { in hda_link_dma_params()
144 if (link->index == params->link_index) in hda_link_dma_params()
145 snd_hdac_ext_link_set_stream_id(link, in hda_link_dma_params()
211 struct hdac_ext_link *link; in hda_link_hw_params() local
215 link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); in hda_link_hw_params()
216 if (!link) in hda_link_hw_params()
250 p_params.link_index = link->index; in hda_link_hw_params()
287 struct hdac_ext_link *link; in hda_link_pcm_trigger() local
297 link = snd_hdac_ext_bus_get_link(bus, asoc_rtd_to_codec(rtd, 0)->component->name); in hda_link_pcm_trigger()
[all …]
/sound/hda/
Dintel-sdw-acpi.c28 struct fwnode_handle *link; in is_link_enabled() local
36 link = fwnode_get_named_child_node(fw_node, name); in is_link_enabled()
37 if (!link) in is_link_enabled()
40 fwnode_property_read_u32(link, in is_link_enabled()
/sound/soc/sof/imx/
Dimx8.c57 struct device_link **link; member
242 priv->link = devm_kmalloc_array(&pdev->dev, priv->num_domains, in imx8_probe()
243 sizeof(*priv->link), GFP_KERNEL); in imx8_probe()
244 if (!priv->link) in imx8_probe()
253 priv->link[i] = device_link_add(&pdev->dev, priv->pd_dev[i], in imx8_probe()
257 if (!priv->link[i]) { in imx8_probe()
343 device_link_del(priv->link[i]); in imx8_probe()
358 device_link_del(priv->link[i]); in imx8_remove()

123