From 1efb386db7afee91d21c952bfeca703e77930903 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Mon, 4 Jun 2018 23:55:14 +0900 Subject: configfs: add support for bFrameIndex Driver now supports bFrameIndex through configfs; enable reading this attribute from configfs. This is necessary to associate the correct bFrameIndexes with the UVC frame descriptors. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- configfs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/configfs.c b/configfs.c index f2d7a0a..1dfde95 100644 --- a/configfs.c +++ b/configfs.c @@ -496,12 +496,7 @@ static int configfs_parse_streaming_frame(const char *path, char *p; int ret = 0; - /* - * No driver support for bFrameIndex yet. - * - * ret = ret ? : attribute_read_uint(path, "bFrameIndex", &frame->index); - */ - + ret = ret ? : attribute_read_uint(path, "bFrameIndex", &frame->index); ret = ret ? : attribute_read_uint(path, "wWidth", &frame->width); ret = ret ? : attribute_read_uint(path, "wHeight", &frame->height); if (ret) -- cgit v1.2.3