Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20fe0319 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[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: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 21a06542
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);