From: Kai Vehmanen <kai.vehmanen@linux.intel.com> To: alsa-devel@alsa-project.org, tiwai@suse.de Cc: intel-gfx@lists.freedesktop.org, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com> Subject: [Intel-gfx] [PATCH v2 2/3] ALSA: hda/hdmi: set default audio parameters for KAE silent-stream Date: Fri, 9 Dec 2022 12:18:21 +0200 [thread overview] Message-ID: <20221209101822.3893675-3-kai.vehmanen@linux.intel.com> (raw) In-Reply-To: <20221209101822.3893675-1-kai.vehmanen@linux.intel.com> 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> --- sound/pci/hda/patch_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 48bb23745ed3..f8e6ff7f8820 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -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: -- 2.38.1
WARNING: multiple messages have this Message-ID (diff)
From: Kai Vehmanen <kai.vehmanen@linux.intel.com> To: alsa-devel@alsa-project.org, tiwai@suse.de Cc: intel-gfx@lists.freedesktop.org, Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>, kai.vehmanen@linux.intel.com, Rodrigo Vivi <rodrigo.vivi@intel.com> Subject: [PATCH v2 2/3] ALSA: hda/hdmi: set default audio parameters for KAE silent-stream Date: Fri, 9 Dec 2022 12:18:21 +0200 [thread overview] Message-ID: <20221209101822.3893675-3-kai.vehmanen@linux.intel.com> (raw) In-Reply-To: <20221209101822.3893675-1-kai.vehmanen@linux.intel.com> 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> --- sound/pci/hda/patch_hdmi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 48bb23745ed3..f8e6ff7f8820 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -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: -- 2.38.1
next prev parent reply other threads:[~2022-12-09 10:19 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-09 10:18 [Intel-gfx] [PATCH v2 0/3] ALSA: hda/hdmi: i915 keepalive fixes Kai Vehmanen 2022-12-09 10:18 ` Kai Vehmanen 2022-12-09 10:18 ` [Intel-gfx] [PATCH v2 1/3] ALSA: hda/hdmi: fix i915 silent stream programming flow Kai Vehmanen 2022-12-09 10:18 ` Kai Vehmanen 2022-12-09 10:18 ` Kai Vehmanen [this message] 2022-12-09 10:18 ` [PATCH v2 2/3] ALSA: hda/hdmi: set default audio parameters for KAE silent-stream Kai Vehmanen 2022-12-09 10:18 ` [Intel-gfx] [PATCH v2 3/3] ALSA: hda/hdmi: fix stream-id config keep-alive for rt suspend Kai Vehmanen 2022-12-09 10:18 ` Kai Vehmanen 2022-12-09 11:05 ` [Intel-gfx] ✓ Fi.CI.BAT: success for ALSA: hda/hdmi: i915 keepalive fixes (rev2) Patchwork 2022-12-09 11:07 ` [Intel-gfx] [PATCH v2 0/3] ALSA: hda/hdmi: i915 keepalive fixes Takashi Iwai 2022-12-09 11:07 ` Takashi Iwai 2022-12-09 18:11 ` [Intel-gfx] ✓ Fi.CI.IGT: success for ALSA: hda/hdmi: i915 keepalive fixes (rev2) Patchwork
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221209101822.3893675-3-kai.vehmanen@linux.intel.com \ --to=kai.vehmanen@linux.intel.com \ --cc=alsa-devel@alsa-project.org \ --cc=intel-gfx@lists.freedesktop.org \ --cc=pierre-louis.bossart@linux.intel.com \ --cc=rodrigo.vivi@intel.com \ --cc=tiwai@suse.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.