Re: UBSAN: shift-out-of-bounds in sound/pci/ctxfi/cthw20k2.c:956:31

From: Karsten Hohmeier

Date: Sat Mar 28 2026 - 15:26:19 EST


Hello Takashi,

I applied your one-liner with the previous patch still in place.
The module loads and kernel boots without messages.
Since the one-liner seemed SPDIF related I also tested the optical in and out and it all works.

Idk if it is the hardware or just a quirky implementation, but the SPDIF-in is grouped together with the analog inputs and without enabling those AND turning up SPDIF-in in alsamixer I don't get anything.
But I think it has always been like this.

Thumbs up from me if you want to turn this into a proper patch again.

Regards

Karsten