audio:sst:error handling during stream alloc
authorRamesh Babu K V <ramesh.babu@intel.com>
Wed, 11 Apr 2012 16:56:18 +0000 (22:26 +0530)
committerbuildbot <buildbot@intel.com>
Tue, 8 May 2012 14:07:33 +0000 (07:07 -0700)
commit26fc52ba3fe91126cb0ff8dac9246ee9db7756f5
treea514d2fed790d9fcd7ddc927efbbee8e9f2c3a10
parentdb3aa310b0027604eeeddeff5aa489c554e1827b
audio:sst:error handling during stream alloc

BZ: 32085

In rarest cases, the previous stream free may not freed by
firmware.  In such error conditions, firmware will not be
able to do stream alloc and returns stream in use error.
This causes no audio activity in a device until reboot.

If stream alloc fails due to stream in use error, free it
immediately and return the error to application.  Application
would retry again and will succeed in audio playback or capture.

Change-Id: Ie28cb45ddf43cbda415037dbeb6d924be7fdae9f
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/43749
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Agarwal, Vaibhav <vaibhav.agarwal@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/soc/mid-x86/sst/intel_sst_drv_interface.c