/sound/soc/ |
D | soc-dai.c | 57 if (dai->driver->ops && in snd_soc_dai_set_sysclk() 58 dai->driver->ops->set_sysclk) in snd_soc_dai_set_sysclk() 59 ret = dai->driver->ops->set_sysclk(dai, clk_id, freq, dir); in snd_soc_dai_set_sysclk() 83 if (dai->driver->ops && in snd_soc_dai_set_clkdiv() 84 dai->driver->ops->set_clkdiv) in snd_soc_dai_set_clkdiv() 85 ret = dai->driver->ops->set_clkdiv(dai, div_id, div); in snd_soc_dai_set_clkdiv() 106 if (dai->driver->ops && in snd_soc_dai_set_pll() 107 dai->driver->ops->set_pll) in snd_soc_dai_set_pll() 108 ret = dai->driver->ops->set_pll(dai, pll_id, source, in snd_soc_dai_set_pll() 129 if (dai->driver->ops && in snd_soc_dai_set_bclk_ratio() [all …]
|
D | soc-link.c | 73 if (rtd->dai_link->ops && in snd_soc_link_startup() 74 rtd->dai_link->ops->startup) in snd_soc_link_startup() 75 ret = rtd->dai_link->ops->startup(substream); in snd_soc_link_startup() 92 if (rtd->dai_link->ops && in snd_soc_link_shutdown() 93 rtd->dai_link->ops->shutdown) in snd_soc_link_shutdown() 94 rtd->dai_link->ops->shutdown(substream); in snd_soc_link_shutdown() 105 if (rtd->dai_link->ops && in snd_soc_link_prepare() 106 rtd->dai_link->ops->prepare) in snd_soc_link_prepare() 107 ret = rtd->dai_link->ops->prepare(substream); in snd_soc_link_prepare() 118 if (rtd->dai_link->ops && in snd_soc_link_hw_params() [all …]
|
D | soc-topology.c | 78 struct snd_soc_tplg_ops *ops; member 235 hdr->ops.get, hdr->ops.put, hdr->ops.info, index, in soc_bind_err() 244 name, hdr->ops.get, hdr->ops.put, hdr->ops.info, in soc_control_err() 254 if (tplg->ops && tplg->ops->vendor_load) in soc_tplg_vendor_load() 255 ret = tplg->ops->vendor_load(tplg->comp, tplg->index, hdr); in soc_tplg_vendor_load() 276 if (tplg->ops && tplg->ops->widget_load) in soc_tplg_widget_load() 277 return tplg->ops->widget_load(tplg->comp, tplg->index, w, in soc_tplg_widget_load() 288 if (tplg->ops && tplg->ops->widget_ready) in soc_tplg_widget_ready() 289 return tplg->ops->widget_ready(tplg->comp, tplg->index, w, in soc_tplg_widget_ready() 300 if (tplg->ops && tplg->ops->dai_load) in soc_tplg_dai_load() [all …]
|
/sound/core/seq/ |
D | seq_midi_emul.c | 33 static void note_off(const struct snd_midi_op *ops, void *drv, 36 static void do_control(const struct snd_midi_op *ops, void *private, 40 static void rpn(const struct snd_midi_op *ops, void *drv, 43 static void nrpn(const struct snd_midi_op *ops, void *drv, 46 static void sysex(const struct snd_midi_op *ops, void *private, 49 static void all_sounds_off(const struct snd_midi_op *ops, void *private, 51 static void all_notes_off(const struct snd_midi_op *ops, void *private, 72 snd_midi_process_event(const struct snd_midi_op *ops, in snd_midi_process_event() argument 119 if (ops->note_off) in snd_midi_process_event() 120 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event() [all …]
|
/sound/hda/ |
D | hdac_component.c | 39 if (!acomp || !acomp->ops) in snd_hdac_set_codec_wakeup() 42 if (!acomp->ops->codec_wake_override) in snd_hdac_set_codec_wakeup() 48 acomp->ops->codec_wake_override(acomp->dev, enable); in snd_hdac_set_codec_wakeup() 79 if (!acomp || !acomp->ops) in snd_hdac_display_power() 86 if (acomp->ops->get_power) in snd_hdac_display_power() 87 cookie = acomp->ops->get_power(acomp->dev); in snd_hdac_display_power() 97 if (acomp->ops->put_power) in snd_hdac_display_power() 98 acomp->ops->put_power(acomp->dev, cookie); in snd_hdac_display_power() 128 if (!acomp || !acomp->ops || !acomp->ops->sync_audio_rate) in snd_hdac_sync_audio_rate() 137 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate); in snd_hdac_sync_audio_rate() [all …]
|
/sound/ |
D | ac97_bus.c | 29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id() 30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id() 58 const struct snd_ac97_bus_ops *ops = ac97->bus->ops; in snd_ac97_reset() local 60 if (try_warm && ops->warm_reset) { in snd_ac97_reset() 61 ops->warm_reset(ac97); in snd_ac97_reset() 66 if (ops->reset) in snd_ac97_reset() 67 ops->reset(ac97); in snd_ac97_reset() 68 if (ops->warm_reset) in snd_ac97_reset() 69 ops->warm_reset(ac97); in snd_ac97_reset()
|
/sound/pci/ctxfi/ |
D | ctatc.c | 269 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare() 270 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare() 271 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare() 273 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare() 302 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare() 305 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare() 332 srcimp->ops->unmap(srcimp); in atc_pcm_release_resources() 389 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start() 390 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start() 391 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start() [all …]
|
D | ctsrc.c | 181 src->rsc.ops->master(&src->rsc); in src_commit_write() 186 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write() 194 src->rsc.ops->next_conj(&src->rsc); in src_commit_write() 196 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_commit_write() 199 src->rsc.ops->master(&src->rsc); in src_commit_write() 209 return hw->src_get_ca(hw, src->rsc.ops->index(&src->rsc), in src_get_ca() 250 src->rsc.ops->master(&src->rsc); in src_default_config_memrd() 251 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd() 255 src->rsc.ops->next_conj(&src->rsc); in src_default_config_memrd() 257 hw->src_commit_write(hw, src->rsc.ops->index(&src->rsc), in src_default_config_memrd() [all …]
|
D | cttimer.c | 49 const struct ct_timer_ops *ops; member 74 position = substream->ops->pointer(substream); in ct_systimer_callback() 204 pos = ti->substream->ops->pointer(ti->substream); in ct_xfitimer_reprogram() 347 if (atimer->ops->init) in ct_timer_instance_new() 348 atimer->ops->init(ti); in ct_timer_instance_new() 359 if (ti->timer_base->ops->prepare) in ct_timer_prepare() 360 ti->timer_base->ops->prepare(ti); in ct_timer_prepare() 368 atimer->ops->start(ti); in ct_timer_start() 374 atimer->ops->stop(ti); in ct_timer_stop() 381 atimer->ops->stop(ti); /* to be sure */ in ct_timer_instance_free() [all …]
|
D | ctamixer.c | 65 rsc->ops->output_slot(rsc)); in amixer_set_input() 102 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum() 121 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write() 123 input->ops->master(input); in amixer_commit_write() 126 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write() 132 input->ops->output_slot(input)); in amixer_commit_write() 133 input->ops->next_conj(input); in amixer_commit_write() 137 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write() 138 sum->rsc.ops->next_conj(&sum->rsc); in amixer_commit_write() 140 index = amixer->rsc.ops->output_slot(&amixer->rsc); in amixer_commit_write() [all …]
|
D | ctdaio.c | 166 dao->ops->clear_left_input(dao); in dao_set_left_input() 168 input->ops->master(input); in dao_set_left_input() 169 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input() 171 entry->slot = input->ops->output_slot(input); in dao_set_left_input() 172 entry->user = entry->addr = daio->rscl.ops->index(&daio->rscl); in dao_set_left_input() 176 input->ops->next_conj(input); in dao_set_left_input() 177 daio->rscl.ops->next_conj(&daio->rscl); in dao_set_left_input() 179 input->ops->master(input); in dao_set_left_input() 180 daio->rscl.ops->master(&daio->rscl); in dao_set_left_input() 195 dao->ops->clear_right_input(dao); in dao_set_right_input() [all …]
|
D | ctmixer.c | 352 val = amixer->ops->get_scale(amixer) / VOL_SCALE; in ct_alsa_mix_volume_get() 380 oval = amixer->ops->get_scale(amixer); in ct_alsa_mix_volume_put() 382 amixer->ops->set_scale(amixer, val); in ct_alsa_mix_volume_put() 383 amixer->ops->commit_write(amixer); in ct_alsa_mix_volume_put() 390 amixer->ops->set_scale(amixer, val); in ct_alsa_mix_volume_put() 391 amixer->ops->commit_write(amixer); in ct_alsa_mix_volume_put() 818 amix_d->ops->set_sum(amix_d, sum_c); in ct_mixer_recording_select() 819 amix_d->ops->commit_write(amix_d); in ct_mixer_recording_select() 831 amix_d->ops->set_sum(amix_d, NULL); in ct_mixer_recording_unselect() 832 amix_d->ops->commit_write(amix_d); in ct_mixer_recording_unselect() [all …]
|
/sound/core/ |
D | hwdep.c | 45 if (hw->ops.llseek) in snd_hwdep_llseek() 46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 54 if (hw->ops.read) in snd_hwdep_read() 55 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read() 63 if (hw->ops.write) in snd_hwdep_write() 64 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write() 101 if (!hw->ops.open) { in snd_hwdep_open() 105 err = hw->ops.open(hw, file); in snd_hwdep_open() 135 if (hw->ops.release) in snd_hwdep_open() 136 hw->ops.release(hw, file); in snd_hwdep_open() [all …]
|
D | compress_offload.c | 122 data->stream.ops = compr->ops; in snd_compr_open() 137 ret = compr->ops->open(&data->stream); in snd_compr_open() 158 data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP); in snd_compr_free() 164 data->stream.ops->free(&data->stream); in snd_compr_free() 175 if (!stream->ops->pointer) in snd_compr_update_tstamp() 177 stream->ops->pointer(stream, tstamp); in snd_compr_update_tstamp() 280 if (stream->ops->ack) in snd_compr_write_data() 281 stream->ops->ack(stream, count); in snd_compr_write_data() 315 if (stream->ops->copy) { in snd_compr_write() 317 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write() [all …]
|
D | device.c | 30 void *device_data, const struct snd_device_ops *ops) in snd_device_new() argument 35 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new() 45 dev->ops = ops; in snd_device_new() 62 if (dev->ops->dev_disconnect && in __snd_device_disconnect() 63 dev->ops->dev_disconnect(dev)) in __snd_device_disconnect() 75 if (dev->ops->dev_free) { in __snd_device_free() 76 if (dev->ops->dev_free(dev)) in __snd_device_free() 148 if (dev->ops->dev_register) { in __snd_device_register() 149 int err = dev->ops->dev_register(dev); in __snd_device_register()
|
D | info.c | 114 if (entry->c.ops->llseek) { in snd_info_entry_llseek() 115 ret = entry->c.ops->llseek(entry, in snd_info_entry_llseek() 162 size = entry->c.ops->read(entry, data->file_private_data, in snd_info_entry_read() 183 size = entry->c.ops->write(entry, data->file_private_data, in snd_info_entry_write() 197 if (entry->c.ops->poll) in snd_info_entry_poll() 198 return entry->c.ops->poll(entry, in snd_info_entry_poll() 201 if (entry->c.ops->read) in snd_info_entry_poll() 203 if (entry->c.ops->write) in snd_info_entry_poll() 214 if (!entry->c.ops->ioctl) in snd_info_entry_ioctl() 216 return entry->c.ops->ioctl(entry, data->file_private_data, in snd_info_entry_ioctl() [all …]
|
/sound/soc/sof/ |
D | nocodec.c | 21 const struct snd_sof_dsp_ops *ops, in sof_nocodec_bes_setup() argument 28 if (!ops || !links || !card) in sof_nocodec_bes_setup() 52 links[i].cpus->dai_name = ops->drv[i].name; in sof_nocodec_bes_setup() 56 if (ops->drv[i].playback.channels_min) in sof_nocodec_bes_setup() 58 if (ops->drv[i].capture.channels_min) in sof_nocodec_bes_setup() 69 const struct snd_sof_dsp_ops *ops) in sof_nocodec_setup() argument 75 ops->num_drv, GFP_KERNEL); in sof_nocodec_setup() 79 return sof_nocodec_bes_setup(dev, ops, links, ops->num_drv, in sof_nocodec_setup()
|
D | sof-pci-dev.c | 123 .ops = &sof_apl_ops, 141 .ops = &sof_apl_ops, 168 .ops = &sof_tng_ops, 187 .ops = &sof_cnl_ops, 206 .ops = &sof_cnl_ops, 225 .ops = &sof_cnl_ops, 244 .ops = &sof_cnl_ops, 263 .ops = &sof_tgl_ops, 279 .ops = &sof_tgl_ops, 297 .ops = &sof_cnl_ops, [all …]
|
D | sof-of-dev.c | 26 .ops = &sof_imx8x_ops, 34 .ops = &sof_imx8_ops, 44 .ops = &sof_imx8m_ops, 73 const struct snd_sof_dsp_ops *ops; in sof_of_probe() local 87 ops = desc->ops; in sof_of_probe() 88 if (!ops) { in sof_of_probe()
|
D | sof-acpi-dev.c | 50 .ops = &sof_bdw_ops, 68 .ops = &sof_byt_ops, 82 .ops = &sof_byt_ops, 96 .ops = &sof_cht_ops, 125 const struct snd_sof_dsp_ops *ops; in sof_acpi_probe() local 144 ops = desc->ops; in sof_acpi_probe() 145 if (!ops) { in sof_acpi_probe()
|
/sound/soc/intel/common/ |
D | sst-ipc.c | 57 if (ipc->ops.shim_dbg != NULL) in tx_wait_done() 58 ipc->ops.shim_dbg(ipc, "message timeout"); in tx_wait_done() 102 if ((request.size) && (ipc->ops.tx_data_copy != NULL)) in ipc_tx_message() 103 ipc->ops.tx_data_copy(msg, request.data, request.size); in ipc_tx_message() 165 if (ipc->ops.is_dsp_busy && ipc->ops.is_dsp_busy(ipc->dsp)) { in ipc_tx_msgs() 173 if (ipc->ops.tx_msg != NULL) in ipc_tx_msgs() 174 ipc->ops.tx_msg(ipc, msg); in ipc_tx_msgs() 190 if (ipc->ops.check_dsp_lp_on) in sst_ipc_tx_message_wait() 191 if (ipc->ops.check_dsp_lp_on(ipc->dsp, true)) in sst_ipc_tx_message_wait() 196 if (ipc->ops.check_dsp_lp_on) in sst_ipc_tx_message_wait() [all …]
|
/sound/usb/ |
D | card.c | 117 int snd_vendor_set_ops(struct snd_usb_audio_vendor_ops *ops) in snd_vendor_set_ops() argument 119 if ((!ops->connect) || in snd_vendor_set_ops() 120 (!ops->disconnect) || in snd_vendor_set_ops() 121 (!ops->set_interface) || in snd_vendor_set_ops() 122 (!ops->set_rate) || in snd_vendor_set_ops() 123 (!ops->set_pcm_buf) || in snd_vendor_set_ops() 124 (!ops->set_pcm_intf) || in snd_vendor_set_ops() 125 (!ops->set_pcm_connection) || in snd_vendor_set_ops() 126 (!ops->set_pcm_binterval) || in snd_vendor_set_ops() 127 (!ops->usb_add_ctls)) in snd_vendor_set_ops() [all …]
|
/sound/synth/emux/ |
D | emux_synth.c | 60 if (snd_BUG_ON(!emu || !emu->ops.get_voice || !emu->ops.trigger)) in snd_emux_note_on() 89 vp = emu->ops.get_voice(emu, port); in snd_emux_note_on() 93 emu->ops.terminate(vp); in snd_emux_note_on() 110 if (emu->ops.prepare) { in snd_emux_note_on() 112 if (emu->ops.prepare(vp) >= 0) in snd_emux_note_on() 122 emu->ops.trigger(vp); in snd_emux_note_on() 158 if (snd_BUG_ON(!emu || !emu->ops.release)) in snd_emux_note_off() 180 emu->ops.release(vp); in snd_emux_note_off() 205 emu->ops.release(vp); in snd_emux_timer_callback() 235 if (snd_BUG_ON(!emu || !emu->ops.update)) in snd_emux_key_press() [all …]
|
/sound/ac97/ |
D | snd_ac97_compat.c | 25 if (actrl->ops->reset) in compat_ac97_reset() 26 actrl->ops->reset(actrl); in compat_ac97_reset() 34 if (actrl->ops->warm_reset) in compat_ac97_warm_reset() 35 actrl->ops->warm_reset(actrl); in compat_ac97_warm_reset() 44 actrl->ops->write(actrl, ac97->num, reg, val); in compat_ac97_write() 53 return actrl->ops->read(actrl, ac97->num, reg); in compat_ac97_read() 64 .ops = &compat_snd_ac97_bus_ops,
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform-pcm.c | 204 str_params->ops = (u8)pstream->stream; in sst_fill_stream_params() 217 str_params->ops = (u8)cstream->direction; in sst_fill_stream_params() 247 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream() 285 ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); in sst_platform_init_stream() 294 return stream->ops->power(sst->dev, true); in power_up_sst() 299 stream->ops->power(sst->dev, false); in power_down_sst() 322 stream->ops = sst->ops; in sst_media_open() 370 stream->ops->close(sst->dev, str_id); in sst_media_close() 384 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_media_prepare() 484 .ops = &sst_media_dai_ops, [all …]
|