[PATCH] au0828: Fix the logic that enables the analog demoder link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This logic was broken on the original patch, likely due to a
cut-and-paste mistake.

Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c
index a9087f05b29a..4511e2893282 100644
--- a/drivers/media/usb/au0828/au0828-video.c
+++ b/drivers/media/usb/au0828/au0828-video.c
@@ -641,7 +641,7 @@ static int au0828_enable_analog_tuner(struct au0828_dev *dev)
 {
 #ifdef CONFIG_MEDIA_CONTROLLER
 	struct media_device *mdev = dev->media_dev;
-	struct media_entity  *entity, *source;
+	struct media_entity *source;
 	struct media_link *link, *found_link = NULL;
 	int ret, active_links = 0;
 
@@ -674,7 +674,7 @@ static int au0828_enable_analog_tuner(struct au0828_dev *dev)
 
 		sink = link->sink->entity;
 
-		if (sink == entity)
+		if (sink == dev->decoder)
 			flags = MEDIA_LNK_FL_ENABLED;
 
 		ret = media_entity_setup_link(link, flags);
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux