ASoC: SOF: Intel: hda: Modify existing helper to disable WAKEEN
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 12 Jan 2021 18:11:24 +0000 (02:11 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Jan 2021 15:24:06 +0000 (15:24 +0000)
commit31ba0c0776027896553bd8477baff7c8b5d95699
tree4965560ece09925d950ab471504e971079c3ce91
parentbcd7059abc19e6ec5b2260dff6a008fb99c4eef9
ASoC: SOF: Intel: hda: Modify existing helper to disable WAKEEN

Modify hda_codec_jack_wake_enable() to also support disable WAKEEN.
In addition, this patch also moves the WAKEEN disablement call out of
hda_codec_jack_check() into hda_codec_jack_wake_enable().

This is a preparation for next patch.

No functional change intended.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20210112181128.1229827-2-kai.heng.feng@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-codec.c
sound/soc/sof/intel/hda-dsp.c
sound/soc/sof/intel/hda.h