Lines Matching defs:snd_sof_dsp_ops
99 struct snd_sof_dsp_ops { struct
102 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
103 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
104 int (*shutdown)(struct snd_sof_dev *sof_dev); /* optional */
107 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
108 int (*stall)(struct snd_sof_dev *sof_dev, unsigned int core_mask); /* optional */
109 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
110 int (*core_power_up)(struct snd_sof_dev *sof_dev,
112 int (*core_power_down)(struct snd_sof_dev *sof_dev,
120 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
122 u32 (*read)(struct snd_sof_dev *sof_dev,
124 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
126 u64 (*read64)(struct snd_sof_dev *sof_dev,
130 void (*block_read)(struct snd_sof_dev *sof_dev, u32 bar,
133 void (*block_write)(struct snd_sof_dev *sof_dev, u32 bar,
138 irqreturn_t (*irq_handler)(int irq, void *context); /* optional */
139 irqreturn_t (*irq_thread)(int irq, void *context); /* optional */
142 int (*send_msg)(struct snd_sof_dev *sof_dev,
146 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
147 int (*load_module)(struct snd_sof_dev *sof_dev,
153 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* mandatory */
156 int (*pcm_open)(struct snd_sof_dev *sdev,
159 int (*pcm_close)(struct snd_sof_dev *sdev,
163 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
169 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
173 int (*pcm_trigger)(struct snd_sof_dev *sdev,
178 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
183 int (*probe_assign)(struct snd_sof_dev *sdev,
186 int (*probe_free)(struct snd_sof_dev *sdev,
189 int (*probe_set_params)(struct snd_sof_dev *sdev,
193 int (*probe_trigger)(struct snd_sof_dev *sdev,
196 int (*probe_pointer)(struct snd_sof_dev *sdev,
203 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
208 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
213 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
214 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
217 int (*parse_platform_ext_manifest)(struct snd_sof_dev *sof_dev,
221 int (*suspend)(struct snd_sof_dev *sof_dev,
223 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
224 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
225 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
226 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
227 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
228 int (*set_power_state)(struct snd_sof_dev *sdev,
232 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
235 const struct snd_sof_debugfs_map *debug_map; /* optional */
236 int debug_map_count; /* optional */
237 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
239 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
242 int (*trace_init)(struct snd_sof_dev *sdev,
244 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
245 int (*trace_trigger)(struct snd_sof_dev *sdev,
249 int (*get_bar_index)(struct snd_sof_dev *sdev,
251 int (*get_mailbox_offset)(struct snd_sof_dev *sdev);/* mandatory for common loader code */
252 int (*get_window_offset)(struct snd_sof_dev *sdev,
256 int (*machine_register)(struct snd_sof_dev *sdev,
258 void (*machine_unregister)(struct snd_sof_dev *sdev,
260 void (*machine_select)(struct snd_sof_dev *sdev); /* optional */
261 void (*set_mach_params)(const struct snd_soc_acpi_mach *mach,
286 const struct snd_sof_dsp_ops *ops; argument