Lines Matching defs:snd_sof_dsp_ops

165 struct snd_sof_dsp_ops {  struct
168 int (*probe_early)(struct snd_sof_dev *sof_dev); /* optional */
169 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
170 void (*remove)(struct snd_sof_dev *sof_dev); /* optional */
171 void (*remove_late)(struct snd_sof_dev *sof_dev); /* optional */
172 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
175 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
176 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
177 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
178 int (*core_get)(struct snd_sof_dev *sof_dev, int core); /* optional */
179 int (*core_put)(struct snd_sof_dev *sof_dev, int core); /* optional */
186 void (*write8)(struct snd_sof_dev *sof_dev, void __iomem *addr,
188 u8 (*read8)(struct snd_sof_dev *sof_dev,
190 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
192 u32 (*read)(struct snd_sof_dev *sof_dev,
194 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
196 u64 (*read64)(struct snd_sof_dev *sof_dev,
200 int (*block_read)(struct snd_sof_dev *sof_dev,
203 int (*block_write)(struct snd_sof_dev *sof_dev,
208 void (*mailbox_read)(struct snd_sof_dev *sof_dev,
211 void (*mailbox_write)(struct snd_sof_dev *sof_dev,
216 irqreturn_t (*irq_handler)(int irq, void *context); /* optional */
217 irqreturn_t (*irq_thread)(int irq, void *context); /* optional */
220 int (*send_msg)(struct snd_sof_dev *sof_dev,
224 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
225 int (*load_module)(struct snd_sof_dev *sof_dev,
229 int (*pcm_open)(struct snd_sof_dev *sdev,
232 int (*pcm_close)(struct snd_sof_dev *sdev,
236 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
242 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
246 int (*pcm_trigger)(struct snd_sof_dev *sdev,
251 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
255 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
264 u64 (*get_dai_frame_counter)(struct snd_sof_dev *sdev,
274 u64 (*get_host_byte_counter)(struct snd_sof_dev *sdev,
279 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
284 int (*set_stream_data_offset)(struct snd_sof_dev *sdev,
289 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
290 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
293 int (*parse_platform_ext_manifest)(struct snd_sof_dev *sof_dev,
297 int (*suspend)(struct snd_sof_dev *sof_dev,
299 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
300 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
301 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
302 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
303 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
304 int (*set_power_state)(struct snd_sof_dev *sdev,
308 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
311 const struct snd_sof_debugfs_map *debug_map; /* optional */
312 int debug_map_count; /* optional */
313 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
315 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
316 int (*debugfs_add_region_item)(struct snd_sof_dev *sdev,
322 int (*trace_init)(struct snd_sof_dev *sdev,
325 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
326 int (*trace_trigger)(struct snd_sof_dev *sdev,
330 int (*get_bar_index)(struct snd_sof_dev *sdev,
332 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
333 int (*get_window_offset)(struct snd_sof_dev *sdev,
337 int (*machine_register)(struct snd_sof_dev *sdev,
339 void (*machine_unregister)(struct snd_sof_dev *sdev,
341 struct snd_soc_acpi_mach * (*machine_select)(struct snd_sof_dev *sdev); /* optional */
342 void (*set_mach_params)(struct snd_soc_acpi_mach *mach,
346 int (*register_ipc_clients)(struct snd_sof_dev *sdev); /* optional */
347 void (*unregister_ipc_clients)(struct snd_sof_dev *sdev); /* optional */
350 struct snd_soc_dai_driver *drv;
351 int num_drv;
353 bool (*is_chain_dma_supported)(struct snd_sof_dev *sdev, u32 dai_type); /* optional */
356 u32 hw_info;
358 const struct dsp_arch_ops *dsp_arch_ops;