Example #1
0
static int process_request(Request *req)
{
	APP_INFO("Process Request ID [%d]\n", (int)req->id);

	switch (req->id) {
	case REQ_GET_PARAM:
		do_get_param(req);
		break;
	case REQ_SET_PARAM:
		do_set_param(req);
		break;
	case REQ_AAA_CONTROL:
		do_aaa_control(req);
		break;
	default:
		APP_PRINTF("Unknown request id [%d]\n", (int)req->id);
		break;
	}
	return 0;
}
void test_VIDIOC_G_PARM() {
	do_get_param(V4L2_BUF_TYPE_VIDEO_CAPTURE);
	do_get_param(V4L2_BUF_TYPE_VIDEO_OUTPUT);
	do_get_param(V4L2_BUF_TYPE_PRIVATE);
}