mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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:
|
||
|---|---|---|
| .. | ||
| ct20k1reg.h | ||
| ct20k2reg.h | ||
| ctamixer.c | ||
| ctamixer.h | ||
| ctatc.c | ||
| ctatc.h | ||
| ctdaio.c | ||
| ctdaio.h | ||
| cthardware.c | ||
| cthardware.h | ||
| cthw20k1.c | ||
| cthw20k1.h | ||
| cthw20k2.c | ||
| cthw20k2.h | ||
| ctimap.c | ||
| ctimap.h | ||
| ctmixer.c | ||
| ctmixer.h | ||
| ctpcm.c | ||
| ctpcm.h | ||
| ctresource.c | ||
| ctresource.h | ||
| ctsrc.c | ||
| ctsrc.h | ||
| cttimer.c | ||
| cttimer.h | ||
| ctvmem.c | ||
| ctvmem.h | ||
| Makefile | ||
| xfi.c | ||