[PATCH] ALSA: hda: Use readl() to read PPCTL register

From: Sreeraj S Kurup

Date: Sun Dec 06 2026 - 05:15:57 EST


The PPCTL register is a 32-bit register, but
snd_hdac_ext_stream_decouple_locked() currently uses readw()
to read it.

This reads only the lower 16 bits of the register. As a
result, PROCEN bits above bit 15 cannot be detected, causing
the function to incorrectly determine the stream decoupling
state on hardware that implements these bits.

Use readl() instead of readw() to read the full 32-bit
PPCTL register. This allows the function to correctly check
all implemented PROCEN bits across supported hardware
generations.

Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@xxxxxxxxx>
---
sound/hda/core/ext/stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/hda/core/ext/stream.c b/sound/hda/core/ext/stream.c
index 1f96e0484660..23fe9291c04d 100644
--- a/sound/hda/core/ext/stream.c
+++ b/sound/hda/core/ext/stream.c
@@ -143,7 +143,7 @@ void snd_hdac_ext_stream_decouple_locked(struct hdac_bus *bus,
u32 val;
int mask = AZX_PPCTL_PROCEN(hstream->index);

- val = readw(bus->ppcap + AZX_REG_PP_PPCTL) & mask;
+ val = readl(bus->ppcap + AZX_REG_PP_PPCTL) & mask;

if (decouple && !val)
snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, mask, mask);
--
2.55.0