diff options
| author | Paul Elder <paul.elder@ideasonboard.com> | 2018-06-04 23:55:14 +0900 | 
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-06-05 23:59:37 +0300 | 
| commit | 1efb386db7afee91d21c952bfeca703e77930903 (patch) | |
| tree | 51ca3d948b425619b16674740ae32e1e36490add | |
| parent | 9c2afb04a0883b1888b983773b9e22f89ca1b74c (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.c | 7 | 
1 files changed, 1 insertions, 6 deletions
| @@ -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) | 
