summaryrefslogtreecommitdiff
path: root/sound/core/sound_kunit.c
diff options
context:
space:
mode:
authorIvan Orlov <ivan.orlov0322@gmail.com>2024-01-26 01:35:20 +0300
committerTakashi Iwai <tiwai@suse.de>2024-01-30 16:11:29 +0300
commitd1eb913c8df4574df2861db03d2411023bd7930a (patch)
treee214c664acd56155571621f36c9615db0bf942f7 /sound/core/sound_kunit.c
parentf7c4cb4a3f77867612b45c6327f80eac58a8ce65 (diff)
downloadlinux-d1eb913c8df4574df2861db03d2411023bd7930a.tar.xz
ALSA: pcm: Fix snd_pcm_format_name function
Fix snd_pcm_format_name so it won't return NULL-pointer in case if it can't find the format in the 'snd_pcm_format_names' list. Return "Unknown" instead, as it is done if the number passed to the function is larger than a list size. Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com> Link: https://lore.kernel.org/r/20240125223522.1122765-2-ivan.orlov0322@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound_kunit.c')
0 files changed, 0 insertions, 0 deletions