summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2018-06-04 23:55:14 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-05 23:59:37 +0300
commit1efb386db7afee91d21c952bfeca703e77930903 (patch)
tree51ca3d948b425619b16674740ae32e1e36490add
parent9c2afb04a0883b1888b983773b9e22f89ca1b74c (diff)
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 <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--configfs.c7
1 files changed, 1 insertions, 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)