aboutsummaryrefslogtreecommitdiffstats
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:20 +0530
committerMark Brown <broonie@linaro.org>2014-08-16 17:06:30 -0500
commit5981c2d6db2ef16d96ee4d1c4d3ddff4ad9d8ebc (patch)
tree7dfc365f518337c262ab12ba85ea689627a3a09d /sound/soc/intel/sst-mfld-platform.h
parentASoC: Intel: Fix to use byte control interface (diff)
downloadlinux-dev-5981c2d6db2ef16d96ee4d1c4d3ddff4ad9d8ebc.tar.xz
linux-dev-5981c2d6db2ef16d96ee4d1c4d3ddff4ad9d8ebc.zip
ASoC: Intel: mfld-pcm: Use function instead of ioctl
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 '')
-rw-r--r--sound/soc/intel/sst-mfld-platform.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/sound/soc/intel/sst-mfld-platform.h b/sound/soc/intel/sst-mfld-platform.h
index cc3a088df7dd..2d6e65bbbc49 100644
--- a/sound/soc/intel/sst-mfld-platform.h
+++ b/sound/soc/intel/sst-mfld-platform.h
@@ -54,18 +54,6 @@ enum sst_drv_status {
SST_PLATFORM_DROPPED,
};
-enum sst_controls {
- SST_SND_ALLOC = 0x00,
- SST_SND_PAUSE = 0x01,
- SST_SND_RESUME = 0x02,
- SST_SND_DROP = 0x03,
- SST_SND_FREE = 0x04,
- SST_SND_BUFFER_POINTER = 0x05,
- SST_SND_STREAM_INIT = 0x06,
- SST_SND_START = 0x07,
- SST_MAX_CONTROLS = 0x07,
-};
-
enum sst_stream_ops {
STREAM_OPS_PLAYBACK = 0,
STREAM_OPS_CAPTURE,
@@ -126,7 +114,12 @@ struct compress_sst_ops {
struct sst_ops {
int (*open) (struct snd_sst_params *str_param);
- int (*device_control) (int cmd, void *arg);
+ 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);
};