diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-20 06:53:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 12:18:40 -0200 |
commit | 20fe0319de9aca71ba45e2f93c4a2a73dabde4da (patch) | |
tree | a48d313c4fc8cedefe9afe8aa2c4025cf3fbb44f | |
parent | 21a0654200f24208aadd7bdc80fcdec65d2eb64b (diff) | |
download | op-kernel-dev-20fe0319de9aca71ba45e2f93c4a2a73dabde4da.zip op-kernel-dev-20fe0319de9aca71ba45e2f93c4a2a73dabde4da.tar.gz |
[media] au0828: Fix the logic that enables the analog demoder link
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@osg.samsung.com>
-rw-r--r-- | drivers/media/usb/au0828/au0828-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/au0828/au0828-video.c b/drivers/media/usb/au0828/au0828-video.c index 57d7b9b..a1df4eb 100644 --- a/drivers/media/usb/au0828/au0828-video.c +++ b/drivers/media/usb/au0828/au0828-video.c @@ -642,7 +642,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 i, ret, active_links = 0; @@ -677,7 +677,7 @@ static int au0828_enable_analog_tuner(struct au0828_dev *dev) link = &source->links[i]; sink = link->sink->entity; - if (sink == entity) + if (sink == dev->decoder) flags = MEDIA_LNK_FL_ENABLED; ret = media_entity_setup_link(link, flags); |