summaryrefslogtreecommitdiff
path: root/drivers/staging/intel_sst
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2011-05-03 17:34:55 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-10 12:58:42 -0700
commitf2b5ea1feb904d483a8cf901562e314988ecc314 (patch)
treef9ab82aa285cb71546e53a0d1d08d0fb2373d395 /drivers/staging/intel_sst
parente51a34f3e83b96a4cfa2fdc2ba952c3f8b66c1da (diff)
intel_sst: make sure the sst_drop_stream() get called when needed
When "aplay test.wav", if we "ctrl+z" to suspend it, the last piece of sound will be played endlessly. So we need make sure the drop_stream is called in such a case. Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/intel_sst')
-rw-r--r--drivers/staging/intel_sst/intel_sst_drv_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/intel_sst/intel_sst_drv_interface.c b/drivers/staging/intel_sst/intel_sst_drv_interface.c
index 1e8c05605aec..bb64f2a767f8 100644
--- a/drivers/staging/intel_sst/intel_sst_drv_interface.c
+++ b/drivers/staging/intel_sst/intel_sst_drv_interface.c
@@ -283,8 +283,8 @@ void sst_process_mad_ops(struct work_struct *work)
retval = sst_resume_stream(mad_ops->stream_id);
break;
case SST_SND_DROP:
-/* retval = sst_drop_stream(mad_ops->stream_id);
-*/ break;
+ retval = sst_drop_stream(mad_ops->stream_id);
+ break;
case SST_SND_START:
pr_debug("SST Debug: start stream\n");
retval = sst_start_stream(mad_ops->stream_id);