diff mbox

[RFC,5/9] ASoC: hda: Add dsp loader ops

Message ID 1429276567-29007-6-git-send-email-vinod.koul@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Vinod Koul April 17, 2015, 1:16 p.m. UTC
From: "Subhransu S. Prusty" <subhransu.s.prusty@intel.com>

This will be assigned with the required bus io ops.

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
 include/sound/soc-hda-sst-dsp.h |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
diff mbox

Patch

diff --git a/include/sound/soc-hda-sst-dsp.h b/include/sound/soc-hda-sst-dsp.h
index 4a89c3dda5ab..3d8b0c065002 100644
--- a/include/sound/soc-hda-sst-dsp.h
+++ b/include/sound/soc-hda-sst-dsp.h
@@ -138,12 +138,28 @@  struct ssth_window {
 	size_t w1_size;
 };
 
+struct ssth_dsp_loader_ops {
+	int (*init)(struct device *dev);
+	int (*prepare)(struct device *dev, unsigned int format,
+				unsigned int byte_size,
+				struct snd_dma_buffer *bufp);
+	void (*trigger)(struct device *dev, bool start);
+
+	void (*cleanup)(struct device *dev,
+				 struct snd_dma_buffer *dmab);
+	int (*alloc_dma_buf)(struct device *dev,
+		struct snd_dma_buffer *dmab, u32 size);
+	int (*free_dma_buf)(struct device *dev,
+		struct snd_dma_buffer *dmab);
+};
+
 struct ssth_lib {
 	struct device *dev;
 	struct ssth_ipc *ipc;
 	void __iomem *mmio_base;
 	struct ssth_window window;
 	int irq;
+	struct ssth_dsp_loader_ops  dsp_ops;
 	struct snd_dma_buffer dsp_fw_buf;
 	int sst_state;
 	struct mutex sst_lock;