summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-mfld-platform.h
diff options
context:
space:
mode:
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>2014-08-04 15:04:21 +0530
committerMark Brown <broonie@linaro.org>2014-08-16 17:06:30 -0500
commitb12b087c8715286b8759016f1d5c36cac0bb37f6 (patch)
tree030d9e97cbf5620c4632916cd331b6407c024e48 /sound/soc/intel/sst-mfld-platform.h
parent5981c2d6db2ef16d96ee4d1c4d3ddff4ad9d8ebc (diff)
ASoC: Intel: mfld-pcm: Change sst_ops prototypes to take dev parameter
sst_ops need to use the sst driver context. So pass sst device as argument, which can be used to retrieve sst context. Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/intel/sst-mfld-platform.h')
-rw-r--r--sound/soc/intel/sst-mfld-platform.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sound/soc/intel/sst-mfld-platform.h b/sound/soc/intel/sst-mfld-platform.h
index 2d6e65bbbc4..d4c28b8fb47 100644
--- a/sound/soc/intel/sst-mfld-platform.h
+++ b/sound/soc/intel/sst-mfld-platform.h
@@ -113,15 +113,15 @@ struct compress_sst_ops {
};
struct sst_ops {
- int (*open) (struct snd_sst_params *str_param);
- int (*stream_init) (struct pcm_stream_info *str_info);
- int (*stream_start) (int str_id);
- int (*stream_drop) (int str_id);
- int (*stream_pause) (int str_id);
- int (*stream_pause_release) (int str_id);
- int (*stream_read_tstamp) (struct pcm_stream_info *str_info);
- int (*send_byte_stream)(struct snd_sst_bytes_v2 *bytes);
- int (*close) (unsigned int str_id);
+ int (*open) (struct device *dev, struct snd_sst_params *str_param);
+ int (*stream_init) (struct device *dev, struct pcm_stream_info *str_info);
+ int (*stream_start) (struct device *dev, int str_id);
+ int (*stream_drop) (struct device *dev, int str_id);
+ int (*stream_pause) (struct device *dev, int str_id);
+ int (*stream_pause_release) (struct device *dev, int str_id);
+ int (*stream_read_tstamp) (struct device *dev, struct pcm_stream_info *str_info);
+ int (*send_byte_stream)(struct device *dev, struct snd_sst_bytes_v2 *bytes);
+ int (*close) (struct device *dev, unsigned int str_id);
};
struct sst_runtime_stream {