mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: raoxu <raoxu@uniontech.com>
Cc: perex@perex.cz, tiwai@suse.com, kees@kernel.org,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda/ext: preserve PPLCCTL bits when clearing reset
Date: Thu, 13 Aug 2026 09:11:58 +0200	[thread overview]
Message-ID: <871pc2ze81.wl-tiwai@suse.de> (raw)
In-Reply-To: <43BB7930B0F07C09+20260813065524.1955696-1-raoxu@uniontech.com>

On Thu, 13 Aug 2026 08:55:24 +0200,
raoxu wrote:
> 
> From: Xu Rao <raoxu@uniontech.com>
> 
> snd_hdac_ext_stream_reset() polls PPLCCTL for STRST by masking the
> register value with AZX_PPLCCTL_STRST:
> 
> 	val = readl(...) & AZX_PPLCCTL_STRST;
> 
> The same masked value is then used when clearing STRST. Since val
> contains no bits other than STRST, clearing STRST from it always
> produces zero. The subsequent writel() therefore writes zero to the
> entire PPLCCTL register instead of clearing only the reset bit.
> 
> PPLCCTL contains other stream control fields, including the stream tag
> in AZX_PPLCCTL_STRM_MASK. Those fields must not be modified as a side
> effect of clearing stream reset.
> 
> Use snd_hdac_updatel() to clear STRST, matching the existing set-reset
> path and preserving all unrelated PPLCCTL bits.
> 
> Fixes: df203a4e46f4 ("ALSA: hdac_ext: add extended stream capabilities")
> Cc: stable@vger.kernel.org
> Signed-off-by: Xu Rao <raoxu@uniontech.com>

Applied to for-next branch.  Thanks.


Takashi

      reply	other threads:[~2026-08-13  7:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-13  6:55 raoxu
2026-08-13  7:11 ` 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=871pc2ze81.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=raoxu@uniontech.com \
    --cc=stable@vger.kernel.org \
    --cc=tiwai@suse.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

all inboxes | Powered by JetHome®