aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>2015-07-10 12:48:39 -0400
committerMark Brown <broonie@kernel.org>2015-07-16 16:46:50 -0400
commitb662680252fa6e3bc53ad087078dd1fe7496449c (patch)
tree688dd3148f0ddb32c4c77e7774bf8caf66bb5e94
parente973e31a02c32fc830986e62f82e69934134f5ce (diff)
ASoC: Intel: Skylake: Add dsp loader ops
The ops is initialized during the dsp registration and used for the allocating dma buffers. Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Jeeja KP <jeeja.kp@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/skylake/skl-sst-dsp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-sst-dsp.h b/sound/soc/intel/skylake/skl-sst-dsp.h
index cdfca9be4120..c2d28781309a 100644
--- a/sound/soc/intel/skylake/skl-sst-dsp.h
+++ b/sound/soc/intel/skylake/skl-sst-dsp.h
@@ -16,6 +16,8 @@
16#ifndef __SKL_SST_DSP_H__ 16#ifndef __SKL_SST_DSP_H__
17#define __SKL_SST_DSP_H__ 17#define __SKL_SST_DSP_H__
18 18
19#include <sound/memalloc.h>
20
19struct sst_dsp_device; 21struct sst_dsp_device;
20 22
21/* Intel HD Audio General DSP Registers */ 23/* Intel HD Audio General DSP Registers */
@@ -104,6 +106,13 @@ struct skl_dsp_fw_ops {
104 int (*set_state_D3)(struct sst_dsp *ctx); 106 int (*set_state_D3)(struct sst_dsp *ctx);
105}; 107};
106 108
109struct skl_dsp_loader_ops {
110 int (*alloc_dma_buf)(struct device *dev,
111 struct snd_dma_buffer *dmab, size_t size);
112 int (*free_dma_buf)(struct device *dev,
113 struct snd_dma_buffer *dmab);
114};
115
107void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state); 116void skl_dsp_set_state_locked(struct sst_dsp *ctx, int state);
108struct sst_dsp *skl_dsp_ctx_init(struct device *dev, 117struct sst_dsp *skl_dsp_ctx_init(struct device *dev,
109 struct sst_dsp_device *sst_dev, int irq); 118 struct sst_dsp_device *sst_dev, int irq);