Lines Matching refs:test_dev

22 static struct device *test_dev;  variable
30 test_dev = root_device_register("sound-soc-topology-test"); in snd_soc_tplg_test_init()
31 test_dev = get_device(test_dev); in snd_soc_tplg_test_init()
32 if (!test_dev) in snd_soc_tplg_test_init()
35 test_dev->driver = &test_drv; in snd_soc_tplg_test_init()
42 put_device(test_dev); in snd_soc_tplg_test_exit()
43 root_device_unregister(test_dev); in snd_soc_tplg_test_exit()
253 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_with_null_comp()
265 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component_null_comp, test_dev); in snd_soc_tplg_test_load_with_null_comp()
273 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_with_null_comp()
295 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_with_null_ops()
307 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_with_null_ops()
316 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_with_null_ops()
357 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_with_null_fw()
369 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component_null_fw, test_dev); in snd_soc_tplg_test_load_with_null_fw()
378 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_with_null_fw()
405 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_empty_tplg()
417 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_empty_tplg()
426 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_empty_tplg()
460 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_empty_tplg_bad_magic()
472 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_magic()
481 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_magic()
515 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_empty_tplg_bad_abi()
527 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_abi()
536 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_abi()
570 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_empty_tplg_bad_size()
582 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_size()
591 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_size()
626 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
638 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
645 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
674 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_pcm_tplg()
686 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_pcm_tplg()
692 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_pcm_tplg()
724 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_pcm_tplg_reload_comp()
737 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_pcm_tplg_reload_comp()
743 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_pcm_tplg_reload_comp()
776 kunit_comp->card.dev = test_dev, in snd_soc_tplg_test_load_pcm_tplg_reload_card()
784 ret = snd_soc_component_initialize(&kunit_comp->comp, &test_component, test_dev); in snd_soc_tplg_test_load_pcm_tplg_reload_card()
799 snd_soc_unregister_component(test_dev); in snd_soc_tplg_test_load_pcm_tplg_reload_card()