diff -r efebd1779a59 -r c1e808730d6c devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp --- a/devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp Fri Apr 16 16:34:49 2010 +0300 +++ b/devsound/a3fdevsound/src/devsoundadaptor/mmfdevsoundadaptationbody.cpp Mon May 03 13:56:28 2010 +0300 @@ -1243,3 +1243,15 @@ ASSERT(iDevAudio); iDevAudio->GetAudioControl()->BufferErrorEvent(); } + +void CMMFDevSoundAdaptation::CBody::RollbackAdaptorActiveStateToBeforeCommit() + { + DP_CONTEXT(CMMFDevSoundAdaptation::CBody::RollbackAdaptorActiveStateToBeforeCommit *CD1*, CtxDevSound, DPLOCAL); + DP_IN(); + TDevSoundAdaptorState previousState = iDevAudio->PreviousState(); + // Set previous state to the active state set after state changing Commit call + iDevAudio->SetPreviousState(iDevAudio->ActiveState()); + // Set active state to the previous state set before state changing Commit call + iDevAudio->SetActiveState(previousState); + DP_OUT(); + }