]> Git Repo - linux.git/commitdiff
ALSA: hda/hdmi: set default audio parameters for KAE silent-stream
authorKai Vehmanen <[email protected]>
Fri, 9 Dec 2022 10:18:21 +0000 (12:18 +0200)
committerTakashi Iwai <[email protected]>
Fri, 9 Dec 2022 11:06:14 +0000 (12:06 +0100)
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 <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Tested-by: Rodrigo Vivi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/hda/patch_hdmi.c

index 48bb23745ed3976e6143707ceeb4c36cd52ec83f..f8e6ff7f8820973cff206285a5c9616123b4a8ca 100644 (file)
@@ -1738,6 +1738,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:
This page took 0.071003 seconds and 4 git commands to generate.