ASoC: Intel: Fix stream volume set no effect issue on Broadwell
authorJie Yang <yang.jie@intel.com>
Tue, 25 Nov 2014 13:00:53 +0000 (21:00 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 25 Nov 2014 13:08:04 +0000 (13:08 +0000)
commitf1e5982546edf96e4537ba689cfad83b90b70143
tree7caa8f271e12b3351f3afe63b17156d7be73b068
parent14cd7923122c7c4473848f7c737604bfe945b81b
ASoC: Intel: Fix stream volume set no effect issue on Broadwell

The volume setting control for capture stream doesn't take effect on intel
Broadwell platform. Root cause it at 2 points:
1. set stream volume with channel=2 is wrongly bapassed;
2. the saved stream volume should be restored after stream is commit.

Here correct these 2 items to fix the stream volume set issue.

Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/sst-haswell-ipc.c
sound/soc/intel/sst-haswell-ipc.h
sound/soc/intel/sst-haswell-pcm.c