Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 697) sorted by relevance

12345678910>>...28

/sound/soc/
Dsoc-dai.c24 if (dai->driver->ops->set_sysclk) in snd_soc_dai_set_sysclk()
25 return dai->driver->ops->set_sysclk(dai, clk_id, freq, dir); in snd_soc_dai_set_sysclk()
45 if (dai->driver->ops->set_clkdiv) in snd_soc_dai_set_clkdiv()
46 return dai->driver->ops->set_clkdiv(dai, div_id, div); in snd_soc_dai_set_clkdiv()
65 if (dai->driver->ops->set_pll) in snd_soc_dai_set_pll()
66 return dai->driver->ops->set_pll(dai, pll_id, source, in snd_soc_dai_set_pll()
83 if (dai->driver->ops->set_bclk_ratio) in snd_soc_dai_set_bclk_ratio()
84 return dai->driver->ops->set_bclk_ratio(dai, ratio); in snd_soc_dai_set_bclk_ratio()
99 if (dai->driver->ops->set_fmt == NULL) in snd_soc_dai_set_fmt()
101 return dai->driver->ops->set_fmt(dai, fmt); in snd_soc_dai_set_fmt()
[all …]
Dsoc-component.c317 if (component->driver->ops && in snd_soc_component_open()
318 component->driver->ops->open) in snd_soc_component_open()
319 return component->driver->ops->open(substream); in snd_soc_component_open()
327 if (component->driver->ops && in snd_soc_component_close()
328 component->driver->ops->close) in snd_soc_component_close()
329 return component->driver->ops->close(substream); in snd_soc_component_close()
337 if (component->driver->ops && in snd_soc_component_prepare()
338 component->driver->ops->prepare) in snd_soc_component_prepare()
339 return component->driver->ops->prepare(substream); in snd_soc_component_prepare()
348 if (component->driver->ops && in snd_soc_component_hw_params()
[all …]
Dsoc-topology.c78 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->comp && 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_()
286 if (tplg->comp && tplg->ops && tplg->ops->widget_load) in soc_tplg_widget_load()
287 return tplg->ops->widget_load(tplg->comp, tplg->index, w, in soc_tplg_widget_load()
298 if (tplg->comp && tplg->ops && tplg->ops->widget_ready) in soc_tplg_widget_ready()
299 return tplg->ops->widget_ready(tplg->comp, tplg->index, w, in soc_tplg_widget_ready()
310 if (tplg->comp && tplg->ops && tplg->ops->dai_load) in soc_tplg_dai_load()
[all …]
/sound/core/seq/
Dseq_midi_emul.c33 static void note_off(struct snd_midi_op *ops, void *drv,
36 static void do_control(struct snd_midi_op *ops, void *private,
40 static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
42 static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
44 static void sysex(struct snd_midi_op *ops, void *private, unsigned char *sysex,
46 static void all_sounds_off(struct snd_midi_op *ops, void *private,
48 static void all_notes_off(struct snd_midi_op *ops, void *private,
69 snd_midi_process_event(struct snd_midi_op *ops, in snd_midi_process_event() argument
116 if (ops->note_off) in snd_midi_process_event()
117 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event()
[all …]
/sound/hda/
Dhdac_component.c39 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/
Dac97_bus.c29 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 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/
Dctatc.c267 src->ops->set_pitch(src, pitch); in atc_pcm_playback_prepare()
268 src->ops->set_rom(src, select_rom(pitch)); in atc_pcm_playback_prepare()
269 src->ops->set_sf(src, convert_format(apcm->substream->runtime->format, in atc_pcm_playback_prepare()
271 src->ops->set_pm(src, (src->ops->next_interleave(src) != NULL)); in atc_pcm_playback_prepare()
300 amixer->ops->setup(amixer, &src->rsc, in atc_pcm_playback_prepare()
303 src = src->ops->next_interleave(src); in atc_pcm_playback_prepare()
330 srcimp->ops->unmap(srcimp); in atc_pcm_release_resources()
387 src->ops->set_sa(src, apcm->vm_block->addr); in atc_pcm_playback_start()
388 src->ops->set_la(src, apcm->vm_block->addr + apcm->vm_block->size); in atc_pcm_playback_start()
389 src->ops->set_ca(src, apcm->vm_block->addr + max_cisz); in atc_pcm_playback_start()
[all …]
Dctsrc.c181 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 …]
Dcttimer.c49 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 …]
Dctamixer.c66 rsc->ops->output_slot(rsc)); in amixer_set_input()
103 sum->rsc.ops->index(&sum->rsc)); in amixer_set_sum()
122 amixer->rsc.ops->master(&amixer->rsc); in amixer_commit_write()
124 input->ops->master(input); in amixer_commit_write()
127 sum->rsc.ops->master(&sum->rsc); in amixer_commit_write()
133 input->ops->output_slot(input)); in amixer_commit_write()
134 input->ops->next_conj(input); in amixer_commit_write()
138 sum->rsc.ops->index(&sum->rsc)); in amixer_commit_write()
139 sum->rsc.ops->next_conj(&sum->rsc); in amixer_commit_write()
141 index = amixer->rsc.ops->output_slot(&amixer->rsc); in amixer_commit_write()
[all …]
Dctdaio.c166 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 …]
Dctmixer.c352 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/
Dhwdep.c45 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 …]
Dcompress_offload.c118 data->stream.ops = compr->ops; in snd_compr_open()
133 ret = compr->ops->open(&data->stream); in snd_compr_open()
154 data->stream.ops->trigger(&data->stream, SNDRV_PCM_TRIGGER_STOP); in snd_compr_free()
160 data->stream.ops->free(&data->stream); in snd_compr_free()
171 if (!stream->ops->pointer) in snd_compr_update_tstamp()
173 stream->ops->pointer(stream, tstamp); in snd_compr_update_tstamp()
276 if (stream->ops->ack) in snd_compr_write_data()
277 stream->ops->ack(stream, count); in snd_compr_write_data()
311 if (stream->ops->copy) { in snd_compr_write()
313 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
[all …]
Ddevice.c30 void *device_data, 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()
Dinfo.c114 if (entry->c.ops->llseek) { in snd_info_entry_llseek()
115 offset = 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/
Dsof-pci-dev.c45 .ops = &sof_apl_ops,
63 .ops = &sof_apl_ops,
91 .ops = &sof_tng_ops,
109 .ops = &sof_cnl_ops,
127 .ops = &sof_cnl_ops,
147 .ops = &sof_cnl_ops,
165 .ops = &sof_cnl_ops,
183 .ops = &sof_skl_ops,
201 .ops = &sof_skl_ops,
219 .ops = &sof_cnl_ops,
[all …]
Dsof-acpi-dev.c44 .ops = &sof_hsw_ops,
61 .ops = &sof_bdw_ops,
80 .ops = &sof_byt_ops,
95 .ops = &sof_byt_ops,
110 .ops = &sof_cht_ops,
136 const struct snd_sof_dsp_ops *ops; in sof_acpi_probe() local
155 ops = desc->ops; in sof_acpi_probe()
156 if (!ops) { in sof_acpi_probe()
167 ret = sof_nocodec_setup(dev, sof_pdata, mach, desc, ops); in sof_acpi_probe()
Dnocodec.c20 const struct snd_sof_dsp_ops *ops, in sof_nocodec_bes_setup() argument
27 if (!ops || !links || !card) in sof_nocodec_bes_setup()
51 links[i].cpus->dai_name = ops->drv[i].name; in sof_nocodec_bes_setup()
69 const struct snd_sof_dsp_ops *ops) in sof_nocodec_setup() argument
85 ops->num_drv, GFP_KERNEL); in sof_nocodec_setup()
89 ret = sof_nocodec_bes_setup(dev, ops, links, ops->num_drv, in sof_nocodec_setup()
Dsof-of-dev.c24 .ops = &sof_imx8_ops,
49 const struct snd_sof_dsp_ops *ops; in sof_of_probe() local
63 ops = desc->ops; in sof_of_probe()
64 if (!ops) { in sof_of_probe()
75 ret = sof_nocodec_setup(dev, sof_pdata, mach, desc, ops); in sof_of_probe()
/sound/soc/intel/common/
Dsst-dsp.c88 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
99 val = sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read()
111 sst->ops->write64(sst->addr.shim, offset, value); in sst_dsp_shim_write64()
122 val = sst->ops->read64(sst->addr.shim, offset); in sst_dsp_shim_read64()
131 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write_unlocked()
137 return sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read_unlocked()
143 sst->ops->write64(sst->addr.shim, offset, value); in sst_dsp_shim_write64_unlocked()
149 return sst->ops->read64(sst->addr.shim, offset); in sst_dsp_shim_read64_unlocked()
287 if (sst->ops->dump) in sst_dsp_dump()
288 sst->ops->dump(sst); in sst_dsp_dump()
[all …]
Dsst-ipc.c57 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/synth/emux/
Demux_synth.c60 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/
Dsnd_ac97_compat.c25 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/
Dsst-mfld-platform-pcm.c204 str_params->ops = (u8)pstream->stream; in sst_fill_stream_params()
217 str_params->ops = (u8)cstream->direction; in sst_fill_stream_params()
248 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream()
286 ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); in sst_platform_init_stream()
295 return stream->ops->power(sst->dev, true); in power_up_sst()
300 stream->ops->power(sst->dev, false); in power_down_sst()
323 stream->ops = sst->ops; in sst_media_open()
359 stream->ops->close(sst->dev, str_id); in sst_media_close()
373 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_media_prepare()
496 .ops = &sst_media_dai_ops,
[all …]

12345678910>>...28