/sound/core/seq/ |
D | seq_midi_emul.c | 47 static void note_off(struct snd_midi_op *ops, void *drv, 50 static void do_control(struct snd_midi_op *ops, void *private, 54 static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, 56 static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, 58 static void sysex(struct snd_midi_op *ops, void *private, unsigned char *sysex, 60 static void all_sounds_off(struct snd_midi_op *ops, void *private, 62 static void all_notes_off(struct snd_midi_op *ops, void *private, 83 snd_midi_process_event(struct snd_midi_op *ops, in snd_midi_process_event() argument 130 if (ops->note_off) in snd_midi_process_event() 131 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event() [all …]
|
/sound/hda/ |
D | hdac_i915.c | 44 if (!acomp || !acomp->ops) in snd_hdac_set_codec_wakeup() 47 if (!acomp->ops->codec_wake_override) { in snd_hdac_set_codec_wakeup() 56 acomp->ops->codec_wake_override(acomp->dev, enable); in snd_hdac_set_codec_wakeup() 79 if (!acomp || !acomp->ops) in snd_hdac_display_power() 87 acomp->ops->get_power(acomp->dev); in snd_hdac_display_power() 94 acomp->ops->put_power(acomp->dev); in snd_hdac_display_power() 127 if (!acomp || !acomp->ops || !acomp->ops->get_cdclk_freq) in snd_hdac_i915_set_bclk() 132 cdclk_freq = acomp->ops->get_cdclk_freq(acomp->dev); in snd_hdac_i915_set_bclk() 212 if (!acomp || !acomp->ops || !acomp->ops->sync_audio_rate) in snd_hdac_sync_audio_rate() 218 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate); in snd_hdac_sync_audio_rate() [all …]
|
D | hdac_bus.c | 28 const struct hdac_bus_ops *ops, in snd_hdac_bus_init() argument 33 if (ops) in snd_hdac_bus_init() 34 bus->ops = ops; in snd_hdac_bus_init() 36 bus->ops = &default_ops; in snd_hdac_bus_init() 103 err = bus->ops->command(bus, cmd); in snd_hdac_bus_exec_verb_unlocked() 107 err = bus->ops->get_response(bus, addr, &tmp); in snd_hdac_bus_exec_verb_unlocked() 112 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked()
|
/sound/ |
D | ac97_bus.c | 33 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id() 34 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id() 62 struct snd_ac97_bus_ops *ops = ac97->bus->ops; in snd_ac97_reset() local 64 if (try_warm && ops->warm_reset) { in snd_ac97_reset() 65 ops->warm_reset(ac97); in snd_ac97_reset() 70 if (ops->reset) in snd_ac97_reset() 71 ops->reset(ac97); in snd_ac97_reset() 72 if (ops->warm_reset) in snd_ac97_reset() 73 ops->warm_reset(ac97); in snd_ac97_reset()
|
/sound/soc/ |
D | soc-pcm.c | 477 if (cpu_dai->driver->ops && cpu_dai->driver->ops->startup) { in soc_pcm_open() 478 ret = cpu_dai->driver->ops->startup(substream, cpu_dai); in soc_pcm_open() 486 if (platform->driver->ops && platform->driver->ops->open) { in soc_pcm_open() 487 ret = platform->driver->ops->open(substream); in soc_pcm_open() 497 if (codec_dai->driver->ops && codec_dai->driver->ops->startup) { in soc_pcm_open() 498 ret = codec_dai->driver->ops->startup(substream, in soc_pcm_open() 514 if (rtd->dai_link->ops && rtd->dai_link->ops->startup) { in soc_pcm_open() 515 ret = rtd->dai_link->ops->startup(substream); in soc_pcm_open() 588 if (rtd->dai_link->ops && rtd->dai_link->ops->shutdown) in soc_pcm_open() 589 rtd->dai_link->ops->shutdown(substream); in soc_pcm_open() [all …]
|
D | soc-topology.c | 137 struct snd_soc_tplg_ops *ops; member 298 hdr->ops.get, hdr->ops.put, hdr->ops.info, index, in soc_bind_err() 307 name, hdr->ops.get, hdr->ops.put, hdr->ops.info, in soc_control_err() 317 if (tplg->comp && tplg->ops && tplg->ops->vendor_load) in soc_tplg_vendor_load_() 318 ret = tplg->ops->vendor_load(tplg->comp, hdr); in soc_tplg_vendor_load_() 349 if (tplg->comp && tplg->ops && tplg->ops->widget_load) in soc_tplg_widget_load() 350 return tplg->ops->widget_load(tplg->comp, w, tplg_w); in soc_tplg_widget_load() 360 if (tplg->comp && tplg->ops && tplg->ops->widget_ready) in soc_tplg_widget_ready() 361 return tplg->ops->widget_ready(tplg->comp, w, tplg_w); in soc_tplg_widget_ready() 370 if (tplg->comp && tplg->ops && tplg->ops->dai_load) in soc_tplg_dai_load() [all …]
|
D | soc-ac97.c | 51 .ops = NULL, /* Gets initialized in snd_soc_set_ac97_ops() */ 381 int snd_soc_set_ac97_ops(struct snd_ac97_bus_ops *ops) in snd_soc_set_ac97_ops() argument 383 if (ops == soc_ac97_ops) in snd_soc_set_ac97_ops() 386 if (soc_ac97_ops && ops) in snd_soc_set_ac97_ops() 389 soc_ac97_ops = ops; in snd_soc_set_ac97_ops() 390 soc_ac97_bus.ops = ops; in snd_soc_set_ac97_ops() 402 int snd_soc_set_ac97_ops_of_reset(struct snd_ac97_bus_ops *ops, in snd_soc_set_ac97_ops_of_reset() argument 413 ret = snd_soc_set_ac97_ops(ops); in snd_soc_set_ac97_ops_of_reset() 417 ops->warm_reset = snd_soc_ac97_warm_reset; in snd_soc_set_ac97_ops_of_reset() 418 ops->reset = snd_soc_ac97_reset; in snd_soc_set_ac97_ops_of_reset()
|
/sound/pci/ctxfi/ |
D | ctatc.c | 270 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare() 271 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare() 272 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare() 274 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare() 303 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare() 306 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare() 333 srcimp->ops->unmap(srcimp); in atc_pcm_release_resources() 390 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start() 391 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start() 392 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start() [all …]
|
D | ctsrc.c | 185 src->rsc.ops->master(&src->rsc); in src_commit_write() 190 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write() 198 src->rsc.ops->next_conj(&src->rsc); in src_commit_write() 200 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write() 203 src->rsc.ops->master(&src->rsc); in src_commit_write() 213 return hw->src_get_ca(hw, src->rsc.ops->index(&src->rsc), in src_get_ca() 254 src->rsc.ops->master(&src->rsc); in src_default_config_memrd() 255 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd() 259 src->rsc.ops->next_conj(&src->rsc); in src_default_config_memrd() 261 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd() [all …]
|
D | cttimer.c | 52 const struct ct_timer_ops *ops; member 77 position = substream->ops->pointer(substream); in ct_systimer_callback() 208 pos = ti->substream->ops->pointer(ti->substream); in ct_xfitimer_reprogram() 351 if (atimer->ops->init) in ct_timer_instance_new() 352 atimer->ops->init(ti); in ct_timer_instance_new() 363 if (ti->timer_base->ops->prepare) in ct_timer_prepare() 364 ti->timer_base->ops->prepare(ti); in ct_timer_prepare() 372 atimer->ops->start(ti); in ct_timer_start() 378 atimer->ops->stop(ti); in ct_timer_stop() 385 atimer->ops->stop(ti); /* to be sure */ in ct_timer_instance_free() [all …]
|
D | ctamixer.c | 70 rsc->ops->output_slot(rsc)); in amixer_set_input() 107 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum() 126 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write() 128 input->ops->master(input); in amixer_commit_write() 131 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 137 input->ops->output_slot(input)); in amixer_commit_write() 138 input->ops->next_conj(input); in amixer_commit_write() 142 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write() 143 sum->rsc.ops->next_conj(&sum->rsc); in amixer_commit_write() 145 index = amixer->rsc.ops->output_slot(&amixer->rsc); in amixer_commit_write() [all …]
|
D | ctdaio.c | 170 dao->ops->clear_left_input(dao); in dao_set_left_input() 172 input->ops->master(input); in dao_set_left_input() 173 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input() 175 entry->slot = input->ops->output_slot(input); in dao_set_left_input() 176 entry->user = entry->addr = daio->rscl.ops->index(&daio->rscl); in dao_set_left_input() 180 input->ops->next_conj(input); in dao_set_left_input() 181 daio->rscl.ops->next_conj(&daio->rscl); in dao_set_left_input() 183 input->ops->master(input); in dao_set_left_input() 184 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input() 199 dao->ops->clear_right_input(dao); in dao_set_right_input() [all …]
|
D | ctmixer.c | 356 val = amixer->ops->get_scale(amixer) / VOL_SCALE; in ct_alsa_mix_volume_get() 384 oval = amixer->ops->get_scale(amixer); in ct_alsa_mix_volume_put() 386 amixer->ops->set_scale(amixer, val); in ct_alsa_mix_volume_put() 387 amixer->ops->commit_write(amixer); in ct_alsa_mix_volume_put() 394 amixer->ops->set_scale(amixer, val); in ct_alsa_mix_volume_put() 395 amixer->ops->commit_write(amixer); in ct_alsa_mix_volume_put() 822 amix_d->ops->set_sum(amix_d, sum_c); in ct_mixer_recording_select() 823 amix_d->ops->commit_write(amix_d); in ct_mixer_recording_select() 835 amix_d->ops->set_sum(amix_d, NULL); in ct_mixer_recording_unselect() 836 amix_d->ops->commit_write(amix_d); in ct_mixer_recording_unselect() [all …]
|
/sound/core/ |
D | hwdep.c | 60 if (hw->ops.llseek) in snd_hwdep_llseek() 61 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 69 if (hw->ops.read) in snd_hwdep_read() 70 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read() 78 if (hw->ops.write) in snd_hwdep_write() 79 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write() 116 if (!hw->ops.open) { in snd_hwdep_open() 120 err = hw->ops.open(hw, file); in snd_hwdep_open() 150 if (hw->ops.release) in snd_hwdep_open() 151 hw->ops.release(hw, file); in snd_hwdep_open() [all …]
|
D | compress_offload.c | 131 data->stream.ops = compr->ops; in snd_compr_open() 146 ret = compr->ops->open(&data->stream); in snd_compr_open() 167 data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP); in snd_compr_free() 173 data->stream.ops->free(&data->stream); in snd_compr_free() 183 if (!stream->ops->pointer) in snd_compr_update_tstamp() 185 stream->ops->pointer(stream, tstamp); in snd_compr_update_tstamp() 288 if (stream->ops->ack) in snd_compr_write_data() 289 stream->ops->ack(stream, count); in snd_compr_write_data() 323 if (stream->ops->copy) { in snd_compr_write() 325 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write() [all …]
|
D | device.c | 45 void *device_data, struct snd_device_ops *ops) in snd_device_new() argument 50 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new() 60 dev->ops = ops; in snd_device_new() 77 if (dev->ops->dev_disconnect && in __snd_device_disconnect() 78 dev->ops->dev_disconnect(dev)) in __snd_device_disconnect() 90 if (dev->ops->dev_free) { in __snd_device_free() 91 if (dev->ops->dev_free(dev)) in __snd_device_free() 163 if (dev->ops->dev_register) { in __snd_device_register() 164 int err = dev->ops->dev_register(dev); in __snd_device_register()
|
D | info.c | 129 if (entry->c.ops->llseek) { in snd_info_entry_llseek() 130 offset = entry->c.ops->llseek(entry, in snd_info_entry_llseek() 177 size = entry->c.ops->read(entry, data->file_private_data, in snd_info_entry_read() 198 size = entry->c.ops->write(entry, data->file_private_data, in snd_info_entry_write() 212 if (entry->c.ops->poll) in snd_info_entry_poll() 213 return entry->c.ops->poll(entry, in snd_info_entry_poll() 216 if (entry->c.ops->read) in snd_info_entry_poll() 218 if (entry->c.ops->write) in snd_info_entry_poll() 229 if (!entry->c.ops->ioctl) in snd_info_entry_ioctl() 231 return entry->c.ops->ioctl(entry, data->file_private_data, in snd_info_entry_ioctl() [all …]
|
/sound/soc/intel/common/ |
D | sst-dsp.c | 97 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write() 108 val = sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read() 120 sst->ops->write64(sst->addr.shim, offset, value); in sst_dsp_shim_write64() 131 val = sst->ops->read64(sst->addr.shim, offset); in sst_dsp_shim_read64() 140 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write_unlocked() 146 return sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read_unlocked() 152 sst->ops->write64(sst->addr.shim, offset, value); in sst_dsp_shim_write64_unlocked() 158 return sst->ops->read64(sst->addr.shim, offset); in sst_dsp_shim_read64_unlocked() 298 if (sst->ops->dump) in sst_dsp_dump() 299 sst->ops->dump(sst); in sst_dsp_dump() [all …]
|
D | sst-ipc.c | 66 if (ipc->ops.shim_dbg != NULL) in tx_wait_done() 67 ipc->ops.shim_dbg(ipc, "message timeout"); in tx_wait_done() 107 if ((tx_bytes) && (ipc->ops.tx_data_copy != NULL)) in ipc_tx_message() 108 ipc->ops.tx_data_copy(msg, tx_data, tx_bytes); in ipc_tx_message() 170 if (ipc->ops.is_dsp_busy && ipc->ops.is_dsp_busy(ipc->dsp)) { in ipc_tx_msgs() 178 if (ipc->ops.tx_msg != NULL) in ipc_tx_msgs() 179 ipc->ops.tx_msg(ipc, msg); in ipc_tx_msgs() 195 if (ipc->ops.check_dsp_lp_on) in sst_ipc_tx_message_wait() 196 if (ipc->ops.check_dsp_lp_on(ipc->dsp, true)) in sst_ipc_tx_message_wait() 202 if (ipc->ops.check_dsp_lp_on) in sst_ipc_tx_message_wait() [all …]
|
/sound/synth/emux/ |
D | emux_synth.c | 74 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on() 103 vp = emu->ops.get_voice(emu, port); in snd_emux_note_on() 107 emu->ops.terminate(vp); in snd_emux_note_on() 124 if (emu->ops.prepare) { in snd_emux_note_on() 126 if (emu->ops.prepare(vp) >= 0) in snd_emux_note_on() 136 emu->ops.trigger(vp); in snd_emux_note_on() 172 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() 249 if (snd_BUG_ON(!emu || !emu->ops.update)) in snd_emux_key_press() [all …]
|
D | emux.c | 72 return emu->ops.sample_new(emu, sp, hdr, buf, count); in sf_sample_new() 80 return emu->ops.sample_free(emu, sp, hdr); in sf_sample_free() 87 emu->ops.sample_reset(emu); in sf_sample_reset() 110 if (emu->ops.sample_new) in snd_emux_register() 112 if (emu->ops.sample_free) in snd_emux_register() 114 if (emu->ops.sample_reset) in snd_emux_register()
|
/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 231 ctx->cl_dev.ops.cl_setup_spb(ctx, ctx->cl_dev.curr_spib_pos, trigger); in skl_cldma_fill_buffer() 233 ctx->cl_dev.ops.cl_trigger(ctx, true); in skl_cldma_fill_buffer() 338 ctx->cl_dev.ops.cl_setup_bdle = skl_cldma_setup_bdle; in skl_cldma_prepare() 339 ctx->cl_dev.ops.cl_setup_controller = skl_cldma_setup_controller; in skl_cldma_prepare() 340 ctx->cl_dev.ops.cl_setup_spb = skl_cldma_setup_spb; in skl_cldma_prepare() 341 ctx->cl_dev.ops.cl_cleanup_spb = skl_cldma_cleanup_spb; in skl_cldma_prepare() 342 ctx->cl_dev.ops.cl_trigger = skl_cldma_stream_run; in skl_cldma_prepare() 343 ctx->cl_dev.ops.cl_cleanup_controller = skl_cldma_cleanup; in skl_cldma_prepare() 344 ctx->cl_dev.ops.cl_copy_to_dmabuf = skl_cldma_copy_to_buf; in skl_cldma_prepare() 345 ctx->cl_dev.ops.cl_stop_dma = skl_cldma_stop; in skl_cldma_prepare() [all …]
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform-pcm.c | 212 str_params->ops = (u8)pstream->stream; in sst_fill_stream_params() 225 str_params->ops = (u8)cstream->direction; in sst_fill_stream_params() 256 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream() 294 ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); in sst_platform_init_stream() 303 return stream->ops->power(sst->dev, true); in power_up_sst() 308 stream->ops->power(sst->dev, false); in power_down_sst() 331 stream->ops = sst->ops; in sst_media_open() 367 stream->ops->close(sst->dev, str_id); in sst_media_close() 381 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_media_prepare() 504 .ops = &sst_media_dai_ops, [all …]
|
/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 dev_dbg(chip->card->dev, "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 …]
|
/sound/soc/omap/ |
D | omap-hdmi-audio.c | 37 const struct omap_hdmi_audio_ops *ops; member 101 ret = ad->ops->audio_startup(ad->dssdev, hdmi_dai_abort); in hdmi_dai_startup() 235 return ad->ops->audio_config(ad->dssdev, &ad->dss_audio); in hdmi_dai_hw_params() 250 err = ad->ops->audio_start(ad->dssdev); in hdmi_dai_trigger() 255 ad->ops->audio_stop(ad->dssdev); in hdmi_dai_trigger() 270 ad->ops->audio_shutdown(ad->dssdev); in hdmi_dai_shutdown() 299 .ops = &hdmi_dai_ops, 313 .ops = &hdmi_dai_ops, 334 ad->ops = ha->ops; in omap_hdmi_audio_probe()
|