overlay: Reset pipes on config failure
There can be frequent failures in pipe config on certain targets
owing to scare SMP blocks. In such cases, reset usage of all pipes;
forcibly configure them next time, even if params haven't changed;
Change-Id: I769513fc3513e292d9d9b7f126735841a7a8f493
diff --git a/liboverlay/overlayCtrlData.h b/liboverlay/overlayCtrlData.h
index 513ebb9..c3a7aa3 100644
--- a/liboverlay/overlayCtrlData.h
+++ b/liboverlay/overlayCtrlData.h
@@ -85,6 +85,7 @@
void dump() const;
/* Return the dump in the specified buffer */
void getDump(char *buf, size_t len);
+ void forceSet();
private:
// mdp ctrl struct(info e.g.)
@@ -224,6 +225,10 @@
mMdp.getDump(buf, len);
}
+inline void Ctrl::forceSet() {
+ mMdp.forceSet();
+}
+
inline Data::Data() {
mMdp.reset();
}