media: Properly pass through media entity types in entity enumeration

am: 719f1765b0

Change-Id: Ia9b9e295799255ca56ddf1dae49a6e372b5055a8
This commit is contained in:
Sakari Ailus
2017-03-12 08:13:29 +00:00
committed by android-build-merger

View File

@@ -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)