From: Takashi Iwai <tiwai@suse.de>
To: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: linux-sound@vger.kernel.org, tiwai@suse.de,
peter.ujfalusi@linux.intel.com,
Uma Shankar <uma.shankar@intel.com>,
Alexander Kaplan <alexander.kaplan@sms-medipool.de>,
stable@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: codecs: hdmi: disable keep-alive before audio format change
Date: Thu, 16 Jul 2026 08:33:10 +0200 [thread overview]
Message-ID: <874ihzwijd.wl-tiwai@suse.de> (raw)
In-Reply-To: <20260715180610.1371243-1-kai.vehmanen@linux.intel.com>
On Wed, 15 Jul 2026 20:06:10 +0200,
Kai Vehmanen wrote:
>
> When a keep-alive (KAE) silent stream is active on an Intel HDMI/DP
> codec, opening a real PCM stream reprograms the converter format and the
> audio infoframe in snd_hda_hdmi_generic_pcm_prepare(). Part of that
> reprogramming - the converter channel count and the channel mapping in
> snd_hda_hdmi_setup_audio_infoframe() - is not safe to do while a
> keep-alive stream is active. This is most visible when switching to a
> multichannel PCM configuration, where the active channel count actually
> changes. In that case the newly opened PCM stream plays no sound.
>
> Add an optional hdmi_ops .prepare hook, called at the start of the
> PCM prepare sequence (before the format and infoframe are touched), and
> implement it for HSW+ to release keep-alive. Keep-alive is then
> re-enabled as before once the new stream has been set up, in the
> setup_stream op.
>
> Fixes: 15175a4f2bbb ("ALSA: hda/hdmi: add keep-alive support for ADL-P and DG2")
> Reported-by: Alexander Kaplan <alexander.kaplan@sms-medipool.de>
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/8412
> Tested-by: Alexander Kaplan <alexander.kaplan@sms-medipool.de>
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Applied now. Thanks.
Takashi
prev parent reply other threads:[~2026-07-16 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 18:06 [PATCH] ALSA: hda: codecs: hdmi: disable keep-alive before audio format change Kai Vehmanen
2026-07-16 6:33 ` Takashi Iwai [this message]
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=874ihzwijd.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alexander.kaplan@sms-medipool.de \
--cc=kai.vehmanen@linux.intel.com \
--cc=linux-sound@vger.kernel.org \
--cc=peter.ujfalusi@linux.intel.com \
--cc=stable@vger.kernel.org \
--cc=uma.shankar@intel.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox