]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aplay: add missing break before the default case master
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 16 Dec 2025 13:55:54 +0000 (21:55 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Dec 2025 14:09:02 +0000 (15:09 +0100)
Add the break before the default case back. Otherwise, all cases will
fall into the default/error case.

Closes: https://github.com/alsa-project/alsa-utils/pull/315
Fixes: e78583ab7cde ("aplay: reorganize format handling in begin_wave()")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c

index 63a5214d5b4b04baaae9ef2dabcebf404075ee71..737d0878fc5c978fdd160858fcfe6ac4d2431b63 100644 (file)
@@ -2731,6 +2731,7 @@ static void begin_wave(int fd, size_t cnt)
        case SND_PCM_FORMAT_S32_LE:
        case SND_PCM_FORMAT_FLOAT_LE:
        case SND_PCM_FORMAT_S24_3LE:
+               break;
        default:
 _format:
                error(_("Wave doesn't support %s format..."), snd_pcm_format_name(hwparams.format));