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

Commit ab144201 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Inki Dae
Browse files

drm/exynos: mixer: enable video overlay plane only when VP is available



Video overlay plane should be registered only when suitable hardware
sub-block (Video Processor) is available.

Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 2ee35d8b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1167,6 +1167,9 @@ static int mixer_bind(struct device *dev, struct device *manager, void *data)
		const uint32_t *formats;
		unsigned int fcount;

		if (zpos == VP_DEFAULT_WIN && !ctx->vp_enabled)
			continue;

		if (zpos < VP_DEFAULT_WIN) {
			formats = mixer_formats;
			fcount = ARRAY_SIZE(mixer_formats);