change wm8900, delete useless code
authorChenJQ <chenjq@rock-chips.com>
Mon, 11 Apr 2011 09:37:11 +0000 (02:37 -0700)
committerChenJQ <chenjq@rock-chips.com>
Mon, 11 Apr 2011 09:37:11 +0000 (02:37 -0700)
sound/soc/codecs/wm8900.c

index 2551e7e09618f4e384d8f90fc715d6f410ad0bf8..f970e30cef7b108a0846b4933e5459df636c4b83 100755 (executable)
@@ -1095,16 +1095,9 @@ static void wm8900_shutdown(struct snd_pcm_substream *substream,
        struct snd_soc_dai_link *machine = rtd->dai;
        struct snd_soc_dai *codec_dai = machine->codec_dai;
        struct snd_soc_codec *codec = socdev->card->codec;
-       
-       WM8900_DBG("Enter::%s----%d substream->stream:%s \n",__FUNCTION__,__LINE__,
-                  substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? "PLAYBACK":"CAPTURE");      
-
-       /* If  */
-       if (!codec_dai->capture.active && !codec_dai->playback.active &&
-           (substream->stream == SNDRV_PCM_STREAM_CAPTURE)) {
 
-               msleep(200);
-       }
+       WM8900_DBG("Enter::%s----%d substream->stream:%s \n",__FUNCTION__,__LINE__,
+                  substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? "PLAYBACK":"CAPTURE");
 
        if (!codec_dai->capture.active && !codec_dai->playback.active) {