ALSA: hda/hdmi: fix silent stream for first playback to DP
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Thu, 10 Dec 2020 17:44:45 +0000 (19:44 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2020 18:57:21 +0000 (19:57 +0100)
commit7a2374461afb2ac6ba985ea68ad5253f3ac764fa
tree7dd42d39601c52b5393669b3d9261982b2e209b2
parent95d8e47c65199f6b8b5b7a9ecf6d9fdebca79dbb
ALSA: hda/hdmi: fix silent stream for first playback to DP

A problem exists in enabling silent stream when connection type is
DisplayPort. Silent stream programming is completed when a new DP
receiver is connected, but infoframe transmission does not actually
start until PCM is opened for the first time. This can result in audible
gap of multiple seconds. This only affects the first PCM open.

Fix the issue by properly assigning a converter to the silent stream,
and modifying the required stream ID programming sequence.

This change only affects Intel display audio codecs.

BugLink: https://github.com/thesofproject/linux/issues/2468
Fixes: d6857645c0cb ("ALSA: hda/hdmi: Add Intel silent stream support")
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20201210174445.3134104-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c