]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: hda/hdmi: set default audio parameters for KAE silent-stream
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 9 Dec 2022 10:18:21 +0000 (12:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:49 +0000 (13:26 +0100)
[ Upstream commit b17e7ea041d8b565063632501ca4597afd105102 ]

If the stream-id is zero, the keep-alive (KAE) will only ensure clock is
generated, but no audio samples are sent over display link. This happens
before first real audio stream is played out to a newly connected
receiver.

Reuse the code in silent_stream_enable() to set up stream parameters
to sane defaults values, also when using the newer keep-alive flow.

Fixes: 15175a4f2bbb ("ALSA: hda/hdmi: add keep-alive support for ADL-P and DG2")
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tested-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20221209101822.3893675-3-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/patch_hdmi.c

index 3655584fc37bb1fe2e7f517ee8e8548c1cff36c2..da5276e7eab138b5e7fa8926d13f33a1c0a9bae4 100644 (file)
@@ -1788,6 +1788,7 @@ static void silent_stream_enable(struct hda_codec *codec,
 
        switch (spec->silent_stream_type) {
        case SILENT_STREAM_KAE:
+               silent_stream_enable_i915(codec, per_pin);
                silent_stream_set_kae(codec, per_pin, true);
                break;
        case SILENT_STREAM_I915: