Intel: ASoC: Add condition check before set param to waves
authorLu, Han <han.lu@intel.com>
Thu, 19 Mar 2015 00:38:00 +0000 (08:38 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 19 Mar 2015 00:49:11 +0000 (00:49 +0000)
commit5d5b275d727753372f0a390b4121738d073f3e94
treee0e439159f52d70420d2e0d528cc4fdcbc9ad225
parent91b0d9aa933a2335f6f11983b19eaf9ebe3c2033
Intel: ASoC: Add condition check before set param to waves

Check waves state before set parameter through ipc to prevent unexpected
operation. Also remove redundant check.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-haswell-ipc.c
sound/soc/intel/sst-haswell-pcm.c