Skip to content

Commit f7c4cb4

Browse files
ivanorlov2206tiwai
authored andcommitted
ALSA: pcm: Add missing formats to formats list
Add 4 missing formats to 'snd_pcm_format_names' array in order to be able to get their names with 'snd_pcm_format_name' function. Signed-off-by: Ivan Orlov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent be220d2 commit f7c4cb4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/core/pcm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ static const char * const snd_pcm_format_names[] = {
211211
FORMAT(DSD_U32_LE),
212212
FORMAT(DSD_U16_BE),
213213
FORMAT(DSD_U32_BE),
214+
FORMAT(S20_LE),
215+
FORMAT(S20_BE),
216+
FORMAT(U20_LE),
217+
FORMAT(U20_BE),
214218
};
215219

216220
/**

0 commit comments

Comments
 (0)