Home
last modified time | relevance | path

Searched refs:audioout (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_ENUMAUDOUT.c46 struct v4l2_audioout audioout; in test_VIDIOC_ENUMAUDOUT() local
52 memset(&audioout, 0xff, sizeof(audioout)); in test_VIDIOC_ENUMAUDOUT()
53 audioout.index = i; in test_VIDIOC_ENUMAUDOUT()
54 ret_enum = ioctl(get_video_fd(), VIDIOC_ENUMAUDOUT, &audioout); in test_VIDIOC_ENUMAUDOUT()
62 CU_ASSERT_EQUAL(audioout.index, i); in test_VIDIOC_ENUMAUDOUT()
64 CU_ASSERT(0 < strlen((char *)audioout.name)); in test_VIDIOC_ENUMAUDOUT()
66 ((char *)audioout.name, in test_VIDIOC_ENUMAUDOUT()
67 sizeof(audioout.name))); in test_VIDIOC_ENUMAUDOUT()
71 CU_ASSERT_EQUAL(audioout.reserved[0], 0); in test_VIDIOC_ENUMAUDOUT()
72 CU_ASSERT_EQUAL(audioout.reserved[1], 0); in test_VIDIOC_ENUMAUDOUT()
[all …]
Dtest_VIDIOC_AUDOUT.c54 struct v4l2_audioout audioout; in test_VIDIOC_G_AUDOUT() local
57 memset(&audioout, 0xff, sizeof(audioout)); in test_VIDIOC_G_AUDOUT()
58 ret_get = ioctl(get_video_fd(), VIDIOC_G_AUDOUT, &audioout); in test_VIDIOC_G_AUDOUT()
69 CU_ASSERT(0 < strlen((char *)audioout.name)); in test_VIDIOC_G_AUDOUT()
71 ((char *)audioout.name, sizeof(audioout.name))); in test_VIDIOC_G_AUDOUT()
73 CU_ASSERT_EQUAL(audioout.capability, 0); in test_VIDIOC_G_AUDOUT()
74 CU_ASSERT_EQUAL(audioout.mode, 0); in test_VIDIOC_G_AUDOUT()
76 CU_ASSERT_EQUAL(audioout.reserved[0], 0); in test_VIDIOC_G_AUDOUT()
77 CU_ASSERT_EQUAL(audioout.reserved[1], 0); in test_VIDIOC_G_AUDOUT()
84 audioout2.index = audioout.index; in test_VIDIOC_G_AUDOUT()
[all …]