ALSA: hda/hdmi: add keep-alive support for ADL-P and DG2
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 16 Feb 2022 17:24:05 +0000 (19:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Feb 2022 08:46:01 +0000 (09:46 +0100)
commit15175a4f2bbbcbadb1a40098b6dcff0467300e99
tree4fbed905e9f435114653082cacc7fdb9d1cc0c4d
parenta9f73b06ff913da374d257d933a1cf9bfbc84743
ALSA: hda/hdmi: add keep-alive support for ADL-P and DG2

Implement HDA keep alive (KAE) support for Intel display codecs. When no
audio stream is active, the display codec will provide a continuous clock
and a valid but silent audio stream to any connected HDMI/DP receiver.
Without this, upon starting a new playback stream, initial samples may be
lost as many receivers require time to initialize for new clock.

This is a new feature in Intel AlderLake-P display codec implementation
and replaces the Intel i915 silent-stream extension that has been used
on older hardware. Main benefit of the new method is that codec no longer
needs to be kept in D0 power state.

This patch depends on commit 112a87c48e83 ("drm/i915/display: program
audio CDCLK-TS for keepalives").

[ a minor coding-style fix by tiwai ]

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Jyri Sarha <jyri.sarha@intel.com>
Link: https://lore.kernel.org/r/20220216172405.3994959-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig
sound/pci/hda/patch_hdmi.c