Home
last modified time | relevance | path

Searched refs:io (Results 1 – 25 of 53) sorted by relevance

123

/sound/soc/sh/rcar/
Drsnd.h209 u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
210 u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
211 u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
216 int rsnd_dma_attach(struct rsnd_dai_stream *io,
244 struct dma_chan* (*dma_req)(struct rsnd_dai_stream *io,
247 struct rsnd_dai_stream *io,
250 struct rsnd_dai_stream *io,
253 struct rsnd_dai_stream *io,
256 struct rsnd_dai_stream *io,
259 struct rsnd_dai_stream *io,
[all …]
Dssi.c106 #define rsnd_ssi_is_parent(ssi, io) ((ssi) == rsnd_io_to_mod_ssip(io)) argument
107 #define rsnd_ssi_is_multi_slave(mod, io) \ argument
108 (rsnd_ssi_multi_slaves(io) & (1 << rsnd_mod_id(mod)))
109 #define rsnd_ssi_is_run_mods(mod, io) \ argument
110 (rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod)))
113 int rsnd_ssi_hdmi_port(struct rsnd_dai_stream *io) in rsnd_ssi_hdmi_port() argument
115 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_ssi_hdmi_port()
127 int rsnd_ssi_use_busif(struct rsnd_dai_stream *io) in rsnd_ssi_use_busif() argument
129 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_ssi_use_busif()
138 if (rsnd_io_to_mod_src(io)) in rsnd_ssi_use_busif()
[all …]
Dcore.c132 struct dma_chan *rsnd_mod_dma_req(struct rsnd_dai_stream *io, in rsnd_mod_dma_req() argument
138 return mod->ops->dma_req(io, mod); in rsnd_mod_dma_req()
141 u32 *rsnd_mod_get_status(struct rsnd_dai_stream *io, in rsnd_mod_get_status() argument
152 u32* (*get_status)(struct rsnd_dai_stream *io, in rsnd_mod_init() argument
182 struct rsnd_dai_stream *io)) in rsnd_mod_interrupt() argument
185 struct rsnd_dai_stream *io; in rsnd_mod_interrupt() local
190 io = &rdai->playback; in rsnd_mod_interrupt()
191 if (mod == io->mod[mod->type]) in rsnd_mod_interrupt()
192 callback(mod, io); in rsnd_mod_interrupt()
194 io = &rdai->capture; in rsnd_mod_interrupt()
[all …]
Dssiu.c26 struct rsnd_dai_stream *io, in rsnd_ssiu_init() argument
29 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssiu_init()
30 u32 multi_ssi_slaves = rsnd_ssi_multi_slaves_runtime(io); in rsnd_ssiu_init()
31 int use_busif = rsnd_ssi_use_busif(io); in rsnd_ssiu_init()
71 } else if (rsnd_ssi_is_pin_sharing(io)) { in rsnd_ssiu_init()
123 struct rsnd_dai_stream *io, in rsnd_ssiu_init_gen2() argument
126 int hdmi = rsnd_ssi_hdmi_port(io); in rsnd_ssiu_init_gen2()
129 ret = rsnd_ssiu_init(mod, io, priv); in rsnd_ssiu_init_gen2()
133 if (rsnd_runtime_is_ssi_tdm(io)) { in rsnd_ssiu_init_gen2()
142 if (rsnd_ssi_use_busif(io)) { in rsnd_ssiu_init_gen2()
[all …]
Ddma.c66 #define rsnd_dmaen_sync(dmaen, io, i) __rsnd_dmaen_sync(dmaen, io, i, 1) argument
67 #define rsnd_dmaen_unsync(dmaen, io, i) __rsnd_dmaen_sync(dmaen, io, i, 0) argument
68 static void __rsnd_dmaen_sync(struct rsnd_dmaen *dmaen, struct rsnd_dai_stream *io, in __rsnd_dmaen_sync() argument
73 int is_play = rsnd_io_is_play(io); in __rsnd_dmaen_sync()
93 struct rsnd_dai_stream *io) in __rsnd_dmaen_complete() argument
110 if (rsnd_io_is_working(io)) { in __rsnd_dmaen_complete()
111 rsnd_dmaen_unsync(dmaen, io, dmaen->dma_cnt); in __rsnd_dmaen_complete()
119 rsnd_dmaen_sync(dmaen, io, dmaen->dma_cnt + 2); in __rsnd_dmaen_complete()
129 rsnd_dai_period_elapsed(io); in __rsnd_dmaen_complete()
139 static struct dma_chan *rsnd_dmaen_request_channel(struct rsnd_dai_stream *io, in rsnd_dmaen_request_channel() argument
[all …]
Dsrc.c65 static struct dma_chan *rsnd_src_dma_req(struct rsnd_dai_stream *io, in rsnd_src_dma_req() argument
69 int is_play = rsnd_io_is_play(io); in rsnd_src_dma_req()
76 static u32 rsnd_src_convert_rate(struct rsnd_dai_stream *io, in rsnd_src_convert_rate() argument
79 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_convert_rate()
101 struct rsnd_dai_stream *io, in rsnd_src_get_rate() argument
104 struct rsnd_mod *src_mod = rsnd_io_to_mod_src(io); in rsnd_src_get_rate()
105 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_get_rate()
107 int is_play = rsnd_io_is_play(io); in rsnd_src_get_rate()
125 rate = rsnd_src_convert_rate(io, src_mod); in rsnd_src_get_rate()
134 struct rsnd_dai_stream *io, in rsnd_src_hw_params() argument
[all …]
Ddvc.c103 static void rsnd_dvc_volume_parameter(struct rsnd_dai_stream *io, in rsnd_dvc_volume_parameter() argument
129 static void rsnd_dvc_volume_init(struct rsnd_dai_stream *io, in rsnd_dvc_volume_init() argument
139 adinr = rsnd_get_adinr_bit(mod, io) | in rsnd_dvc_volume_init()
140 rsnd_runtime_channel_after_ctu(io); in rsnd_dvc_volume_init()
173 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_init()
179 static void rsnd_dvc_volume_update(struct rsnd_dai_stream *io, in rsnd_dvc_volume_update() argument
208 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_update()
215 struct rsnd_dai_stream *io, in rsnd_dvc_probe_() argument
218 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_dvc_probe_()
222 struct rsnd_dai_stream *io, in rsnd_dvc_init() argument
[all …]
Dcmd.c27 struct rsnd_dai_stream *io, in rsnd_cmd_init() argument
30 struct rsnd_mod *dvc = rsnd_io_to_mod_dvc(io); in rsnd_cmd_init()
31 struct rsnd_mod *mix = rsnd_io_to_mod_mix(io); in rsnd_cmd_init()
72 struct rsnd_mod *src = rsnd_io_to_mod_src(io); in rsnd_cmd_init()
95 rsnd_mod_write(mod, CMD_BUSIF_MODE, rsnd_get_busif_shift(io, mod) | 1); in rsnd_cmd_init()
96 rsnd_mod_write(mod, CMD_BUSIF_DALIGN, rsnd_get_dalign(mod, io)); in rsnd_cmd_init()
98 rsnd_adg_set_cmd_timsel_gen2(mod, io); in rsnd_cmd_init()
104 struct rsnd_dai_stream *io, in rsnd_cmd_start() argument
113 struct rsnd_dai_stream *io, in rsnd_cmd_stop() argument
128 int rsnd_cmd_attach(struct rsnd_dai_stream *io, int id) in rsnd_cmd_attach() argument
[all …]
Dmix.c39 static void rsnd_mix_volume_parameter(struct rsnd_dai_stream *io, in rsnd_mix_volume_parameter() argument
48 static void rsnd_mix_volume_init(struct rsnd_dai_stream *io, in rsnd_mix_volume_init() argument
54 rsnd_mod_write(mod, MIX_ADINR, rsnd_runtime_channel_after_ctu(io)); in rsnd_mix_volume_init()
61 rsnd_mix_volume_parameter(io, mod); in rsnd_mix_volume_init()
66 static void rsnd_mix_volume_update(struct rsnd_dai_stream *io, in rsnd_mix_volume_update() argument
73 rsnd_mix_volume_parameter(io, mod); in rsnd_mix_volume_update()
80 struct rsnd_dai_stream *io, in rsnd_mix_probe_() argument
83 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_mix_probe_()
87 struct rsnd_dai_stream *io, in rsnd_mix_init() argument
94 rsnd_mix_volume_init(io, mod); in rsnd_mix_init()
[all …]
Dctu.c118 struct rsnd_dai_stream *io, in rsnd_ctu_probe_() argument
121 return rsnd_cmd_attach(io, rsnd_mod_id(mod) / 4); in rsnd_ctu_probe_()
124 static void rsnd_ctu_value_init(struct rsnd_dai_stream *io, in rsnd_ctu_value_init() argument
143 rsnd_mod_write(mod, CTU_ADINR, rsnd_runtime_channel_original(io)); in rsnd_ctu_value_init()
193 static void rsnd_ctu_value_reset(struct rsnd_dai_stream *io, in rsnd_ctu_value_reset() argument
213 struct rsnd_dai_stream *io, in rsnd_ctu_init() argument
220 rsnd_ctu_value_init(io, mod); in rsnd_ctu_init()
226 struct rsnd_dai_stream *io, in rsnd_ctu_quit() argument
237 struct rsnd_dai_stream *io, in rsnd_ctu_hw_params() argument
274 struct rsnd_dai_stream *io, in rsnd_ctu_pcm_new() argument
[all …]
Dadg.c78 static u32 rsnd_adg_ssi_ws_timing_gen2(struct rsnd_dai_stream *io) in rsnd_adg_ssi_ws_timing_gen2() argument
80 struct rsnd_mod *ssi_mod = rsnd_io_to_mod_ssi(io); in rsnd_adg_ssi_ws_timing_gen2()
84 if (rsnd_ssi_is_pin_sharing(io)) { in rsnd_adg_ssi_ws_timing_gen2()
103 struct rsnd_dai_stream *io, in __rsnd_adg_get_timesel_ratio() argument
164 struct rsnd_dai_stream *io, in rsnd_adg_get_timesel_ratio() argument
169 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_adg_get_timesel_ratio()
178 _out = rsnd_adg_ssi_ws_timing_gen2(io); in rsnd_adg_get_timesel_ratio()
192 __rsnd_adg_get_timesel_ratio(priv, io, in rsnd_adg_get_timesel_ratio()
205 struct rsnd_dai_stream *io) in rsnd_adg_set_cmd_timsel_gen2() argument
214 rsnd_adg_get_timesel_ratio(priv, io, in rsnd_adg_set_cmd_timsel_gen2()
[all …]
/sound/soc/sh/
Dfsi.c273 int (*init)(struct fsi_priv *fsi, struct fsi_stream *io);
274 int (*quit)(struct fsi_priv *fsi, struct fsi_stream *io);
275 int (*probe)(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev);
276 int (*transfer)(struct fsi_priv *fsi, struct fsi_stream *io);
277 int (*remove)(struct fsi_priv *fsi, struct fsi_stream *io);
278 int (*start_stop)(struct fsi_priv *fsi, struct fsi_stream *io,
281 #define fsi_stream_handler_call(io, func, args...) \ argument
282 (!(io) ? -ENODEV : \
283 !((io)->handler->func) ? 0 : \
284 (io)->handler->func(args))
[all …]
/sound/soc/kirkwood/
Dkirkwood-i2s.c65 value = readl(priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt()
68 writel(value, priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt()
70 value = readl(priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt()
73 writel(value, priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt()
78 static inline void kirkwood_set_dco(void __iomem *io, unsigned long rate) in kirkwood_set_dco() argument
95 writel(value, io + KIRKWOOD_DCO_CTL); in kirkwood_set_dco()
100 value = readl(io + KIRKWOOD_DCO_SPCR_STATUS); in kirkwood_set_dco()
115 kirkwood_set_dco(priv->io, rate); in kirkwood_set_rate()
127 writel(clks_ctrl, priv->io + KIRKWOOD_CLOCKS_CTRL); in kirkwood_set_rate()
156 i2s_value = readl(priv->io+i2s_reg); in kirkwood_i2s_hw_params()
[all …]
Dkirkwood-dma.c50 mask = readl(priv->io + KIRKWOOD_INT_MASK); in kirkwood_dma_irq()
51 status = readl(priv->io + KIRKWOOD_INT_CAUSE) & mask; in kirkwood_dma_irq()
53 cause = readl(priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
57 writel(cause, priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
69 writel(status, priv->io + KIRKWOOD_INT_CAUSE); in kirkwood_dma_irq()
145 writel((unsigned int)-1, priv->io + KIRKWOOD_ERR_MASK); in kirkwood_dma_open()
154 kirkwood_dma_conf_mbus_windows(priv->io, in kirkwood_dma_open()
160 kirkwood_dma_conf_mbus_windows(priv->io, in kirkwood_dma_open()
180 writel(0, priv->io + KIRKWOOD_ERR_MASK); in kirkwood_dma_close()
216 writel(count, priv->io + KIRKWOOD_PLAY_BYTE_INT_COUNT); in kirkwood_dma_prepare()
[all …]
/sound/oss/
Dmsnd.c245 register unsigned int io = dev->io; in msnd_wait_TXDE() local
249 if (msnd_inb(io + HP_ISR) & HPISR_TXDE) in msnd_wait_TXDE()
257 register unsigned int io = dev->io; in msnd_wait_HC0() local
261 if (!(msnd_inb(io + HP_CVR) & HPCVR_HC)) in msnd_wait_HC0()
273 msnd_outb(cmd, dev->io + HP_CVR); in msnd_send_dsp_cmd()
287 register unsigned int io = dev->io; in msnd_send_word() local
290 msnd_outb(high, io + HP_TXH); in msnd_send_word()
291 msnd_outb(mid, io + HP_TXM); in msnd_send_word()
292 msnd_outb(low, io + HP_TXL); in msnd_send_word()
314 msnd_inb(dev->io + HP_RXL); in msnd_upload_host()
[all …]
Dkahlua.c46 static u8 mixer_read(unsigned long io, u8 reg) in mixer_read() argument
48 outb(reg, io + 4); in mixer_read()
50 reg = inb(io + 5); in mixer_read()
60 unsigned long io; in probe_one() local
85 io = 0x220 + 0x20 * (map & 3); in probe_one()
88 printk(KERN_INFO "kahlua: XpressAudio at 0x%lx\n", io); in probe_one()
97 irq = mixer_read(io, 0x80) & 0x0F; in probe_one()
98 dma8 = mixer_read(io, 0x81); in probe_one()
152 hw_config->io_base = io; in probe_one()
159 if (!request_region(io, 16, "soundblaster")) in probe_one()
[all …]
Dmsnd_pinnacle.c136 msnd_outb(HPBLKSEL_1, dev.io + HP_BLKS); in reset_record_queue()
138 msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); in reset_record_queue()
842 msnd_outb(HPBLKSEL_1, dev.io + HP_BLKS); in pack_DARQ_to_DARF()
847 msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); in pack_DARQ_to_DARF()
1105 msnd_inb(dev.io + HP_RXL); in intr()
1135 msnd_outb(HPDSPRESET_ON, dev.io + HP_DSPR); in reset_dsp()
1138 dev.info = msnd_inb(dev.io + HP_INFO); in reset_dsp()
1140 msnd_outb(HPDSPRESET_OFF, dev.io + HP_DSPR); in reset_dsp()
1143 if (msnd_inb(dev.io + HP_CVR) == HP_CVR_DEF) in reset_dsp()
1160 if (!request_region(dev.io, dev.numio, "probing")) { in probe_multisound()
[all …]
Dsb_card.c43 static int __initdata io = -1; variable
64 module_param_hw(io, int, ioport, 000);
65 MODULE_PARM_DESC(io, "Soundblaster i/o base address (0x220,0x240,0x260,0x280)");
146 legacy->conf.io_base = io; in sb_init_legacy()
309 if(io != -1 && irq != -1 && dma != -1) { in sb_init()
311 "irq=%d, dma=%d, dma16=%d\n",io, irq, dma, dma16); in sb_init()
313 } else if((io != -1 || irq != -1 || dma != -1) || in sb_init()
314 (!pnp && (io == -1 && irq == -1 && dma == -1))) in sb_init()
Duart6850.c315 static int __initdata io = -1; variable
318 module_param_hw(io, int, ioport, 0);
323 cfg_mpu.io_base = io; in init_uart6850()
354 io = ints[1]; in setup_uart6850()
Dpas2_card.c376 static int __initdata io = -1; variable
386 module_param_hw(io, int, ioport, 0);
406 cfg.io_base = io; in init_pas2()
444 io = ints[1]; in setup_pas2()
Dtrix.c406 static int __initdata io = -1; variable
416 module_param_hw(io, int, ioport, 0);
431 cfg.io_base = io; in init_trix()
510 io = ints[1]; in setup_trix()
/sound/isa/msnd/
Dmsnd_pinnacle.c192 inb(chip->io + HP_RXL); in snd_msnd_interrupt()
197 static int snd_msnd_reset_dsp(long io, unsigned char *info) in snd_msnd_reset_dsp() argument
201 outb(HPDSPRESET_ON, io + HP_DSPR); in snd_msnd_reset_dsp()
205 *info = inb(io + HP_INFO); in snd_msnd_reset_dsp()
207 outb(HPDSPRESET_OFF, io + HP_DSPR); in snd_msnd_reset_dsp()
210 if (inb(io + HP_CVR) == HP_CVR_DEF) in snd_msnd_reset_dsp()
229 if (!request_region(chip->io, DSP_NUMIO, "probing")) { in snd_msnd_probe()
234 if (snd_msnd_reset_dsp(chip->io, &info) < 0) { in snd_msnd_probe()
235 release_region(chip->io, DSP_NUMIO); in snd_msnd_probe()
245 chip->io, chip->io + DSP_NUMIO - 1, in snd_msnd_probe()
[all …]
Dmsnd.c68 unsigned int io = dev->io; in snd_msnd_wait_TXDE() local
72 if (inb(io + HP_ISR) & HPISR_TXDE) in snd_msnd_wait_TXDE()
80 unsigned int io = dev->io; in snd_msnd_wait_HC0() local
84 if (!(inb(io + HP_CVR) & HPCVR_HC)) in snd_msnd_wait_HC0()
96 outb(cmd, dev->io + HP_CVR); in snd_msnd_send_dsp_cmd()
111 unsigned int io = dev->io; in snd_msnd_send_word() local
114 outb(high, io + HP_TXH); in snd_msnd_send_word()
115 outb(mid, io + HP_TXM); in snd_msnd_send_word()
116 outb(low, io + HP_TXL); in snd_msnd_send_word()
140 inb(dev->io + HP_RXL); in snd_msnd_upload_host()
[all …]
/sound/pci/
Dsis7019.c312 unsigned long io = sis->ioport; in sis_interrupt() local
322 intr = inl(io + SIS_GISR); in sis_interrupt()
329 status = inl(io + SIS_PISR_A); in sis_interrupt()
332 outl(status, io + SIS_PISR_A); in sis_interrupt()
335 status = inl(io + SIS_PISR_B); in sis_interrupt()
338 outl(status, io + SIS_PISR_B); in sis_interrupt()
341 status = inl(io + SIS_RISR); in sis_interrupt()
347 outl(status, io + SIS_RISR); in sis_interrupt()
350 outl(intr, io + SIS_GISR); in sis_interrupt()
351 intr = inl(io + SIS_GISR); in sis_interrupt()
[all …]
Dmaestro3.c1947 int io = chip->iobase; in snd_m3_remote_codec_config() local
1952 tmp = inw(io + RING_BUS_CTRL_B) & ~SECOND_CODEC_ID_MASK; in snd_m3_remote_codec_config()
1957 outw(tmp | isremote, io + RING_BUS_CTRL_B); in snd_m3_remote_codec_config()
1958 outw((inw(io + SDO_OUT_DEST_CTRL) & ~COMMAND_ADDR_OUT) | isremote, in snd_m3_remote_codec_config()
1959 io + SDO_OUT_DEST_CTRL); in snd_m3_remote_codec_config()
1960 outw((inw(io + SDO_IN_DEST_CTRL) & ~STATUS_ADDR_IN) | isremote, in snd_m3_remote_codec_config()
1961 io + SDO_IN_DEST_CTRL); in snd_m3_remote_codec_config()
1988 int io = chip->iobase; in snd_m3_ac97_reset() local
2005 dir = inw(io + GPIO_DIRECTION); in snd_m3_ac97_reset()
2011 outw(IO_SRAM_ENABLE, io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
[all …]

123