ASoC: Intel: Skylake: Fix to turn off hdmi power on probe failure
authorSodhi, VunnyX <vunnyx.sodhi@intel.com>
Fri, 28 Oct 2016 11:29:41 +0000 (16:59 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 28 Oct 2016 16:29:09 +0000 (17:29 +0100)
commit7a5857c3c282c12a8bd0cfd2dd4a17a9252c2b4d
tree9fdbc6cbca57a287f29fe93a59a321f06964492a
parent6d13f62d931ba638e54ba56f3a7dd3080ffb485a
ASoC: Intel: Skylake: Fix to turn off hdmi power on probe failure

HDMI codec is required to be powered up before controller initialization
for successful enumeration of codec. If the probe fails it needs to be
powered off to balance the power state of HDMI codec.

This fix balances the reference count in the error path before turning
off the codec.

Reported-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Sodhi, VunnyX <vunnyx.sodhi@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c