summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorIvan Orlov <ivan.orlov0322@gmail.com>2024-01-25 22:35:19 +0000
committerTakashi Iwai <tiwai@suse.de>2024-01-30 14:11:02 +0100
commitf7c4cb4a3f77867612b45c6327f80eac58a8ce65 (patch)
tree6c9625bd041976bf600e8e6ff5748e4448075f8d /sound
parentbe220d2e5544ff094142d263db5cf94d034b5e39 (diff)
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 <ivan.orlov0322@gmail.com> Link: https://lore.kernel.org/r/20240125223522.1122765-1-ivan.orlov0322@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/core/pcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index a09f0154e6a7..d0788126cbab 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -211,6 +211,10 @@ static const char * const snd_pcm_format_names[] = {
FORMAT(DSD_U32_LE),
FORMAT(DSD_U16_BE),
FORMAT(DSD_U32_BE),
+ FORMAT(S20_LE),
+ FORMAT(S20_BE),
+ FORMAT(U20_LE),
+ FORMAT(U20_BE),
};
/**