]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - sound/soc/sof/sof-priv.h
ASoC: SOF: Make creation of machine device from SOF core optional
[mirror_ubuntu-hirsute-kernel.git] / sound / soc / sof / sof-priv.h
index eae1fc209a65cb23c3cd87b6aa5c835c7c6781ac..54dd6d4b4c128eb8ebb74e1e5fc860593a5e6d91 100644 (file)
@@ -202,6 +202,15 @@ struct snd_sof_dsp_ops {
        int (*get_window_offset)(struct snd_sof_dev *sdev,
                                 u32 id);/* mandatory for common loader code */
 
+       /* machine driver ops */
+       int (*machine_register)(struct snd_sof_dev *sdev,
+                               void *pdata); /* optional */
+       void (*machine_unregister)(struct snd_sof_dev *sdev,
+                                  void *pdata); /* optional */
+       void (*machine_select)(struct snd_sof_dev *sdev); /* optional */
+       void (*set_mach_params)(const struct snd_soc_acpi_mach *mach,
+                               struct device *dev); /* optional */
+
        /* DAI ops */
        struct snd_soc_dai_driver *drv;
        int num_drv;
@@ -511,4 +520,6 @@ int intel_pcm_open(struct snd_sof_dev *sdev,
 int intel_pcm_close(struct snd_sof_dev *sdev,
                    struct snd_pcm_substream *substream);
 
+int sof_machine_check(struct snd_sof_dev *sdev);
+
 #endif