Repository navigation
Commit f4037b9
media: uvcvideo: Set unique vdev name based in type
[ Upstream commit e3f60e7 ]
All the entities must have a unique name. We can have a descriptive and
unique name by appending the function and the entity->id.
This is even resilent to multi chain devices.
Fixes v4l2-compliance:
Media Controller ioctls:
fail: v4l2-test-media.cpp(205): v2_entity_names_set.find(key) != v2_entity_names_set.end()
test MEDIA_IOC_G_TOPOLOGY: FAIL
fail: v4l2-test-media.cpp(394): num_data_links != num_links
test MEDIA_IOC_ENUM_ENTITIES/LINKS: FAIL
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent d934941 commit f4037b9
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2065 | 2065 | | |
2066 | 2066 | | |
2067 | 2067 | | |
| 2068 | + | |
2068 | 2069 | | |
2069 | 2070 | | |
2070 | 2071 | | |
| |||
2093 | 2094 | | |
2094 | 2095 | | |
2095 | 2096 | | |
| 2097 | + | |
2096 | 2098 | | |
2097 | 2099 | | |
2098 | 2100 | | |
| 2101 | + | |
2099 | 2102 | | |
2100 | 2103 | | |
2101 | 2104 | | |
| 2105 | + | |
2102 | 2106 | | |
2103 | 2107 | | |
2104 | 2108 | | |
2105 | | - | |
| 2109 | + | |
| 2110 | + | |
2106 | 2111 | | |
2107 | 2112 | | |
2108 | 2113 | | |
| |||
0 commit comments