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

Commit 595470a7 authored by Sergey Kibrik's avatar Sergey Kibrik Committed by Tomi Valkeinen
Browse files

OMAPDSS: gracefully disable overlay at error



Disable overlay via ovl->disable() interface, which will
properly set flags in cache and GO bits for managers.
This allows overlay user to re-enable it on next frame,
thus recovering from FIFO underflows.

Signed-off-by: default avatarSergey Kibrik <sergiikibrik@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent b0e449ce
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -360,8 +360,7 @@ static void dispc_error_worker(struct work_struct *work)
		if (bit & errors) {
			DSSERR("FIFO UNDERFLOW on %s, disabling the overlay\n",
					ovl->name);
			dispc_ovl_enable(ovl->id, false);
			dispc_mgr_go(ovl->manager->id);
			ovl->disable(ovl);
			msleep(50);
		}
	}