overlay: Reset allocation on all pipes, if commit fails.

If commit fails on a pipe, overlay hal needs to reset allocation
on all pipes for the given display. As MDP Comp fails, it falls
back to video and PipeBook logic does not pick-up those pipes on
which commit was successful. Driver sets new pipes and un-stages
previously set pipes (with same z-order). Pipe clean-up happens
and then in next round, PipeBook logic picks-up previous pipes
hence userspcae and driver remain out of sync.

Change-Id: I963fbdf89f346184688c5bcac2824606a5f7a0f2
diff --git a/liboverlay/overlay.cpp b/liboverlay/overlay.cpp
index 851422f..5341c90 100644
--- a/liboverlay/overlay.cpp
+++ b/liboverlay/overlay.cpp
@@ -132,6 +132,10 @@
         PipeBook::setUse((int)dest);
     } else {
         PipeBook::resetUse((int)dest);
+        int dpy = mPipeBook[index].mDisplay;
+        for(int i = 0; i < PipeBook::NUM_PIPES; i++)
+            if (mPipeBook[i].mDisplay == dpy)
+                PipeBook::resetAllocation(i);
     }
     return ret;
 }