devsound/a3fdevsound/src/devsoundadaptor/cdevcommoncontrol.cpp
branchRCL_3
changeset 23 545d349d14da
parent 12 b74061f7f3d2
--- a/devsound/a3fdevsound/src/devsoundadaptor/cdevcommoncontrol.cpp	Tue May 25 14:20:15 2010 +0300
+++ b/devsound/a3fdevsound/src/devsoundadaptor/cdevcommoncontrol.cpp	Wed Jun 09 11:20:54 2010 +0300
@@ -107,10 +107,6 @@
     DP_IN();
     
     TInt err = KErrNone;
-    if(iDevAudio->iActiveState != EDevSoundAdaptorPaused_Primed)
-        {
-        err = KErrNotReady;
-        }
 
     //If following condition is true, then we are here because of a
     //pre-emption clash in last Commit cycle started from
@@ -121,6 +117,10 @@
 		err = Unload();
 		DP0_RET(err,"%d");
     	}
+    else if(iDevAudio->iActiveState != EDevSoundAdaptorPaused_Primed)
+        {
+        DP0_RET(KErrNotReady, "%d");
+        }
 
     if(err == KErrNone)
         {