#include <kunit/test.h>
#include <linux/module.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <uapi/sound/asound.h>
static const struct { … } tdm_params_to_bclk_cases[] = …;
static void test_tdm_params_to_bclk_one(struct kunit *test,
unsigned int rate, snd_pcm_format_t fmt,
unsigned int channels,
unsigned int tdm_width, unsigned int tdm_slots,
unsigned int slot_multiple,
unsigned int expected_bclk)
{ … }
static void test_tdm_params_to_bclk(struct kunit *test)
{ … }
static void test_snd_soc_params_to_bclk_one(struct kunit *test,
unsigned int rate, snd_pcm_format_t fmt,
unsigned int channels,
unsigned int expected_bclk)
{ … }
static void test_snd_soc_params_to_bclk(struct kunit *test)
{ … }
static struct kunit_case soc_utils_test_cases[] = …;
static struct kunit_suite soc_utils_test_suite = …;
kunit_test_suites(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;