Commit f2b5ea1f authored by Feng Tang's avatar Feng Tang Committed by Greg Kroah-Hartman

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: default avatarFeng Tang <feng.tang@intel.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e51a34f3
...@@ -283,8 +283,8 @@ void sst_process_mad_ops(struct work_struct *work) ...@@ -283,8 +283,8 @@ void sst_process_mad_ops(struct work_struct *work)
retval = sst_resume_stream(mad_ops->stream_id); retval = sst_resume_stream(mad_ops->stream_id);
break; break;
case SST_SND_DROP: case SST_SND_DROP:
/* retval = sst_drop_stream(mad_ops->stream_id); retval = sst_drop_stream(mad_ops->stream_id);
*/ break; break;
case SST_SND_START: case SST_SND_START:
pr_debug("SST Debug: start stream\n"); pr_debug("SST Debug: start stream\n");
retval = sst_start_stream(mad_ops->stream_id); retval = sst_start_stream(mad_ops->stream_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment