Home
last modified time | relevance | path

Searched refs:aio (Results 1 – 8 of 8) sorted by relevance

/sound/soc/bcm/
Dcygnus-ssp.c254 static int audio_ssp_init_portregs(struct cygnus_aio_port *aio) in audio_ssp_init_portregs() argument
259 switch (aio->port_type) { in audio_ssp_init_portregs()
261 value = readl(aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs()
265 writel(aio->portnum, in audio_ssp_init_portregs()
266 aio->cygaud->audio + aio->regs.bf_sourcech_grp); in audio_ssp_init_portregs()
269 value |= aio->portnum << I2S_OUT_STREAM_CFG_GROUP_ID; in audio_ssp_init_portregs()
270 value |= aio->portnum; /* FCI ID is the port num */ in audio_ssp_init_portregs()
272 writel(value, aio->cygaud->audio + aio->regs.i2s_stream_cfg); in audio_ssp_init_portregs()
275 value = readl(aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs()
279 writel(value, aio->cygaud->audio + aio->regs.bf_sourcech_cfg); in audio_ssp_init_portregs()
[all …]
Dcygnus-pcm.c258 struct cygnus_aio_port *aio; in configure_ringbuf_regs() local
262 aio = cygnus_dai_get_dma_data(substream); in configure_ringbuf_regs()
266 p_rbuf = &aio->play_rb_regs; in configure_ringbuf_regs()
268 switch (aio->portnum) { in configure_ringbuf_regs()
285 p_rbuf = &aio->capture_rb_regs; in configure_ringbuf_regs()
287 switch (aio->portnum) { in configure_ringbuf_regs()
307 struct cygnus_aio_port *aio; in get_ringbuf() local
310 aio = cygnus_dai_get_dma_data(substream); in get_ringbuf()
313 p_rbuf = &aio->play_rb_regs; in get_ringbuf()
315 p_rbuf = &aio->capture_rb_regs; in get_ringbuf()
[all …]
/sound/soc/uniphier/
Daio-cpu.c101 static const struct uniphier_aio_spec *find_spec(struct uniphier_aio *aio, in find_spec() argument
105 const struct uniphier_aio_chip_spec *chip_spec = aio->chip->chip_spec; in find_spec()
128 static int find_divider(struct uniphier_aio *aio, int pll_id, unsigned int freq) in find_divider() argument
135 if (!is_valid_pll(aio->chip, pll_id)) in find_divider()
138 pll = &aio->chip->plls[pll_id]; in find_divider()
149 struct uniphier_aio *aio = uniphier_priv(dai); in uniphier_aio_set_sysclk() local
150 struct device *dev = &aio->chip->pdev->dev; in uniphier_aio_set_sysclk()
195 for (pll_id = 0; pll_id < aio->chip->num_plls; pll_id++) { in uniphier_aio_set_sysclk()
196 div_id = find_divider(aio, pll_id, freq); in uniphier_aio_set_sysclk()
198 aio->plldiv = div_id; in uniphier_aio_set_sysclk()
[all …]
DMakefile2 snd-soc-uniphier-aio-cpu-objs := aio-core.o aio-dma.o aio-cpu.o aio-compress.o
3 snd-soc-uniphier-aio-ld11-objs := aio-ld11.o
4 snd-soc-uniphier-aio-pxs2-objs := aio-pxs2.o
6 obj-$(CONFIG_SND_SOC_UNIPHIER_AIO) += snd-soc-uniphier-aio-cpu.o
7 obj-$(CONFIG_SND_SOC_UNIPHIER_LD11) += snd-soc-uniphier-aio-ld11.o
8 obj-$(CONFIG_SND_SOC_UNIPHIER_PXS2) += snd-soc-uniphier-aio-pxs2.o
Daio-compress.c28 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_comprdma_new() local
29 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new()
61 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_comprdma_free() local
62 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_free()
79 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_compr_open() local
80 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_open()
105 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_compr_free() local
106 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_free()
126 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aio_compr_get_params() local
127 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_get_params()
[all …]
Daio-core.c202 struct device *dev = &sub->aio->chip->pdev->dev; in aio_init()
203 struct regmap *r = sub->aio->chip->regmap; in aio_init()
252 struct regmap *r = sub->aio->chip->regmap; in aio_port_reset()
279 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_ch()
331 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_rate()
332 struct device *dev = &sub->aio->chip->pdev->dev; in aio_port_set_rate()
450 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_fmt()
451 struct device *dev = &sub->aio->chip->pdev->dev; in aio_port_set_fmt()
455 switch (sub->aio->fmt) { in aio_port_set_fmt()
467 sub->aio->fmt); in aio_port_set_fmt()
[all …]
Daio-dma.c75 struct uniphier_aio *aio = &chip->aios[i]; in aiodma_irq() local
77 for (j = 0; j < ARRAY_SIZE(aio->sub); j++) { in aiodma_irq()
78 struct uniphier_aio_sub *sub = &aio->sub[j]; in aiodma_irq()
112 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aiodma_prepare() local
113 struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; in uniphier_aiodma_prepare()
139 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aiodma_trigger() local
140 struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; in uniphier_aiodma_trigger()
141 struct device *dev = &aio->chip->pdev->dev; in uniphier_aiodma_trigger()
175 struct uniphier_aio *aio = uniphier_priv(asoc_rtd_to_cpu(rtd, 0)); in uniphier_aiodma_pointer() local
176 struct uniphier_aio_sub *sub = &aio->sub[substream->stream]; in uniphier_aiodma_pointer()
Daio.h230 struct uniphier_aio *aio; member