/sound/core/seq/ |
D | seq_device.c | 66 struct snd_seq_dev_ops ops; member 93 static int init_device(struct snd_seq_device *dev, struct ops_list *ops); 94 static int free_device(struct snd_seq_device *dev, struct ops_list *ops); 97 static void unlock_driver(struct ops_list *ops); 108 struct ops_list *ops; in snd_seq_device_info() local 111 list_for_each_entry(ops, &opslist, list) { in snd_seq_device_info() 113 ops->id, in snd_seq_device_info() 114 ops->driver & DRIVER_LOADED ? ",loaded" : (ops->driver == DRIVER_EMPTY ? ",empty" : ""), in snd_seq_device_info() 115 ops->driver & DRIVER_REQUESTED ? ",requested" : "", in snd_seq_device_info() 116 ops->driver & DRIVER_LOCKED ? ",locked" : "", in snd_seq_device_info() [all …]
|
D | seq_midi_emul.c | 46 static void note_off(struct snd_midi_op *ops, void *drv, 49 static void do_control(struct snd_midi_op *ops, void *private, 53 static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, 55 static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, 57 static void sysex(struct snd_midi_op *ops, void *private, unsigned char *sysex, 59 static void all_sounds_off(struct snd_midi_op *ops, void *private, 61 static void all_notes_off(struct snd_midi_op *ops, void *private, 82 snd_midi_process_event(struct snd_midi_op *ops, in snd_midi_process_event() argument 129 if (ops->note_off) in snd_midi_process_event() 130 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event() [all …]
|
/sound/core/ |
D | device.c | 44 void *device_data, struct snd_device_ops *ops) in snd_device_new() argument 48 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new() 59 dev->ops = ops; in snd_device_new() 90 dev->ops->dev_disconnect) in snd_device_free() 91 if (dev->ops->dev_disconnect(dev)) in snd_device_free() 94 if (dev->ops->dev_free) { in snd_device_free() 95 if (dev->ops->dev_free(dev)) in snd_device_free() 131 dev->ops->dev_disconnect) { in snd_device_disconnect() 132 if (dev->ops->dev_disconnect(dev)) in snd_device_disconnect() 166 if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { in snd_device_register() [all …]
|
D | hwdep.c | 59 if (hw->ops.llseek) in snd_hwdep_llseek() 60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 68 if (hw->ops.read) in snd_hwdep_read() 69 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read() 77 if (hw->ops.write) in snd_hwdep_write() 78 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write() 102 if (!hw->ops.open) in snd_hwdep_open() 116 err = hw->ops.open(hw, file); in snd_hwdep_open() 142 if (hw->ops.release) in snd_hwdep_open() 143 hw->ops.release(hw, file); in snd_hwdep_open() [all …]
|
D | info.c | 196 if (entry->c.ops->llseek) { in snd_info_entry_llseek() 197 ret = entry->c.ops->llseek(entry, in snd_info_entry_llseek() 241 if (entry->c.ops->read) in snd_info_entry_read() 242 size = entry->c.ops->read(entry, in snd_info_entry_read() 291 if (entry->c.ops->write) in snd_info_entry_write() 292 size = entry->c.ops->write(entry, in snd_info_entry_write() 324 entry->c.ops->read == NULL)) { in snd_info_entry_open() 331 entry->c.ops->write == NULL)) { in snd_info_entry_open() 366 if (entry->c.ops->open) { in snd_info_entry_open() 367 if ((err = entry->c.ops->open(entry, mode, in snd_info_entry_open() [all …]
|
D | pcm_native.c | 114 substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_INFO, info); in snd_pcm_info() 401 if (substream->ops->hw_params != NULL) { in snd_pcm_hw_params() 402 err = substream->ops->hw_params(substream, params); in snd_pcm_hw_params() 457 if (substream->ops->hw_free != NULL) in snd_pcm_hw_params() 458 substream->ops->hw_free(substream); in snd_pcm_hw_params() 507 if (substream->ops->hw_free) in snd_pcm_hw_free() 508 result = substream->ops->hw_free(substream); in snd_pcm_hw_free() 653 return substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_CHANNEL_INFO, info); in snd_pcm_channel_info() 698 static int snd_pcm_action_group(struct action_ops *ops, in snd_pcm_action_group() argument 710 res = ops->pre_action(s, state); in snd_pcm_action_group() [all …]
|
D | rawmidi.c | 104 substream->ops->trigger(substream, 1); in snd_rawmidi_output_trigger_tasklet() 157 substream->ops->trigger(substream, 0); in snd_rawmidi_output_trigger() 165 substream->ops->trigger(substream, up); in snd_rawmidi_input_trigger() 204 if (substream->ops->drain) in snd_rawmidi_drain_output() 205 substream->ops->drain(substream); in snd_rawmidi_drain_output() 328 if ((err = sinput->ops->open(sinput)) < 0) in snd_rawmidi_kernel_open() 340 sinput->ops->close(sinput); in snd_rawmidi_kernel_open() 344 if ((err = soutput->ops->open(soutput)) < 0) { in snd_rawmidi_kernel_open() 346 sinput->ops->close(sinput); in snd_rawmidi_kernel_open() 486 substream->ops->close(substream); in snd_rawmidi_kernel_release() [all …]
|
D | pcm_lib.c | 97 if (substream->ops->silence) { in snd_pcm_playback_silence() 99 err = substream->ops->silence(substream, -1, ofs, transfer); in snd_pcm_playback_silence() 108 if (substream->ops->silence) { in snd_pcm_playback_silence() 111 err = substream->ops->silence(substream, c, ofs, transfer); in snd_pcm_playback_silence() 150 pos = substream->ops->pointer(substream); in snd_pcm_update_hw_ptr_pos() 281 void snd_pcm_set_ops(struct snd_pcm *pcm, int direction, struct snd_pcm_ops *ops) in snd_pcm_set_ops() argument 287 substream->ops = ops; in snd_pcm_set_ops() 1573 if (substream->ops->copy) { in snd_pcm_lib_write_transfer() 1574 if ((err = substream->ops->copy(substream, -1, hwoff, buf, frames)) < 0) in snd_pcm_lib_write_transfer() 1663 if (substream->ops->ack) in snd_pcm_lib_write1() [all …]
|
/sound/soc/ |
D | soc-core.c | 136 if (cpu_dai->ops.startup) { in soc_pcm_open() 137 ret = cpu_dai->ops.startup(substream, cpu_dai); in soc_pcm_open() 153 if (codec_dai->ops.startup) { in soc_pcm_open() 154 ret = codec_dai->ops.startup(substream, codec_dai); in soc_pcm_open() 162 if (machine->ops && machine->ops->startup) { in soc_pcm_open() 163 ret = machine->ops->startup(substream); in soc_pcm_open() 242 if (machine->ops && machine->ops->shutdown) in soc_pcm_open() 243 machine->ops->shutdown(substream); in soc_pcm_open() 250 if (cpu_dai->ops.shutdown) in soc_pcm_open() 251 cpu_dai->ops.shutdown(substream, cpu_dai); in soc_pcm_open() [all …]
|
/sound/drivers/vx/ |
D | vx_hwdep.c | 78 err = chip->ops->load_dsp(chip, i, fw); in snd_vx_setup_firmware() 100 if (chip->ops->add_controls) in snd_vx_setup_firmware() 101 if ((err = chip->ops->add_controls(chip)) < 0) in snd_vx_setup_firmware() 172 if (snd_BUG_ON(!vx->ops->load_dsp)) in vx_hwdep_dsp_load() 196 err = vx->ops->load_dsp(vx, index, fw); in vx_hwdep_dsp_load() 221 if (vx->ops->add_controls) in vx_hwdep_dsp_load() 222 if ((err = vx->ops->add_controls(vx)) < 0) in vx_hwdep_dsp_load() 246 hw->ops.open = vx_hwdep_open; in snd_vx_setup_firmware() 247 hw->ops.release = vx_hwdep_release; in snd_vx_setup_firmware() 248 hw->ops.dsp_status = vx_hwdep_dsp_status; in snd_vx_setup_firmware() [all …]
|
/sound/synth/emux/ |
D | emux_synth.c | 73 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on() 102 vp = emu->ops.get_voice(emu, port); in snd_emux_note_on() 106 emu->ops.terminate(vp); in snd_emux_note_on() 123 if (emu->ops.prepare) { in snd_emux_note_on() 125 if (emu->ops.prepare(vp) >= 0) in snd_emux_note_on() 135 emu->ops.trigger(vp); in snd_emux_note_on() 171 if (snd_BUG_ON(!emu || !emu->ops.release)) in snd_emux_note_off() 194 emu->ops.release(vp); in snd_emux_note_off() 219 emu->ops.release(vp); in snd_emux_timer_callback() 250 if (snd_BUG_ON(!emu || !emu->ops.update)) in snd_emux_key_press() [all …]
|
D | emux.c | 73 return emu->ops.sample_new(emu, sp, hdr, buf, count); in sf_sample_new() 81 return emu->ops.sample_free(emu, sp, hdr); in sf_sample_free() 88 emu->ops.sample_reset(emu); in sf_sample_reset() 111 if (emu->ops.sample_new) in snd_emux_register() 113 if (emu->ops.sample_free) in snd_emux_register() 115 if (emu->ops.sample_reset) in snd_emux_register()
|
D | emux_hwdep.c | 67 if (emu->ops.load_fx) in snd_emux_hwdep_load_patch() 68 return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); in snd_emux_hwdep_load_patch() 149 hw->ops.open = snd_emux_hwdep_open; in snd_emux_init_hwdep() 150 hw->ops.release = snd_emux_hwdep_release; in snd_emux_init_hwdep() 151 hw->ops.ioctl = snd_emux_hwdep_ioctl; in snd_emux_init_hwdep()
|
/sound/pci/ |
D | atiixp_modem.c | 221 const struct atiixp_dma_ops *ops; member 349 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets() 350 dma->ops->enable_dma(chip, 0); in atiixp_build_dma_packets() 351 dma->ops->enable_dma(chip, 1); in atiixp_build_dma_packets() 372 chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets() 388 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_clear_dma_packets() 619 curptr = readl(chip->remap_addr + dma->ops->dt_cur); in snd_atiixp_pcm_pointer() 628 readl(chip->remap_addr + dma->ops->dt_cur), dma->buf_addr); in snd_atiixp_pcm_pointer() 640 snd_printdd("atiixp-modem: XRUN detected (DMA %d)\n", dma->ops->type); in snd_atiixp_xrun_dma() 677 if (snd_BUG_ON(!dma->ops->enable_transfer || in snd_atiixp_pcm_trigger() [all …]
|
D | atiixp.c | 245 const struct atiixp_dma_ops *ops; member 381 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets() 382 dma->ops->enable_dma(chip, 0); in atiixp_build_dma_packets() 383 dma->ops->enable_dma(chip, 1); in atiixp_build_dma_packets() 404 chip->remap_addr + dma->ops->llp_offset); in atiixp_build_dma_packets() 419 writel(0, chip->remap_addr + dma->ops->llp_offset); in atiixp_clear_dma_packets() 669 curptr = readl(chip->remap_addr + dma->ops->dt_cur); in snd_atiixp_pcm_pointer() 678 readl(chip->remap_addr + dma->ops->dt_cur), dma->buf_addr); in snd_atiixp_pcm_pointer() 689 snd_printdd("atiixp: XRUN detected (DMA %d)\n", dma->ops->type); in snd_atiixp_xrun_dma() 726 if (snd_BUG_ON(!dma->ops->enable_transfer || in snd_atiixp_pcm_trigger() [all …]
|
/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 169 dma->ops->disable_dma(cs5535au); in cs5535audio_build_dma_packets() 170 dma->ops->setup_prd(cs5535au, jmpprd_addr); in cs5535audio_build_dma_packets() 303 dma->ops->pause_dma(cs5535au); in snd_cs5535audio_trigger() 306 dma->ops->enable_dma(cs5535au); in snd_cs5535audio_trigger() 309 dma->ops->enable_dma(cs5535au); in snd_cs5535audio_trigger() 312 dma->ops->enable_dma(cs5535au); in snd_cs5535audio_trigger() 315 dma->ops->disable_dma(cs5535au); in snd_cs5535audio_trigger() 318 dma->ops->disable_dma(cs5535au); in snd_cs5535audio_trigger() 337 curdma = dma->ops->read_dma_pntr(cs5535au); in snd_cs5535audio_pcm_pointer() 435 cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK].ops = in snd_cs5535audio_pcm() [all …]
|
D | cs5535audio_pm.c | 71 dma->saved_prd = dma->ops->read_prd(cs5535au); in snd_cs5535audio_suspend() 126 dma->substream->ops->prepare(dma->substream); in snd_cs5535audio_resume() 127 dma->ops->setup_prd(cs5535au, dma->saved_prd); in snd_cs5535audio_resume()
|
/sound/pci/ice1712/ |
D | ak4xxx.c | 141 if (ak->ops.lock == NULL) in snd_ice1712_akm4xxx_init() 142 ak->ops.lock = snd_ice1712_akm4xxx_lock; in snd_ice1712_akm4xxx_init() 143 if (ak->ops.unlock == NULL) in snd_ice1712_akm4xxx_init() 144 ak->ops.unlock = snd_ice1712_akm4xxx_unlock; in snd_ice1712_akm4xxx_init() 145 if (ak->ops.write == NULL) in snd_ice1712_akm4xxx_init() 146 ak->ops.write = snd_ice1712_akm4xxx_write; in snd_ice1712_akm4xxx_init()
|
D | delta.c | 430 .ops = { 451 .ops = { 472 .ops = { 494 .ops = { 516 .ops = { 592 ice->i2c->ops = &ap_cs8427_i2c_ops; in snd_ice1712_delta_init() 604 ice->spdif.ops.open = delta_open_spdif; in snd_ice1712_delta_init() 605 ice->spdif.ops.setup_rate = delta_setup_spdif; in snd_ice1712_delta_init() 606 ice->spdif.ops.default_get = delta_spdif_default_get; in snd_ice1712_delta_init() 607 ice->spdif.ops.default_put = delta_spdif_default_put; in snd_ice1712_delta_init() [all …]
|
/sound/isa/ |
D | cmi8330.c | 159 struct snd_pcm_ops ops; member 396 const struct snd_pcm_ops *ops; in snd_cmi8330_pcm() local 409 ops = snd_sb16dsp_get_pcm_ops(CMI_SB_STREAM); in snd_cmi8330_pcm() 410 chip->streams[CMI_SB_STREAM].ops = *ops; in snd_cmi8330_pcm() 411 chip->streams[CMI_SB_STREAM].open = ops->open; in snd_cmi8330_pcm() 412 chip->streams[CMI_SB_STREAM].ops.open = cmi_open_callbacks[CMI_SB_STREAM]; in snd_cmi8330_pcm() 416 ops = snd_wss_get_pcm_ops(CMI_AD_STREAM); in snd_cmi8330_pcm() 417 chip->streams[CMI_AD_STREAM].ops = *ops; in snd_cmi8330_pcm() 418 chip->streams[CMI_AD_STREAM].open = ops->open; in snd_cmi8330_pcm() 419 chip->streams[CMI_AD_STREAM].ops.open = cmi_open_callbacks[CMI_AD_STREAM]; in snd_cmi8330_pcm() [all …]
|
/sound/isa/sb/ |
D | sb16_main.c | 62 if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_playback_prepare() 71 if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_playback_prepare() 77 } else if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_playback_prepare() 79 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare() 81 csp->ops.csp_unuse(csp); in snd_sb16_csp_playback_prepare() 85 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare() 90 csp->ops.csp_unuse(csp); in snd_sb16_csp_playback_prepare() 110 if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_capture_prepare() 115 } else if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_capture_prepare() 117 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { in snd_sb16_csp_capture_prepare() [all …]
|
/sound/i2c/other/ |
D | tea575x-tuner.c | 80 tea->ops->write(tea, tea->val); in snd_tea575x_set_freq() 160 if (tea->ops->mute) in snd_tea575x_ioctl() 161 tea->ops->mute(tea, in snd_tea575x_ioctl() 199 val = tea->ops->read(tea); in snd_tea575x_init() 227 if (tea->ops->mute) in snd_tea575x_init() 228 tea->ops->mute(tea, 1); in snd_tea575x_init()
|
/sound/usb/usx2y/ |
D | usX2Yhwdep.c | 270 hw->ops.open = snd_usX2Y_hwdep_open; in usX2Y_hwdep_new() 271 hw->ops.release = snd_usX2Y_hwdep_release; in usX2Y_hwdep_new() 272 hw->ops.dsp_status = snd_usX2Y_hwdep_dsp_status; in usX2Y_hwdep_new() 273 hw->ops.dsp_load = snd_usX2Y_hwdep_dsp_load; in usX2Y_hwdep_new() 274 hw->ops.mmap = snd_us428ctls_mmap; in usX2Y_hwdep_new() 275 hw->ops.poll = snd_us428ctls_poll; in usX2Y_hwdep_new()
|
/sound/i2c/ |
D | i2c.c | 83 static struct snd_device_ops ops = { in snd_i2c_bus_create() local 95 bus->ops = &snd_i2c_bit_ops; in snd_i2c_bus_create() 101 if ((err = snd_device_new(card, SNDRV_DEV_BUS, bus, &ops)) < 0) { in snd_i2c_bus_create() 146 return device->bus->ops->sendbytes(device, bytes, count); in snd_i2c_sendbytes() 153 return device->bus->ops->readbytes(device, bytes, count); in snd_i2c_readbytes() 160 return bus->ops->probeaddr(bus, addr); in snd_i2c_probeaddr()
|
/sound/pci/au88x0/ |
D | au88x0_mixer.c | 18 static struct snd_ac97_bus_ops ops = { in snd_vortex_mixer() local 23 if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0) in snd_vortex_mixer()
|