linux/sound/core/sound_kunit.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Sound core KUnit test
 * Author: Ivan Orlov <[email protected]>
 */

#include <kunit/test.h>
#include <sound/core.h>
#include <sound/pcm.h>

#define SILENCE_BUFFER_MAX_FRAMES
#define SILENCE_BUFFER_SIZE
#define SILENCE(...)
#define DEFINE_FORMAT(fmt, pbits, wd, endianness, signd, silence_arr)

#define WRONG_FORMAT_1
#define WRONG_FORMAT_2

#define VALID_NAME
#define NAME_W_SPEC_CHARS
#define NAME_W_SPACE
#define NAME_W_SPACE_REMOVED

#define TEST_FIRST_COMPONENT
#define TEST_SECOND_COMPONENT

struct snd_format_test_data {};

struct avail_test_data {};

static const struct snd_format_test_data valid_fmt[] =;

static void test_phys_format_size(struct kunit *test)
{}

static void test_format_width(struct kunit *test)
{}

static void test_format_signed(struct kunit *test)
{}

static void test_format_endianness(struct kunit *test)
{}

static void _test_fill_silence(struct kunit *test, const struct snd_format_test_data *data,
			       u8 *buffer, size_t samples_count)
{}

static void test_format_fill_silence(struct kunit *test)
{}

static snd_pcm_uframes_t calculate_boundary(snd_pcm_uframes_t buffer_size)
{}

static const struct avail_test_data p_avail_data[] =;

static void test_playback_avail(struct kunit *test)
{}

static const struct avail_test_data c_avail_data[] =;

static void test_capture_avail(struct kunit *test)
{}

static void test_card_set_id(struct kunit *test)
{}

static void test_pcm_format_name(struct kunit *test)
{}

static void test_card_add_component(struct kunit *test)
{}

static struct kunit_case sound_utils_cases[] =;

static struct kunit_suite sound_utils_suite =;

kunit_test_suite();
MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();