diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-02-18 23:01:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-01 16:22:46 +0000 |
commit | de9833476de7eb1d4b8bdc599cbbd616fb0e1a28 (patch) | |
tree | e13c8fbb5593ff5ee3d4784a30db4d36fbc95596 /sound/soc/intel/atom/sst/sst_drv_interface.c | |
parent | ASoC: Intel: sst: Remove unnecessary sst_init_stream() function (diff) | |
download | linux-dev-de9833476de7eb1d4b8bdc599cbbd616fb0e1a28.tar.xz linux-dev-de9833476de7eb1d4b8bdc599cbbd616fb0e1a28.zip |
ASoC: Intel: sst: Remove unused STREAM_DECODE and STREAM_RESET states
STREAM_DECODE is completely unused, status == STREAM_RESET was checked
for, but never set, remove both.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst/sst_drv_interface.c')
-rw-r--r-- | sound/soc/intel/atom/sst/sst_drv_interface.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sound/soc/intel/atom/sst/sst_drv_interface.c b/sound/soc/intel/atom/sst/sst_drv_interface.c index 71af5449be90..6a8b253c58d2 100644 --- a/sound/soc/intel/atom/sst/sst_drv_interface.c +++ b/sound/soc/intel/atom/sst/sst_drv_interface.c @@ -238,16 +238,7 @@ static int sst_cdev_close(struct device *dev, unsigned int str_id) return -EINVAL; } - if (stream->status == STREAM_RESET) { - dev_dbg(dev, "stream in reset state...\n"); - stream->status = STREAM_UN_INIT; - - retval = 0; - goto put; - } - retval = sst_free_stream(ctx, str_id); -put: stream->compr_cb_param = NULL; stream->compr_cb = NULL; @@ -256,7 +247,6 @@ put: dev_dbg(dev, "End\n"); return retval; - } static int sst_cdev_ack(struct device *dev, unsigned int str_id, @@ -486,16 +476,7 @@ static int sst_close_pcm_stream(struct device *dev, unsigned int str_id) return -EINVAL; } - if (stream->status == STREAM_RESET) { - /* silently fail here as we have cleaned the stream earlier */ - dev_dbg(ctx->dev, "stream in reset state...\n"); - - retval = 0; - goto put; - } - retval = free_stream_context(ctx, str_id); -put: stream->pcm_substream = NULL; stream->status = STREAM_UN_INIT; stream->period_elapsed = NULL; |