Lines Matching defs:snd_sof_dsp_ops

119 struct snd_sof_dsp_ops {  struct
122 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
123 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
124 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
127 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
128 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
129 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
130 int (*core_power_up)(struct snd_sof_dev *sof_dev,
132 int (*core_power_down)(struct snd_sof_dev *sof_dev,
140 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
142 u32 (*read)(struct snd_sof_dev *sof_dev,
144 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
146 u64 (*read64)(struct snd_sof_dev *sof_dev,
150 int (*block_read)(struct snd_sof_dev *sof_dev,
153 int (*block_write)(struct snd_sof_dev *sof_dev,
158 void (*mailbox_read)(struct snd_sof_dev *sof_dev,
161 void (*mailbox_write)(struct snd_sof_dev *sof_dev,
166 irqreturn_t (*irq_handler)(int irq, void *context); /* optional */
167 irqreturn_t (*irq_thread)(int irq, void *context); /* optional */
170 int (*send_msg)(struct snd_sof_dev *sof_dev,
174 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
175 int (*load_module)(struct snd_sof_dev *sof_dev,
181 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* mandatory */
184 int (*pcm_open)(struct snd_sof_dev *sdev,
187 int (*pcm_close)(struct snd_sof_dev *sdev,
191 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
197 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
201 int (*pcm_trigger)(struct snd_sof_dev *sdev,
206 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
211 int (*probe_assign)(struct snd_sof_dev *sdev,
214 int (*probe_free)(struct snd_sof_dev *sdev,
217 int (*probe_set_params)(struct snd_sof_dev *sdev,
221 int (*probe_trigger)(struct snd_sof_dev *sdev,
224 int (*probe_pointer)(struct snd_sof_dev *sdev,
231 int (*ipc_msg_data)(struct snd_sof_dev *sdev,
236 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
241 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
242 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
245 int (*parse_platform_ext_manifest)(struct snd_sof_dev *sof_dev,
249 int (*suspend)(struct snd_sof_dev *sof_dev,
251 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
252 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
253 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
254 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
255 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
256 int (*set_power_state)(struct snd_sof_dev *sdev,
260 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
263 const struct snd_sof_debugfs_map *debug_map; /* optional */
264 int debug_map_count; /* optional */
265 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
267 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
268 int (*debugfs_add_region_item)(struct snd_sof_dev *sdev,
274 int (*trace_init)(struct snd_sof_dev *sdev,
276 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
277 int (*trace_trigger)(struct snd_sof_dev *sdev,
281 int (*get_bar_index)(struct snd_sof_dev *sdev,
283 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
284 int (*get_window_offset)(struct snd_sof_dev *sdev,
288 int (*machine_register)(struct snd_sof_dev *sdev,
290 void (*machine_unregister)(struct snd_sof_dev *sdev,
292 void (*machine_select)(struct snd_sof_dev *sdev); /* optional */
293 void (*set_mach_params)(const struct snd_soc_acpi_mach *mach,
297 struct snd_soc_dai_driver *drv;
298 int num_drv;
301 u32 hw_info;
303 const struct dsp_arch_ops *dsp_arch_ops;