Home
last modified time | relevance | path

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

/sound/pcmcia/pdaudiocf/
Dpdaudiocf.c59 static int pdacf_config(struct pcmcia_device *link);
62 static void pdacf_release(struct pcmcia_device *link) in pdacf_release() argument
64 free_irq(link->irq, link->priv); in pdacf_release()
65 pcmcia_disable_device(link); in pdacf_release()
73 struct pcmcia_device *link = pdacf->p_dev; in snd_pdacf_free() local
75 pdacf_release(link); in snd_pdacf_free()
93 static int snd_pdacf_probe(struct pcmcia_device *link) in snd_pdacf_probe() argument
116 err = snd_card_new(&link->dev, index[i], id[i], THIS_MODULE, in snd_pdacf_probe()
139 pdacf->p_dev = link; in snd_pdacf_probe()
140 link->priv = pdacf; in snd_pdacf_probe()
[all …]
/sound/pcmcia/vx/
Dvxpocket.c63 static void vxpocket_release(struct pcmcia_device *link) in vxpocket_release() argument
65 free_irq(link->irq, link->priv); in vxpocket_release()
66 pcmcia_disable_device(link); in vxpocket_release()
136 struct pcmcia_device *link, in snd_vxpocket_new() argument
160 vxp->p_dev = link; in snd_vxpocket_new()
161 link->priv = chip; in snd_vxpocket_new()
163 link->resource[0]->flags |= IO_DATA_PATH_WIDTH_AUTO; in snd_vxpocket_new()
164 link->resource[0]->end = 16; in snd_vxpocket_new()
166 link->config_flags |= CONF_ENABLE_IRQ; in snd_vxpocket_new()
167 link->config_index = 1; in snd_vxpocket_new()
[all …]
/sound/soc/qcom/
Dapq8016_sbc.c70 struct snd_soc_dai_link *link; in apq8016_sbc_parse_of() local
85 data = devm_kzalloc(dev, sizeof(*data) + sizeof(*link) * num_links, in apq8016_sbc_parse_of()
93 link = data->dai_link; in apq8016_sbc_parse_of()
105 link->cpu_of_node = of_parse_phandle(cpu, "sound-dai", 0); in apq8016_sbc_parse_of()
106 if (!link->cpu_of_node) { in apq8016_sbc_parse_of()
112 link->codec_of_node = of_parse_phandle(codec, "sound-dai", 0); in apq8016_sbc_parse_of()
113 if (!link->codec_of_node) { in apq8016_sbc_parse_of()
119 ret = snd_soc_of_get_dai_name(cpu, &link->cpu_dai_name); in apq8016_sbc_parse_of()
125 ret = snd_soc_of_get_dai_name(codec, &link->codec_dai_name); in apq8016_sbc_parse_of()
131 link->platform_of_node = link->cpu_of_node; in apq8016_sbc_parse_of()
[all …]
/sound/soc/fsl/
Dfsl_dma.c97 struct fsl_dma_link_descriptor link[NUM_DMA_LINKS]; member
165 struct fsl_dma_link_descriptor *link = in fsl_dma_update_pointers() local
166 &dma_private->link[dma_private->current_link]; in fsl_dma_update_pointers()
173 link->source_addr = cpu_to_be32(dma_private->dma_buf_next); in fsl_dma_update_pointers()
175 link->source_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP | in fsl_dma_update_pointers()
179 link->dest_addr = cpu_to_be32(dma_private->dma_buf_next); in fsl_dma_update_pointers()
181 link->dest_attr = cpu_to_be32(CCSR_DMA_ATR_SNOOP | in fsl_dma_update_pointers()
462 dma_private->link[i].next = cpu_to_be64(temp_link); in fsl_dma_open()
467 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/hda/ext/
Dhdac_ext_controller.c238 static int check_hdac_link_power_active(struct hdac_ext_link *link, bool enable) in check_hdac_link_power_active() argument
248 val = readl(link->ml_addr + AZX_REG_ML_LCTL); in check_hdac_link_power_active()
266 int snd_hdac_ext_bus_link_power_up(struct hdac_ext_link *link) in snd_hdac_ext_bus_link_power_up() argument
268 snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL, 0, AZX_MLCTL_SPA); in snd_hdac_ext_bus_link_power_up()
270 return check_hdac_link_power_active(link, true); in snd_hdac_ext_bus_link_power_up()
278 int snd_hdac_ext_bus_link_power_down(struct hdac_ext_link *link) in snd_hdac_ext_bus_link_power_down() argument
280 snd_hdac_updatel(link->ml_addr, AZX_REG_ML_LCTL, AZX_MLCTL_SPA, 0); in snd_hdac_ext_bus_link_power_down()
282 return check_hdac_link_power_active(link, false); in snd_hdac_ext_bus_link_power_down()
Dhdac_ext_stream.c227 void snd_hdac_ext_link_set_stream_id(struct hdac_ext_link *link, in snd_hdac_ext_link_set_stream_id() argument
230 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, (1 << stream), 1 << stream); in snd_hdac_ext_link_set_stream_id()
239 void snd_hdac_ext_link_clear_stream_id(struct hdac_ext_link *link, in snd_hdac_ext_link_clear_stream_id() argument
242 snd_hdac_updatew(link->ml_addr, AZX_REG_ML_LOSIDV, 0, (1 << stream)); in snd_hdac_ext_link_clear_stream_id()
/sound/soc/sunxi/
Dsun4i-codec.c554 struct snd_soc_dai_link *link = devm_kzalloc(dev, sizeof(*link), in sun4i_codec_create_link() local
556 if (!link) in sun4i_codec_create_link()
559 link->name = "cdc"; in sun4i_codec_create_link()
560 link->stream_name = "CDC PCM"; in sun4i_codec_create_link()
561 link->codec_dai_name = "Codec"; in sun4i_codec_create_link()
562 link->cpu_dai_name = dev_name(dev); in sun4i_codec_create_link()
563 link->codec_name = dev_name(dev); in sun4i_codec_create_link()
564 link->platform_name = dev_name(dev); in sun4i_codec_create_link()
565 link->dai_fmt = SND_SOC_DAIFMT_I2S; in sun4i_codec_create_link()
569 return link; in sun4i_codec_create_link()
/sound/soc/intel/skylake/
Dskl-pcm.c370 struct hdac_ext_link *link; in skl_link_pcm_prepare() local
388 link = snd_hdac_ext_bus_get_link(ebus, rtd->codec->component.name); in skl_link_pcm_prepare()
389 if (!link) in skl_link_pcm_prepare()
392 snd_hdac_ext_link_set_stream_id(link, hdac_stream(link_dev)->stream_tag); in skl_link_pcm_prepare()
431 struct hdac_ext_link *link; in skl_link_hw_free() local
437 link = snd_hdac_ext_bus_get_link(ebus, rtd->codec->component.name); in skl_link_hw_free()
438 if (!link) in skl_link_hw_free()
441 snd_hdac_ext_link_clear_stream_id(link, hdac_stream(link_dev)->stream_tag); in skl_link_hw_free()
/sound/soc/
Dsoc-core.c2347 struct snd_soc_dai_link *link = &card->dai_link[i]; in snd_soc_register_card() local
2349 ret = snd_soc_init_multicodec(card, link); in snd_soc_register_card()
2355 for (j = 0; j < link->num_codecs; j++) { in snd_soc_register_card()
2360 if (!!link->codecs[j].name == in snd_soc_register_card()
2361 !!link->codecs[j].of_node) { in snd_soc_register_card()
2363 link->name); in snd_soc_register_card()
2367 if (!link->codecs[j].dai_name) { in snd_soc_register_card()
2369 link->name); in snd_soc_register_card()
2378 if (link->platform_name && link->platform_of_node) { in snd_soc_register_card()
2381 link->name); in snd_soc_register_card()
[all …]
Dsoc-pcm.c308 struct snd_soc_dai_link *link = rtd->dai_link; in soc_pcm_has_symmetry() local
311 symmetry = cpu_driver->symmetric_rates || link->symmetric_rates || in soc_pcm_has_symmetry()
312 cpu_driver->symmetric_channels || link->symmetric_channels || in soc_pcm_has_symmetry()
313 cpu_driver->symmetric_samplebits || link->symmetric_samplebits; in soc_pcm_has_symmetry()
/sound/
DKconfig133 This is used to avoid config and link hard dependencies between the