ASoC: sst_platform: eliminate "Control path in use error"
authorDharageswari.R <Dharageswari.R@intel.com>
Thu, 6 Oct 2011 15:18:34 +0000 (16:18 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 21:16:53 +0000 (13:16 -0800)
Music stops for a while after press Pause/Resume several times when effect
enabled

This patch removes the DROP operation during prepare.

Change-Id: I4aa4787424df6a512ee50691f34bc5d96ae5c602
Signed-off-by: Dharageswari.R <Dharageswari.R@intel.com>
sound/soc/mid-x86/sst_platform.c

index 7b185f7..2cc0fda 100644 (file)
@@ -363,11 +363,8 @@ static int sst_platform_pcm_prepare(struct snd_pcm_substream *substream)
        }
        stream = substream->runtime->private_data;
        str_id = stream->stream_info.str_id;
-       if (stream->stream_info.str_id) {
-               ret_val = stream->sstdrv_ops->pcm_control->device_control(
-                                       SST_SND_DROP, &str_id);
+       if (stream->stream_info.str_id)
                return ret_val;
-       }
 
        ret_val = sst_platform_alloc_stream(substream);
        if (ret_val <= 0)