mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
media: Properly pass through media entity types in entity enumeration
am: 719f1765b0
Change-Id: Ia9b9e295799255ca56ddf1dae49a6e372b5055a8
This commit is contained in:
@@ -130,7 +130,7 @@ static long media_device_enum_entities(struct media_device *mdev,
|
||||
* old range.
|
||||
*/
|
||||
if (ent->function < MEDIA_ENT_F_OLD_BASE ||
|
||||
ent->function > MEDIA_ENT_T_DEVNODE_UNKNOWN) {
|
||||
ent->function > MEDIA_ENT_F_TUNER) {
|
||||
if (is_media_entity_v4l2_subdev(ent))
|
||||
entd->type = MEDIA_ENT_F_V4L2_SUBDEV_UNKNOWN;
|
||||
else if (ent->function != MEDIA_ENT_F_IO_V4L)
|
||||
|
||||
Reference in New Issue
Block a user