Lines Matching defs:snd_sof_dsp_ops

173 struct snd_sof_dsp_ops {  struct
176 int (*probe_early)(struct snd_sof_dev *sof_dev); /* optional */
177 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
178 void (*remove)(struct snd_sof_dev *sof_dev); /* optional */
179 void (*remove_late)(struct snd_sof_dev *sof_dev); /* optional */
180 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
183 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
184 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
185 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
186 int (*core_get)(struct snd_sof_dev *sof_dev, int core); /* optional */
187 int (*core_put)(struct snd_sof_dev *sof_dev, int core); /* optional */
194 void (*write8)(struct snd_sof_dev *sof_dev, void __iomem *addr,
196 u8 (*read8)(struct snd_sof_dev *sof_dev,
198 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
200 u32 (*read)(struct snd_sof_dev *sof_dev,
202 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
204 u64 (*read64)(struct snd_sof_dev *sof_dev,
208 int (*block_read)(struct snd_sof_dev *sof_dev,
211 int (*block_write)(struct snd_sof_dev *sof_dev,
216 void (*mailbox_read)(struct snd_sof_dev *sof_dev,
219 void (*mailbox_write)(struct snd_sof_dev *sof_dev,
224 irqreturn_t (*irq_handler)(int irq, void *context); /* optional */
225 irqreturn_t (*irq_thread)(int irq, void *context); /* optional */
228 int (*send_msg)(struct snd_sof_dev *sof_dev,
232 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
233 int (*load_module)(struct snd_sof_dev *sof_dev,
237 int (*pcm_open)(struct snd_sof_dev *sdev,
240 int (*pcm_close)(struct snd_sof_dev *sdev,
244 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
250 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
254 int (*pcm_trigger)(struct snd_sof_dev *sdev,
259 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
263 int (*pcm_ack)(struct snd_sof_dev *sdev, struct snd_pcm_substream *substream); /* optional */
272 u64 (*get_dai_frame_counter)(struct snd_sof_dev *sdev,
282 u64 (*get_host_byte_counter)(struct snd_sof_dev *sdev,
287 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
292 int (*set_stream_data_offset)(struct snd_sof_dev *sdev,
297 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
298 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
301 int (*parse_platform_ext_manifest)(struct snd_sof_dev *sof_dev,
305 int (*suspend)(struct snd_sof_dev *sof_dev,
307 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
308 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
309 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
310 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
311 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
312 int (*set_power_state)(struct snd_sof_dev *sdev,
316 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
319 const struct snd_sof_debugfs_map *debug_map; /* optional */
320 int debug_map_count; /* optional */
321 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
323 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
324 int (*debugfs_add_region_item)(struct snd_sof_dev *sdev,
330 int (*trace_init)(struct snd_sof_dev *sdev,
333 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
334 int (*trace_trigger)(struct snd_sof_dev *sdev,
338 int (*get_bar_index)(struct snd_sof_dev *sdev,
340 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
341 int (*get_window_offset)(struct snd_sof_dev *sdev,
345 int (*machine_register)(struct snd_sof_dev *sdev,
347 void (*machine_unregister)(struct snd_sof_dev *sdev,
349 struct snd_soc_acpi_mach * (*machine_select)(struct snd_sof_dev *sdev); /* optional */
350 void (*set_mach_params)(struct snd_soc_acpi_mach *mach,
354 int (*register_ipc_clients)(struct snd_sof_dev *sdev); /* optional */
355 void (*unregister_ipc_clients)(struct snd_sof_dev *sdev); /* optional */
358 struct snd_soc_dai_driver *drv;
359 int num_drv;
361 bool (*is_chain_dma_supported)(struct snd_sof_dev *sdev, u32 dai_type); /* optional */
364 u32 hw_info;
366 const struct dsp_arch_ops *dsp_arch_ops;