ASoC: hdac_hdmi: Register widget event handlers
authorJeeja KP <jeeja.kp@intel.com>
Tue, 24 Jan 2017 16:19:03 +0000 (21:49 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 24 Jan 2017 17:55:11 +0000 (17:55 +0000)
commitc9bfb5d74dd2a704bf3c622c6b268f6dc6f37ca6
tree2f32ad047fb56bf823a40bcd444ce59088a468ce
parentdbbc21bbf2c640dd148903e82f752c2f269fc58a
ASoC: hdac_hdmi: Register widget event handlers

In case of hdmi connect/disconnect or when stream need to be route to
multiple monitors, corresponding port and audio infoframe needs to be
reconfigured. Currently all the configuration are done in DAI ops which
results in silence playback.

So use dapm widget event handlers to program audio infoframe and enable
/disable port configuration when widget is power on/off.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c