projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be220d2
)
ALSA: pcm: Add missing formats to formats list
author
Ivan Orlov
<ivan.orlov0322@gmail.com>
Thu, 25 Jan 2024 22:35:19 +0000
(22:35 +0000)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 30 Jan 2024 13:11:02 +0000
(14:11 +0100)
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>
sound/core/pcm.c
patch
|
blob
|
history
diff --git
a/sound/core/pcm.c
b/sound/core/pcm.c
index a09f0154e6a7029c72fb3f0d6d8bd36f202b72c8..d0788126cbab10a2ef8daaab9201f366f27d8c63 100644
(file)
--- 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),
};
/**