Lines Matching defs:snd_sof_dsp_ops
95 struct snd_sof_dsp_ops { struct
98 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
99 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
102 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
103 int (*stall)(struct snd_sof_dev *sof_dev); /* optional */
104 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
105 int (*core_power_up)(struct snd_sof_dev *sof_dev,
107 int (*core_power_down)(struct snd_sof_dev *sof_dev,
115 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
117 u32 (*read)(struct snd_sof_dev *sof_dev,
119 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
121 u64 (*read64)(struct snd_sof_dev *sof_dev,
125 void (*block_read)(struct snd_sof_dev *sof_dev, u32 bar,
128 void (*block_write)(struct snd_sof_dev *sof_dev, u32 bar,
133 irqreturn_t (*irq_handler)(int irq, void *context); /* optional */
134 irqreturn_t (*irq_thread)(int irq, void *context); /* optional */
137 int (*send_msg)(struct snd_sof_dev *sof_dev,
141 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
142 int (*load_module)(struct snd_sof_dev *sof_dev,
148 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* mandatory */
151 int (*pcm_open)(struct snd_sof_dev *sdev,
154 int (*pcm_close)(struct snd_sof_dev *sdev,
158 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
164 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
168 int (*pcm_trigger)(struct snd_sof_dev *sdev,
173 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
178 int (*probe_assign)(struct snd_sof_dev *sdev,
181 int (*probe_free)(struct snd_sof_dev *sdev,
184 int (*probe_set_params)(struct snd_sof_dev *sdev,
188 int (*probe_trigger)(struct snd_sof_dev *sdev,
191 int (*probe_pointer)(struct snd_sof_dev *sdev,
198 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
203 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
208 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
209 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
212 int (*suspend)(struct snd_sof_dev *sof_dev,
214 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
215 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
216 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
217 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
218 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
219 int (*set_power_state)(struct snd_sof_dev *sdev,
223 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
226 const struct snd_sof_debugfs_map *debug_map; /* optional */
227 int debug_map_count; /* optional */
228 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
230 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
233 int (*trace_init)(struct snd_sof_dev *sdev,
235 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
236 int (*trace_trigger)(struct snd_sof_dev *sdev,
240 int (*get_bar_index)(struct snd_sof_dev *sdev,
242 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
243 int (*get_window_offset)(struct snd_sof_dev *sdev,
247 int (*machine_register)(struct snd_sof_dev *sdev,
249 void (*machine_unregister)(struct snd_sof_dev *sdev,
251 void (*machine_select)(struct snd_sof_dev *sdev); /* optional */
252 void (*set_mach_params)(const struct snd_soc_acpi_mach *mach,
277 const struct snd_sof_dsp_ops *ops; argument