ASoC: Intel: Fix allow hw_params to be called more than once.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Fri, 2 May 2014 15:56:32 +0000 (16:56 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 2 May 2014 16:53:02 +0000 (09:53 -0700)
commit916152c48848290a8aba5cf4dd16c2a8a888e11c
tree7e3f84b0500c5ce4204bf65bfe7d5a8da8517ecb
parent10df350977b15d44dba0b3b44e3da7989711cb8d
ASoC: Intel: Fix allow hw_params to be called more than once.

hw_params() can be called multiple times. Make sure we release the DSP
stream that was allocated on previous hw_params() calls before allocating
a new DSP stream.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-pcm.c