ASoC: Intel: Skylake: Reconfigure HDA stream register in prepare/resume
authorJeeja KP <jeeja.kp@intel.com>
Mon, 23 Nov 2015 16:56:24 +0000 (22:26 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 25 Nov 2015 17:55:41 +0000 (17:55 +0000)
commit7e3a17d311ca89a74cfd39e02e96d29d92849d34
treefe372a3e950ed898034f63fa75fec0267ed610c4
parenta92ea59b74e231cc0a969afa8d71fa314d5860f2
ASoC: Intel: Skylake: Reconfigure HDA stream register in prepare/resume

PCM prepare callbacks can be called multiple times. During S3
the stream registers will be reset when Controller is reset.
When stream is resumed, these stream registers needs to reconfigured.

This patch removes the check in prepare callback() if stream already
prepared, which will allow reconfiguring of stream registers and also
decouple stream when stream is resumed to route audio via DSP.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-pcm.c