Re: [PATCH v2] ALSA: intel8x0: keep AC97 PCM descriptors for ICH4 capture

From: Takashi Iwai

Date: Thu Nov 05 2026 - 02:51:18 EST


On Thu, 05 Nov 2026 02:46:42 +0100,
raoxu wrote:
>
> From: Xu Rao <raoxu@xxxxxxxxxxxxx>
>
> When S/PDIF uses the AC-link, spdif_idx is negative and the AC97
> PCM assignment drops its last descriptor. On ICH4 this leaves five
> entries, but PCM2IN and MIC2 still use entries four and five.
> Opening MIC2 then reads beyond the allocated descriptor array.
>
> Keep all six descriptors on ICH4 so the capture stream indices stay
> valid. The S/PDIF descriptor occupies its fixed position but does
> not create a separate hardware PCM when S/PDIF uses the AC-link.
> Other controller types retain their existing descriptor counts.
>
> Signed-off-by: Xu Rao <raoxu@xxxxxxxxxxxxx>

Applied now. Thanks.


Takashi