Explorar o código

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: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Marek Szyprowski %!s(int64=9) %!d(string=hai) anos
pai
achega
ab14420125
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      drivers/gpu/drm/exynos/exynos_mixer.c

+ 3 - 0
drivers/gpu/drm/exynos/exynos_mixer.c

@@ -1167,6 +1167,9 @@ static int mixer_bind(struct device *dev, struct device *manager, void *data)
 		const uint32_t *formats;
 		const uint32_t *formats;
 		unsigned int fcount;
 		unsigned int fcount;
 
 
+		if (zpos == VP_DEFAULT_WIN && !ctx->vp_enabled)
+			continue;
+
 		if (zpos < VP_DEFAULT_WIN) {
 		if (zpos < VP_DEFAULT_WIN) {
 			formats = mixer_formats;
 			formats = mixer_formats;
 			fcount = ARRAY_SIZE(mixer_formats);
 			fcount = ARRAY_SIZE(mixer_formats);