diff options
author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2024-01-26 01:35:21 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-01-30 16:11:37 +0300 |
commit | 3e39acf56ededdebd1033349a16b704839b94b28 (patch) | |
tree | 00475f236e209be978ffe191a8dcac06918a9050 /sound/core/isadma.c | |
parent | d1eb913c8df4574df2861db03d2411023bd7930a (diff) | |
download | linux-3e39acf56ededdebd1033349a16b704839b94b28.tar.xz |
ALSA: core: Add sound core KUnit test
At the moment, we have a decent amount of integration tests (selftests)
covering different aspects of the sound subsystem. However, a lot of
of sound-related in-kernel functions remains uncovered. This patch
introduces the KUnit test for the core part of the sound subsystem.
It includes 10 test cases:
- Coverage of the format-related inline functions from 'pcm.h' header
file: snd_pcm_format_physical_width, snd_pcm_format_width,
snd_pcm_format_signed, test_format_endianness
- Coverage of the available bytes counting functions from 'pcm.h'
header: snd_pcm_capture_avail, snd_pcm_playback_avail
- Coverage of functions from pcm_misc: snd_pcm_format_set_silence,
snd_pcm_format_name
- Coverage of card-related functions from init.c: snd_card_set_id,
snd_component_add
This patch depends on the previous patches in this patch series as they
contain fix for the bug, which was found during the test development.
Without them, the test doesn't pass.
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20240125223522.1122765-3-ivan.orlov0322@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/isadma.c')
0 files changed, 0 insertions, 0 deletions