ALSA: hda/hdmi: add keep-alive support for ADL-P and DG2
PATCH v2 1/1 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").
--- sound/pci/hda/Kconfig | 19 ++--- sound/pci/hda/patch_hdmi.c | 157 +++++++++++++++++++++++++++---------- 2 files changed, 127 insertions(+), 49 deletions(-)
V1->V2:
- fix unbalance in snd_hda_power_up_pm()/snd_hda_power_down_pm()
sound/pci/hda/Kconfig +10 -9
@@ -285,15 +285,16 @@ config SND_HDA_INTEL_HDMI_SILENT_STREAM bool "Enable Silent Stream always for HDMI" depends on SND_HDA_INTEL help - Intel hardware has a feature called 'silent stream', that - keeps external HDMI receiver's analog circuitry powered on - avoiding 2-3 sec silence during playback start. This mechanism - relies on setting channel_id as 0xf, sending info packet and - preventing codec D3 entry (increasing platform static power - consumption when HDMI receiver is plugged-in). 2-3 sec silence - at the playback start is expected whenever there is format change. - (default is 2 channel format). - Say Y to enable Silent Stream feature. + Say Y to enable HD-Audio Keep Alive (KAE) aka Silent Stream + for HDMI on hardware that supports the feature. + + When enabled, the HDMI/DisplayPort codec will continue to provide + a continuous clock and a valid but silent data stream to + any connected external receiver. This allows to avoid gaps + at start of playback. Many receivers require multiple seconds + to start playing audio after the clock has been stopped. + This feature can impact power consumption as resources + are kept reserved both at transmitter and receiver. endif
sound/pci/hda/patch_hdmi.c +117 -40
240 lines not on this page · raw message
base-commit: ffef8d871491c18f64cf05f095740383785cd09a
Signature · 1 line
2.35.1
Takashi Iwai
AppliedQuoted 12 lines · Kai Vehmanen
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.
Quoted 6 lines
This patch depends on commit
112a87c48e83("drm/i915/display: program audio CDCLK-TS for keepalives").Signed-off-by Kai Vehmanen <[email protected]>Reviewed-by Pierre-Louis Bossart <[email protected]>Reviewed-by Jyri Sarha <[email protected]>
Thanks, applied now with a minor coding-style fix the checkpatch warned.
Takashi