Lines Matching defs:snd_sof_dsp_ops

78 struct snd_sof_dsp_ops {  struct
81 int (*probe)(struct snd_sof_dev *sof_dev); /* mandatory */
82 int (*remove)(struct snd_sof_dev *sof_dev); /* optional */
85 int (*run)(struct snd_sof_dev *sof_dev); /* mandatory */
86 int (*stall)(struct snd_sof_dev *sof_dev); /* optional */
87 int (*reset)(struct snd_sof_dev *sof_dev); /* optional */
88 int (*core_power_up)(struct snd_sof_dev *sof_dev,
90 int (*core_power_down)(struct snd_sof_dev *sof_dev,
98 void (*write)(struct snd_sof_dev *sof_dev, void __iomem *addr,
100 u32 (*read)(struct snd_sof_dev *sof_dev,
102 void (*write64)(struct snd_sof_dev *sof_dev, void __iomem *addr,
104 u64 (*read64)(struct snd_sof_dev *sof_dev,
108 void (*block_read)(struct snd_sof_dev *sof_dev, u32 bar,
111 void (*block_write)(struct snd_sof_dev *sof_dev, u32 bar,
116 irqreturn_t (*irq_handler)(int irq, void *context); /* optional */
117 irqreturn_t (*irq_thread)(int irq, void *context); /* optional */
120 int (*send_msg)(struct snd_sof_dev *sof_dev,
124 int (*load_firmware)(struct snd_sof_dev *sof_dev); /* mandatory */
125 int (*load_module)(struct snd_sof_dev *sof_dev,
131 int (*fw_ready)(struct snd_sof_dev *sdev, u32 msg_id); /* optional */
134 int (*pcm_open)(struct snd_sof_dev *sdev,
137 int (*pcm_close)(struct snd_sof_dev *sdev,
141 int (*pcm_hw_params)(struct snd_sof_dev *sdev,
147 int (*pcm_hw_free)(struct snd_sof_dev *sdev,
151 int (*pcm_trigger)(struct snd_sof_dev *sdev,
156 snd_pcm_uframes_t (*pcm_pointer)(struct snd_sof_dev *sdev,
160 void (*ipc_msg_data)(struct snd_sof_dev *sdev,
165 int (*ipc_pcm_params)(struct snd_sof_dev *sdev,
170 int (*pre_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
171 int (*post_fw_run)(struct snd_sof_dev *sof_dev); /* optional */
174 int (*suspend)(struct snd_sof_dev *sof_dev); /* optional */
175 int (*resume)(struct snd_sof_dev *sof_dev); /* optional */
176 int (*runtime_suspend)(struct snd_sof_dev *sof_dev); /* optional */
177 int (*runtime_resume)(struct snd_sof_dev *sof_dev); /* optional */
178 int (*runtime_idle)(struct snd_sof_dev *sof_dev); /* optional */
179 int (*set_hw_params_upon_resume)(struct snd_sof_dev *sdev); /* optional */
182 int (*set_clk)(struct snd_sof_dev *sof_dev, u32 freq); /* optional */
185 const struct snd_sof_debugfs_map *debug_map; /* optional */
186 int debug_map_count; /* optional */
187 void (*dbg_dump)(struct snd_sof_dev *sof_dev,
189 void (*ipc_dump)(struct snd_sof_dev *sof_dev); /* optional */
192 int (*trace_init)(struct snd_sof_dev *sdev,
194 int (*trace_release)(struct snd_sof_dev *sdev); /* optional */
195 int (*trace_trigger)(struct snd_sof_dev *sdev,
222 const struct snd_sof_dsp_ops *ops; argument