[PATCH 6.17 503/507] ALSA: dice: fix buffer overflow in detect_stream_formats()