#include <sys/stat.h>
#include <sys/types.h>
+#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <linux/v4l2-subdev.h>
#include "mediactl.h"
-#include "v4l2subdev.h"
#include "tools.h"
+#include "v4l2subdev.h"
int v4l2_subdev_open(struct media_entity *entity)
{
*rect = u.sel.r;
return 0;
}
- if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL)
+ if (errno != ENOTTY || target != V4L2_SEL_TGT_CROP)
return -errno;
memset(&u.crop, 0, sizeof(u.crop));
*rect = u.sel.r;
return 0;
}
- if (errno != ENOTTY || target != V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL)
+ if (errno != ENOTTY || target != V4L2_SEL_TGT_CROP)
return -errno;
memset(&u.crop, 0, sizeof(u.crop));
return ret;
}
- ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_CROP_ACTUAL, &crop);
+ ret = set_selection(pad, V4L2_SEL_TGT_CROP, &crop);
if (ret < 0)
return ret;
- ret = set_selection(pad, V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL, &compose);
+ ret = set_selection(pad, V4L2_SEL_TGT_COMPOSE, &compose);
if (ret < 0)
return ret;