return 0;
}
-static int testEnumFormatsType(struct node *node, enum v4l2_buf_type type)
+static int testEnumFormatsType(struct node *node, unsigned type)
{
pixfmt_set &set = node->buftype_pixfmts[type];
struct v4l2_fmtdesc fmtdesc;
int testEnumFormats(struct node *node)
{
bool supported = false;
- int type;
+ unsigned type;
int ret;
for (type = 0; type <= V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; type++) {
- ret = testEnumFormatsType(node, (enum v4l2_buf_type)type);
+ ret = testEnumFormatsType(node, type);
if (ret && ret != ENOTTY)
return ret;
if (!ret)
return 0;
}
-static int testFormatsType(struct node *node, enum v4l2_buf_type type)
+static int testFormatsType(struct node *node, unsigned type)
{
pixfmt_set &set = node->buftype_pixfmts[type];
pixfmt_set *set_splane;
int ret;
for (type = 0; type <= V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; type++) {
- ret = testFormatsType(node, (enum v4l2_buf_type)type);
+ ret = testFormatsType(node, type);
if (ret && ret != ENOTTY)
return ret;
return supported ? 0 : ENOTTY;
}
-static int testSlicedVBICapType(struct node *node, enum v4l2_buf_type type)
+static int testSlicedVBICapType(struct node *node, unsigned type)
{
struct v4l2_sliced_vbi_cap cap;
bool sliced_type = (type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ||
return 0;
}
-static int testParmType(struct node *node, enum v4l2_buf_type type)
+static int testParmType(struct node *node, unsigned type)
{
struct v4l2_streamparm parm;
int ret;
int ret;
for (type = 0; type <= V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; type++) {
- ret = testParmType(node, (enum v4l2_buf_type)type);
+ ret = testParmType(node, type);
if (ret && ret != ENOTTY)
return ret;