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)
commitb1a5039759cb7bfcb2157f28604dbda0bca58598
tree7dd42d39601c52b5393669b3d9261982b2e209b2
parent7079f785b50055a32b72eddcb7d9ba5688db24d0
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: 951894cf30f4 ("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