Home
last modified time | relevance | path

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

12

/sound/soc/sh/rcar/
Drsnd.h262 u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
263 u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
264 u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
269 int rsnd_dma_attach(struct rsnd_dai_stream *io,
297 struct dma_chan* (*dma_req)(struct rsnd_dai_stream *io,
300 struct rsnd_dai_stream *io,
303 struct rsnd_dai_stream *io,
306 struct rsnd_dai_stream *io,
309 struct rsnd_dai_stream *io,
312 struct rsnd_dai_stream *io,
[all …]
Dssi.c113 #define rsnd_ssi_is_parent(ssi, io) ((ssi) == rsnd_io_to_mod_ssip(io)) argument
114 #define rsnd_ssi_is_multi_secondary(mod, io) \ argument
115 (rsnd_ssi_multi_secondaries(io) & (1 << rsnd_mod_id(mod)))
116 #define rsnd_ssi_is_run_mods(mod, io) \ argument
117 (rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod)))
120 int rsnd_ssi_use_busif(struct rsnd_dai_stream *io) in rsnd_ssi_use_busif() argument
122 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_ssi_use_busif()
131 if (rsnd_io_to_mod_src(io)) in rsnd_ssi_use_busif()
166 static u32 rsnd_ssi_multi_secondaries(struct rsnd_dai_stream *io) in rsnd_ssi_multi_secondaries() argument
177 struct rsnd_mod *mod = rsnd_io_to_mod(io, types[i]); in rsnd_ssi_multi_secondaries()
[all …]
Dcore.c125 struct dma_chan *rsnd_mod_dma_req(struct rsnd_dai_stream *io, in rsnd_mod_dma_req() argument
131 return mod->ops->dma_req(io, mod); in rsnd_mod_dma_req()
166 struct rsnd_dai_stream *io, in rsnd_mod_get_status() argument
222 struct rsnd_dai_stream *io)) in rsnd_mod_interrupt() argument
229 struct rsnd_dai_stream *io = &rdai->playback; in rsnd_mod_interrupt() local
231 if (mod == io->mod[mod->type]) in rsnd_mod_interrupt()
232 callback(mod, io); in rsnd_mod_interrupt()
234 io = &rdai->capture; in rsnd_mod_interrupt()
235 if (mod == io->mod[mod->type]) in rsnd_mod_interrupt()
236 callback(mod, io); in rsnd_mod_interrupt()
[all …]
Ddma.c70 struct rsnd_dai_stream *io) in __rsnd_dmaen_complete() argument
72 if (rsnd_io_is_working(io)) in __rsnd_dmaen_complete()
73 rsnd_dai_period_elapsed(io); in __rsnd_dmaen_complete()
83 static struct dma_chan *rsnd_dmaen_request_channel(struct rsnd_dai_stream *io, in rsnd_dmaen_request_channel() argument
92 return rsnd_mod_dma_req(io, mod_from); in rsnd_dmaen_request_channel()
94 return rsnd_mod_dma_req(io, mod_to); in rsnd_dmaen_request_channel()
98 struct rsnd_dai_stream *io, in rsnd_dmaen_stop() argument
111 struct rsnd_dai_stream *io, in rsnd_dmaen_cleanup() argument
131 struct rsnd_dai_stream *io, in rsnd_dmaen_prepare() argument
147 dmaen->chan = rsnd_dmaen_request_channel(io, in rsnd_dmaen_prepare()
[all …]
Dsrc.c78 static struct dma_chan *rsnd_src_dma_req(struct rsnd_dai_stream *io, in rsnd_src_dma_req() argument
82 int is_play = rsnd_io_is_play(io); in rsnd_src_dma_req()
89 static u32 rsnd_src_convert_rate(struct rsnd_dai_stream *io, in rsnd_src_convert_rate() argument
92 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_convert_rate()
100 return rsnd_io_converted_rate(io); in rsnd_src_convert_rate()
105 convert_rate = rsnd_io_converted_rate(io); in rsnd_src_convert_rate()
114 struct rsnd_dai_stream *io, in rsnd_src_get_rate() argument
117 struct rsnd_mod *src_mod = rsnd_io_to_mod_src(io); in rsnd_src_get_rate()
118 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_src_get_rate()
120 int is_play = rsnd_io_is_play(io); in rsnd_src_get_rate()
[all …]
Dssiu.c132 struct rsnd_dai_stream *io, in rsnd_ssiu_get_status() argument
142 struct rsnd_dai_stream *io, in rsnd_ssiu_init() argument
145 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssiu_init()
146 u32 ssis = rsnd_ssi_multi_secondaries_runtime(io); in rsnd_ssiu_init()
147 int use_busif = rsnd_ssi_use_busif(io); in rsnd_ssiu_init()
168 if (rsnd_ssi_is_pin_sharing(io)) { in rsnd_ssiu_init()
221 struct rsnd_dai_stream *io, in rsnd_ssiu_quit() argument
238 struct rsnd_dai_stream *io, in rsnd_ssiu_init_gen2() argument
242 u32 has_hdmi0 = rsnd_flags_has(io, RSND_STREAM_HDMI0); in rsnd_ssiu_init_gen2()
243 u32 has_hdmi1 = rsnd_flags_has(io, RSND_STREAM_HDMI1); in rsnd_ssiu_init_gen2()
[all …]
Ddvc.c73 static void rsnd_dvc_volume_parameter(struct rsnd_dai_stream *io, in rsnd_dvc_volume_parameter() argument
93 static void rsnd_dvc_volume_init(struct rsnd_dai_stream *io, in rsnd_dvc_volume_init() argument
103 adinr = rsnd_get_adinr_bit(mod, io) | in rsnd_dvc_volume_init()
104 rsnd_runtime_channel_after_ctu(io); in rsnd_dvc_volume_init()
137 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_init()
143 static void rsnd_dvc_volume_update(struct rsnd_dai_stream *io, in rsnd_dvc_volume_update() argument
172 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_update()
179 struct rsnd_dai_stream *io, in rsnd_dvc_probe_() argument
182 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_dvc_probe_()
186 struct rsnd_dai_stream *io, in rsnd_dvc_init() argument
[all …]
Dcmd.c24 struct rsnd_dai_stream *io, in rsnd_cmd_init() argument
27 struct rsnd_mod *dvc = rsnd_io_to_mod_dvc(io); in rsnd_cmd_init()
28 struct rsnd_mod *mix = rsnd_io_to_mod_mix(io); in rsnd_cmd_init()
68 struct rsnd_mod *src = rsnd_io_to_mod_src(io); in rsnd_cmd_init()
91 rsnd_mod_write(mod, CMD_BUSIF_MODE, rsnd_get_busif_shift(io, mod) | 1); in rsnd_cmd_init()
92 rsnd_mod_write(mod, CMD_BUSIF_DALIGN, rsnd_get_dalign(mod, io)); in rsnd_cmd_init()
94 rsnd_adg_set_cmd_timsel_gen2(mod, io); in rsnd_cmd_init()
100 struct rsnd_dai_stream *io, in rsnd_cmd_start() argument
109 struct rsnd_dai_stream *io, in rsnd_cmd_stop() argument
119 struct rsnd_dai_stream *io, in rsnd_cmd_debug_info() argument
[all …]
Dmix.c84 static void rsnd_mix_volume_parameter(struct rsnd_dai_stream *io, in rsnd_mix_volume_parameter() argument
104 static void rsnd_mix_volume_init(struct rsnd_dai_stream *io, in rsnd_mix_volume_init() argument
112 rsnd_mod_write(mod, MIX_ADINR, rsnd_runtime_channel_after_ctu(io)); in rsnd_mix_volume_init()
120 rsnd_mix_volume_parameter(io, mod); in rsnd_mix_volume_init()
125 static void rsnd_mix_volume_update(struct rsnd_dai_stream *io, in rsnd_mix_volume_update() argument
132 rsnd_mix_volume_parameter(io, mod); in rsnd_mix_volume_update()
139 struct rsnd_dai_stream *io, in rsnd_mix_probe_() argument
142 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_mix_probe_()
146 struct rsnd_dai_stream *io, in rsnd_mix_init() argument
157 rsnd_mix_volume_init(io, mod); in rsnd_mix_init()
[all …]
Dctu.c108 struct rsnd_dai_stream *io, in rsnd_ctu_probe_() argument
111 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_ctu_probe_()
114 static void rsnd_ctu_value_init(struct rsnd_dai_stream *io, in rsnd_ctu_value_init() argument
133 rsnd_mod_write(mod, CTU_ADINR, rsnd_runtime_channel_original(io)); in rsnd_ctu_value_init()
151 static void rsnd_ctu_value_reset(struct rsnd_dai_stream *io, in rsnd_ctu_value_reset() argument
171 struct rsnd_dai_stream *io, in rsnd_ctu_init() argument
182 rsnd_ctu_value_init(io, mod); in rsnd_ctu_init()
188 struct rsnd_dai_stream *io, in rsnd_ctu_quit() argument
199 struct rsnd_dai_stream *io, in rsnd_ctu_pcm_new() argument
209 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU Pass", in rsnd_ctu_pcm_new()
[all …]
Ddebugfs.c19 struct rsnd_dai_stream *io = m->private; in rsnd_debugfs_show() local
20 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_debugfs_show()
27 for_each_rsnd_mod(i, mod, io) { in rsnd_debugfs_show()
28 u32 *status = mod->ops->get_status(mod, io, mod->type); in rsnd_debugfs_show()
34 mod->ops->debug_info(m, io, mod); in rsnd_debugfs_show()
Dadg.c82 static u32 rsnd_adg_ssi_ws_timing_gen2(struct rsnd_dai_stream *io) in rsnd_adg_ssi_ws_timing_gen2() argument
84 struct rsnd_mod *ssi_mod = rsnd_io_to_mod_ssi(io); in rsnd_adg_ssi_ws_timing_gen2()
88 if (rsnd_ssi_is_pin_sharing(io)) { in rsnd_adg_ssi_ws_timing_gen2()
108 struct rsnd_dai_stream *io, in __rsnd_adg_get_timesel_ratio() argument
170 struct rsnd_dai_stream *io, in rsnd_adg_get_timesel_ratio() argument
175 struct snd_pcm_runtime *runtime = rsnd_io_to_runtime(io); in rsnd_adg_get_timesel_ratio()
184 _out = rsnd_adg_ssi_ws_timing_gen2(io); in rsnd_adg_get_timesel_ratio()
198 __rsnd_adg_get_timesel_ratio(priv, io, in rsnd_adg_get_timesel_ratio()
211 struct rsnd_dai_stream *io) in rsnd_adg_set_cmd_timsel_gen2() argument
220 rsnd_adg_get_timesel_ratio(priv, io, in rsnd_adg_set_cmd_timsel_gen2()
[all …]
/sound/soc/sh/
Dfsi.c269 int (*init)(struct fsi_priv *fsi, struct fsi_stream *io);
270 int (*quit)(struct fsi_priv *fsi, struct fsi_stream *io);
271 int (*probe)(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev);
272 int (*transfer)(struct fsi_priv *fsi, struct fsi_stream *io);
273 int (*remove)(struct fsi_priv *fsi, struct fsi_stream *io);
274 int (*start_stop)(struct fsi_priv *fsi, struct fsi_stream *io,
277 #define fsi_stream_handler_call(io, func, args...) \ argument
278 (!(io) ? -ENODEV : \
279 !((io)->handler->func) ? 0 : \
280 (io)->handler->func(args))
[all …]
/sound/soc/kirkwood/
Dkirkwood-i2s.c59 value = readl(priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt()
62 writel(value, priv->io+KIRKWOOD_I2S_PLAYCTL); in kirkwood_i2s_set_fmt()
64 value = readl(priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt()
67 writel(value, priv->io+KIRKWOOD_I2S_RECCTL); in kirkwood_i2s_set_fmt()
72 static inline void kirkwood_set_dco(void __iomem *io, unsigned long rate) in kirkwood_set_dco() argument
89 writel(value, io + KIRKWOOD_DCO_CTL); in kirkwood_set_dco()
94 value = readl(io + KIRKWOOD_DCO_SPCR_STATUS); in kirkwood_set_dco()
109 kirkwood_set_dco(priv->io, rate); in kirkwood_set_rate()
121 writel(clks_ctrl, priv->io + KIRKWOOD_CLOCKS_CTRL); in kirkwood_set_rate()
150 i2s_value = readl(priv->io+i2s_reg); in kirkwood_i2s_hw_params()
[all …]
Dkirkwood-dma.c46 mask = readl(priv->io + KIRKWOOD_INT_MASK); in kirkwood_dma_irq()
47 status = readl(priv->io + KIRKWOOD_INT_CAUSE) & mask; in kirkwood_dma_irq()
49 cause = readl(priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
53 writel(cause, priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
65 writel(status, priv->io + KIRKWOOD_INT_CAUSE); in kirkwood_dma_irq()
140 writel((unsigned int)-1, priv->io + KIRKWOOD_ERR_MASK); in kirkwood_dma_open()
170 writel(0, priv->io + KIRKWOOD_ERR_MASK); in kirkwood_dma_close()
186 kirkwood_dma_conf_mbus_windows(priv->io, in kirkwood_dma_hw_params()
189 kirkwood_dma_conf_mbus_windows(priv->io, in kirkwood_dma_hw_params()
207 writel(count, priv->io + KIRKWOOD_PLAY_BYTE_INT_COUNT); in kirkwood_dma_prepare()
[all …]
Dkirkwood.h133 void __iomem *io; member
/sound/isa/msnd/
Dmsnd_pinnacle.c178 inb(chip->io + HP_RXL); in snd_msnd_interrupt()
183 static int snd_msnd_reset_dsp(long io, unsigned char *info) in snd_msnd_reset_dsp() argument
187 outb(HPDSPRESET_ON, io + HP_DSPR); in snd_msnd_reset_dsp()
191 *info = inb(io + HP_INFO); in snd_msnd_reset_dsp()
193 outb(HPDSPRESET_OFF, io + HP_DSPR); in snd_msnd_reset_dsp()
196 if (inb(io + HP_CVR) == HP_CVR_DEF) in snd_msnd_reset_dsp()
215 if (!request_region(chip->io, DSP_NUMIO, "probing")) { in snd_msnd_probe()
220 if (snd_msnd_reset_dsp(chip->io, &info) < 0) { in snd_msnd_probe()
221 release_region(chip->io, DSP_NUMIO); in snd_msnd_probe()
231 chip->io, chip->io + DSP_NUMIO - 1, in snd_msnd_probe()
[all …]
Dmsnd.c55 unsigned int io = dev->io; in snd_msnd_wait_TXDE() local
59 if (inb(io + HP_ISR) & HPISR_TXDE) in snd_msnd_wait_TXDE()
67 unsigned int io = dev->io; in snd_msnd_wait_HC0() local
71 if (!(inb(io + HP_CVR) & HPCVR_HC)) in snd_msnd_wait_HC0()
83 outb(cmd, dev->io + HP_CVR); in snd_msnd_send_dsp_cmd()
98 unsigned int io = dev->io; in snd_msnd_send_word() local
101 outb(high, io + HP_TXH); in snd_msnd_send_word()
102 outb(mid, io + HP_TXM); in snd_msnd_send_word()
103 outb(low, io + HP_TXL); in snd_msnd_send_word()
127 inb(dev->io + HP_RXL); in snd_msnd_upload_host()
[all …]
/sound/pci/
Dsis7019.c299 unsigned long io = sis->ioport; in sis_interrupt() local
309 intr = inl(io + SIS_GISR); in sis_interrupt()
316 status = inl(io + SIS_PISR_A); in sis_interrupt()
319 outl(status, io + SIS_PISR_A); in sis_interrupt()
322 status = inl(io + SIS_PISR_B); in sis_interrupt()
325 outl(status, io + SIS_PISR_B); in sis_interrupt()
328 status = inl(io + SIS_RISR); in sis_interrupt()
334 outl(status, io + SIS_RISR); in sis_interrupt()
337 outl(intr, io + SIS_GISR); in sis_interrupt()
338 intr = inl(io + SIS_GISR); in sis_interrupt()
[all …]
Dmaestro3.c1923 int io = chip->iobase; in snd_m3_remote_codec_config() local
1928 tmp = inw(io + RING_BUS_CTRL_B) & ~SECOND_CODEC_ID_MASK; in snd_m3_remote_codec_config()
1933 outw(tmp | isremote, io + RING_BUS_CTRL_B); in snd_m3_remote_codec_config()
1934 outw((inw(io + SDO_OUT_DEST_CTRL) & ~COMMAND_ADDR_OUT) | isremote, in snd_m3_remote_codec_config()
1935 io + SDO_OUT_DEST_CTRL); in snd_m3_remote_codec_config()
1936 outw((inw(io + SDO_IN_DEST_CTRL) & ~STATUS_ADDR_IN) | isremote, in snd_m3_remote_codec_config()
1937 io + SDO_IN_DEST_CTRL); in snd_m3_remote_codec_config()
1964 int io = chip->iobase; in snd_m3_ac97_reset() local
1981 dir = inw(io + GPIO_DIRECTION); in snd_m3_ac97_reset()
1987 outw(IO_SRAM_ENABLE, io + RING_BUS_CTRL_A); in snd_m3_ac97_reset()
[all …]
Dcs5530.c68 static u8 snd_cs5530_mixer_read(unsigned long io, u8 reg) in snd_cs5530_mixer_read() argument
70 outb(reg, io + 4); in snd_cs5530_mixer_read()
72 reg = inb(io + 5); in snd_cs5530_mixer_read()
/sound/core/oss/
DMakefile11 io.o copy.o linear.o mulaw.o route.o rate.o
/sound/pci/emu10k1/
DMakefile8 irq.o memory.o voice.o emumpu401.o emupcm.o io.o \
/sound/usb/usx2y/
Dusb_stream.c286 struct urb *io; in usb_stream_prepare_playback() local
290 io = sk->idle_outurb; in usb_stream_prepare_playback()
291 od = io->iso_frame_desc; in usb_stream_prepare_playback()
335 io->number_of_packets = p; in usb_stream_prepare_playback()
336 io->transfer_buffer_length = lb; in usb_stream_prepare_playback()
/sound/pci/au88x0/
Dau88x0.c167 chip->io = pci_resource_start(pci, 0); in snd_vortex_create()
227 card->shortname, chip->io, chip->irq); in __snd_vortex_probe()

12