linux/sound/pci/ctxfi
Harin Lee 7d61662197 ALSA: ctxfi: Add fallback to default RSR for S/PDIF
spdif_passthru_playback_get_resources() uses atc->pll_rate as the RSR
for the MSR calculation loop. However, pll_rate is only updated in
atc_pll_init() and not in hw_pll_init(), so it remains 0 after the
card init.

When spdif_passthru_playback_setup() skips atc_pll_init() for
32000 Hz, (rsr * desc.msr) always becomes 0, causing the loop to spin
indefinitely.

Add fallback to use atc->rsr when atc->pll_rate is 0. This reflects
the hardware state, since hw_card_init() already configures the PLL
to the default RSR.

Fixes: 8cc7236148 ("ALSA: SB X-Fi driver merge")
Cc: stable@vger.kernel.org
Signed-off-by: Harin Lee <me@harin.net>
Link: https://patch.msgid.link/20260406074913.217374-1-me@harin.net
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-04-06 10:46:13 +02:00
..
ct20k1reg.h
ct20k2reg.h
ctamixer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ctamixer.h
ctatc.c ALSA: ctxfi: Add fallback to default RSR for S/PDIF 2026-04-06 10:46:13 +02:00
ctatc.h ALSA: ctxfi: Add support for dedicated RCA switching 2025-11-25 08:02:16 +01:00
ctdaio.c ALSA: ctxfi: Use correct DAIO type for da_desc 2026-04-01 14:43:54 +02:00
ctdaio.h ALSA: ctxfi: Rename SPDIFI1 to SPDIFI_BAY 2026-04-01 14:43:54 +02:00
cthardware.c
cthardware.h ALSA: ctxfi: Add support for Onkyo SE-300PCIE (OK0010) 2025-11-25 08:02:16 +01:00
cthw20k1.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cthw20k1.h
cthw20k2.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cthw20k2.h
ctimap.c
ctimap.h
ctmixer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ctmixer.h
ctpcm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ctpcm.h
ctresource.c
ctresource.h
ctsrc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ctsrc.h
cttimer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cttimer.h
ctvmem.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ctvmem.h ALSA: ctxfi: Limit PTP to a single page 2026-04-06 10:44:47 +02:00
Makefile ALSA: pci: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:37 +02:00
xfi.c ALSA: ctxfi: Replace deprecated strcpy() with strscpy() 2025-06-09 09:53:30 +02:00