| /sound/soc/codecs/ |
| A D | cs-amp-lib-test.c | 103 kunit_activate_static_stub(test, in cs_amp_lib_test_cal_data_too_short_test() 146 kunit_activate_static_stub(test, in cs_amp_lib_test_cal_count_too_big_test() 173 kunit_activate_static_stub(test, in cs_amp_lib_test_no_cal_data_test() 232 KUNIT_EXPECT_EQ(test, ret, 0); in cs_amp_lib_test_get_efi_cal_by_uid_test() 267 KUNIT_EXPECT_EQ(test, ret, 0); in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test() 302 KUNIT_EXPECT_EQ(test, ret, 0); in cs_amp_lib_test_get_efi_cal_by_index_checked_test() 373 KUNIT_EXPECT_EQ(test, ret, 0); in cs_amp_lib_test_get_efi_cal_by_index_fallback_test() 550 KUNIT_EXPECT_EQ(test, in cs_amp_lib_test_get_efi_cal_empty_entry_test() 557 KUNIT_EXPECT_EQ(test, in cs_amp_lib_test_get_efi_cal_empty_entry_test() 655 test->priv = priv; in cs_amp_lib_test_case_init() [all …]
|
| A D | Kconfig | 366 without an explicit machine driver for test and development purposes. 784 tristate "KUnit test for Cirrus Logic cs-amp-lib" if !KUNIT_ALL_TESTS 1890 with a connector, in combination with a bus analyzer, or to test new
|
| /sound/core/ |
| A D | sound_kunit.c | 112 static void test_format_width(struct kunit *test) in test_format_width() argument 175 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buffer); in test_format_fill_silence() 212 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, r); in test_playback_avail() 216 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, r->status); in test_playback_avail() 217 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, r->control); in test_playback_avail() 240 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, r); in test_capture_avail() 244 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, r->status); in test_capture_avail() 245 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, r->control); in test_capture_avail() 259 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, card); in test_card_set_id() 271 kunit_info(test, "%s", card->id); in test_card_set_id() [all …]
|
| A D | Kconfig | 43 tristate "Sound core KUnit test" 48 This options enables the sound core functions KUnit test. 52 kernel devs running KUnit test harness and are not for inclusion
|
| /sound/soc/ |
| A D | soc-topology-test.c | 242 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_comp() 284 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_ops() 346 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_fw() 385 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg() 435 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_magic() 490 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_abi() 545 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_size() 600 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_payload_size() 654 kunit_comp->kunit = test; in snd_soc_tplg_test_load_pcm_tplg() 704 kunit_comp->kunit = test; in snd_soc_tplg_test_load_pcm_tplg_reload_comp() [all …]
|
| A D | soc-card-test.c | 34 struct soc_card_test_priv *priv = test->priv; in test_snd_soc_card_get_kcontrol() 41 KUNIT_ASSERT_EQ(test, ret, 0); in test_snd_soc_card_get_kcontrol() 58 KUNIT_EXPECT_NULL(test, kc); in test_snd_soc_card_get_kcontrol() 61 KUNIT_EXPECT_NULL(test, kc); in test_snd_soc_card_get_kcontrol() 64 KUNIT_EXPECT_NULL(test, kc); in test_snd_soc_card_get_kcontrol() 67 KUNIT_EXPECT_NULL(test, kc); in test_snd_soc_card_get_kcontrol() 70 static int soc_card_test_case_init(struct kunit *test) in soc_card_test_case_init() argument 75 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in soc_card_test_case_init() 79 test->priv = priv; in soc_card_test_case_init() 103 static void soc_card_test_case_exit(struct kunit *test) in soc_card_test_case_exit() argument [all …]
|
| A D | soc-ops-test.c | 68 struct kunit *test; member 392 priv->test = test; in soc_ops_test_init() 409 test->priv = priv; in soc_ops_test_init() 416 struct soc_ops_test_priv *priv = test->priv; in soc_ops_test_exit() 447 KUNIT_ASSERT_FALSE(test, ret); in soc_ops_test_info() 494 KUNIT_ASSERT_FALSE(test, ret); in soc_ops_test_access() 496 KUNIT_ASSERT_FALSE(test, ret); in soc_ops_test_access() 502 KUNIT_ASSERT_EQ(test, ret, param->ret); in soc_ops_test_access() 507 KUNIT_ASSERT_FALSE(test, ret); in soc_ops_test_access() 511 KUNIT_ASSERT_FALSE(test, ret); in soc_ops_test_access() [all …]
|
| A D | soc-utils-test.c | 118 static void test_tdm_params_to_bclk_one(struct kunit *test, in test_tdm_params_to_bclk_one() argument 141 KUNIT_ASSERT_EQ(test, expected_bclk, (unsigned int)got_bclk); in test_tdm_params_to_bclk_one() 144 static void test_tdm_params_to_bclk(struct kunit *test) in test_tdm_params_to_bclk() argument 149 test_tdm_params_to_bclk_one(test, in test_tdm_params_to_bclk() 162 test_tdm_params_to_bclk_one(test, in test_tdm_params_to_bclk() 173 static void test_snd_soc_params_to_bclk_one(struct kunit *test, in test_snd_soc_params_to_bclk_one() argument 193 KUNIT_ASSERT_EQ(test, expected_bclk, (unsigned int)got_bclk); in test_snd_soc_params_to_bclk_one() 196 static void test_snd_soc_params_to_bclk(struct kunit *test) in test_snd_soc_params_to_bclk() argument 210 test_snd_soc_params_to_bclk_one(test, in test_snd_soc_params_to_bclk()
|
| A D | Kconfig | 61 test cases against soc-topology.c API. This should be primarily used 62 by developers to test their changes to ASoC.
|
| /sound/hda/codecs/side-codecs/ |
| A D | cirrus_scodec_test.c | 130 KUNIT_ASSERT_EQ(test, 0, in cirrus_scodec_test_create_gpio() 136 KUNIT_ASSERT_NOT_NULL(test, priv->gpio_pdev); in cirrus_scodec_test_create_gpio() 140 KUNIT_ASSERT_EQ(test, 0, kunit_add_action_or_reset(test, in cirrus_scodec_test_create_gpio() 144 KUNIT_ASSERT_EQ(test, 0, kunit_platform_device_add(test, priv->gpio_pdev)); in cirrus_scodec_test_create_gpio() 202 KUNIT_ASSERT_NOT_NULL(test, refs); in cirrus_scodec_test_spkid_parse() 230 KUNIT_EXPECT_EQ_MSG(test, ret, v, in cirrus_scodec_test_spkid_parse() 244 KUNIT_EXPECT_EQ(test, ret, -ENOENT); in cirrus_scodec_test_no_spkid() 255 test->priv = priv; in cirrus_scodec_test_case_init() 258 cirrus_scodec_test_create_gpio(test); in cirrus_scodec_test_case_init() 262 KUNIT_ASSERT_NOT_NULL(test, priv->amp_dev); in cirrus_scodec_test_case_init() [all …]
|
| A D | Kconfig | 5 tristate "KUnit test for Cirrus side-codec library" if !KUNIT_ALL_TESTS
|
| /sound/soc/generic/ |
| A D | audio-graph-card2-custom-sample2.dtsi | 26 * - compatible = "test-cpu"; 27 * + compatible = "test-cpu-verbose"; 32 * - compatible = "test-codec"; 33 * + compatible = "test-codec-verbose"; 39 * because test-component driver (test-cpu/test-codec) is supporting 320 * - compatible = "test-cpu"; 321 * + compatible = "test-cpu-verbose"; 323 compatible = "test-cpu"; 346 * - compatible = "test-codec"; 347 * + compatible = "test-codec-verbose"; [all …]
|
| A D | audio-graph-card2-custom-sample1.dtsi | 26 * - compatible = "test-cpu"; 27 * + compatible = "test-cpu-verbose"; 32 * - compatible = "test-codec"; 33 * + compatible = "test-codec-verbose"; 39 * because test-component driver (test-cpu/test-codec) is supporting 336 * - compatible = "test-cpu"; 337 * + compatible = "test-cpu-verbose"; 339 compatible = "test-cpu"; 370 * - compatible = "test-codec"; 371 * + compatible = "test-codec-verbose"; [all …]
|
| A D | Kconfig | 41 This option enables test component sound driver support.
|
| /sound/soc/sof/ |
| A D | Kconfig | 222 tristate "SOF enable IPC flood test" 226 This option enables a separate client device for IPC flood test 227 which can be used to flood the DSP with test IPCs and gather stats 229 Say Y if you want to enable IPC flood test. 233 int "Number of IPC flood test clients" 238 Select the number of IPC flood test clients to be created. 246 crafted IPC messages to the DSP to test its robustness. 256 crafted IPC messages to the kernel to test its robustness against
|
| /sound/sparc/ |
| A D | cs4231.c | 1665 u32 test, csr; in sbus_dma_request() local 1674 test = APC_CDMA_READY; in sbus_dma_request() 1676 test = APC_PDMA_READY; in sbus_dma_request() 1677 if (!(csr & test)) in sbus_dma_request() 1680 test = APC_XINT_CNVA; in sbus_dma_request() 1682 test = APC_XINT_PNVA; in sbus_dma_request() 1683 if (!(csr & test)) in sbus_dma_request() 1696 u32 csr, test; in sbus_dma_prepare() local 1701 test = APC_GENL_INT | APC_PLAY_INT | APC_XINT_ENA | in sbus_dma_prepare() 1705 test = APC_GENL_INT | APC_CAPT_INT | APC_XINT_ENA | in sbus_dma_prepare() [all …]
|
| /sound/soc/intel/avs/boards/ |
| A D | Kconfig | 52 tristate "I2S test board" 54 This adds support for I2S test-board which can be used to verify
|
| /sound/usb/ |
| A D | mixer.c | 1278 int saved, test, check; in get_min_max_with_quirks() local 1282 test = saved; in get_min_max_with_quirks() 1283 if (test < cval->max) in get_min_max_with_quirks() 1284 test += cval->res; in get_min_max_with_quirks() 1286 test -= cval->res; in get_min_max_with_quirks() 1287 if (test < cval->min || test > cval->max || in get_min_max_with_quirks() 1288 snd_usb_set_cur_mix_value(cval, minchn, 0, test) || in get_min_max_with_quirks() 1293 if (test == check) in get_min_max_with_quirks()
|
| /sound/drivers/ |
| A D | Kconfig | 113 tristate "Virtual PCM test driver" 117 Say 'Y' or 'M' to include support for the Virtual PCM test driver.
|