Skip to content

Commit 2acf25f

Browse files
committed
ALSA: dummy: Fix PCM format loop in proc output
The loop termination for iterating over all formats should contain SNDRV_PCM_FORMAT_LAST, not less than it. Fixes: 9b151fe ("ALSA: dummy - Add debug proc file") Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent d8f4893 commit 2acf25f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/drivers/dummy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ static void print_formats(struct snd_dummy *dummy,
903903
{
904904
int i;
905905

906-
for (i = 0; i < SNDRV_PCM_FORMAT_LAST; i++) {
906+
for (i = 0; i <= SNDRV_PCM_FORMAT_LAST; i++) {
907907
if (dummy->pcm_hw.formats & (1ULL << i))
908908
snd_iprintf(buffer, " %s", snd_pcm_format_name(i));
909909
}

0 commit comments

Comments
 (0)