blob: b095e9eba49649a1c086d7c9e019e5b952f79935 [file] [log] [blame]
Naseer Ahmed29a26812012-06-14 00:56:20 -07001/*
Sushil Chauhan07a2c762013-03-06 15:36:49 -08002* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
Naseer Ahmed29a26812012-06-14 00:56:20 -07003*
4* Redistribution and use in source and binary forms, with or without
5* modification, are permitted provided that the following conditions are
6* met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above
10* copyright notice, this list of conditions and the following
11* disclaimer in the documentation and/or other materials provided
12* with the distribution.
Naseer Ahmed758bfc52012-11-28 17:02:08 -050013* * Neither the name of The Linux Foundation nor the names of its
Naseer Ahmed29a26812012-06-14 00:56:20 -070014* contributors may be used to endorse or promote products derived
15* from this software without specific prior written permission.
16*
17* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
18* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
20* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
21* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*/
29
Naseer Ahmed29a26812012-06-14 00:56:20 -070030#include "overlay.h"
Naseer Ahmed758bfc52012-11-28 17:02:08 -050031#include "pipes/overlayGenPipe.h"
32#include "mdp_version.h"
Saurabh Shah5daeee52013-01-23 16:52:26 +080033#include "qdMetaData.h"
Naseer Ahmed29a26812012-06-14 00:56:20 -070034
Naseer Ahmed758bfc52012-11-28 17:02:08 -050035#define PIPE_DEBUG 0
Naseer Ahmed29a26812012-06-14 00:56:20 -070036
37namespace overlay {
Naseer Ahmed758bfc52012-11-28 17:02:08 -050038using namespace utils;
Naseer Ahmed29a26812012-06-14 00:56:20 -070039
Naseer Ahmed758bfc52012-11-28 17:02:08 -050040Overlay::Overlay() {
Sushil Chauhan07a2c762013-03-06 15:36:49 -080041 PipeBook::NUM_PIPES = qdutils::MDPVersion::getInstance().getTotalPipes();
Naseer Ahmed758bfc52012-11-28 17:02:08 -050042 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
43 mPipeBook[i].init();
Naseer Ahmed1ddf3662012-07-31 19:14:18 -070044 }
Naseer Ahmed1ddf3662012-07-31 19:14:18 -070045
Naseer Ahmed758bfc52012-11-28 17:02:08 -050046 mDumpStr[0] = '\0';
Naseer Ahmed29a26812012-06-14 00:56:20 -070047}
48
49Overlay::~Overlay() {
Naseer Ahmed758bfc52012-11-28 17:02:08 -050050 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
51 mPipeBook[i].destroy();
52 }
Naseer Ahmed29a26812012-06-14 00:56:20 -070053}
54
Naseer Ahmed758bfc52012-11-28 17:02:08 -050055void Overlay::configBegin() {
56 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
57 //Mark as available for this round.
58 PipeBook::resetUse(i);
59 PipeBook::resetAllocation(i);
60 }
Saurabh Shah784e9852013-08-21 16:51:21 -070061 sForceSetBitmap = 0;
Naseer Ahmed758bfc52012-11-28 17:02:08 -050062 mDumpStr[0] = '\0';
63}
64
65void Overlay::configDone() {
Naseer Ahmed758bfc52012-11-28 17:02:08 -050066 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
67 if(PipeBook::isNotUsed(i)) {
68 //Forces UNSET on pipes, flushes rotator memory and session, closes
69 //fds
70 if(mPipeBook[i].valid()) {
71 char str[32];
Saurabh Shahaf5f5972013-07-30 13:56:35 -070072 sprintf(str, "Unset=%s dpy=%d mix=%d; ",
73 PipeBook::getDestStr((eDest)i),
74 mPipeBook[i].mDisplay, mPipeBook[i].mMixer);
Saurabh Shah9dc88fc2013-07-15 16:02:30 -070075#if PIPE_DEBUG
Naseer Ahmed758bfc52012-11-28 17:02:08 -050076 strncat(mDumpStr, str, strlen(str));
Saurabh Shah9dc88fc2013-07-15 16:02:30 -070077#endif
Naseer Ahmed758bfc52012-11-28 17:02:08 -050078 }
79 mPipeBook[i].destroy();
Naseer Ahmed1ddf3662012-07-31 19:14:18 -070080 }
Naseer Ahmed29a26812012-06-14 00:56:20 -070081 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -050082 dump();
83 PipeBook::save();
84}
85
Saurabh Shahaf5f5972013-07-30 13:56:35 -070086eDest Overlay::nextPipe(eMdpPipeType type, int dpy, int mixer) {
Naseer Ahmed758bfc52012-11-28 17:02:08 -050087 eDest dest = OV_INVALID;
88
89 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
Saurabh Shahaf5f5972013-07-30 13:56:35 -070090 if( (type == OV_MDP_PIPE_ANY || //Pipe type match
91 type == PipeBook::getPipeType((eDest)i)) &&
92 (mPipeBook[i].mDisplay == DPY_UNUSED || //Free or same display
93 mPipeBook[i].mDisplay == dpy) &&
94 (mPipeBook[i].mMixer == MIXER_UNUSED || //Free or same mixer
95 mPipeBook[i].mMixer == mixer) &&
96 PipeBook::isNotAllocated(i) && //Free pipe
97 !(sDMAMode == DMA_BLOCK_MODE && //DMA pipe in Line mode
98 PipeBook::getPipeType((eDest)i) == OV_MDP_PIPE_DMA)) {
99 dest = (eDest)i;
100 PipeBook::setAllocation(i);
101 break;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500102 }
103 }
104
105 if(dest != OV_INVALID) {
106 int index = (int)dest;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500107 mPipeBook[index].mDisplay = dpy;
Saurabh Shahaf5f5972013-07-30 13:56:35 -0700108 mPipeBook[index].mMixer = mixer;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500109 if(not mPipeBook[index].valid()) {
110 mPipeBook[index].mPipe = new GenericPipe(dpy);
111 char str[32];
Saurabh Shahaf5f5972013-07-30 13:56:35 -0700112 snprintf(str, 32, "Set=%s dpy=%d mix=%d; ",
113 PipeBook::getDestStr(dest), dpy, mixer);
Saurabh Shah9dc88fc2013-07-15 16:02:30 -0700114#if PIPE_DEBUG
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500115 strncat(mDumpStr, str, strlen(str));
Saurabh Shah9dc88fc2013-07-15 16:02:30 -0700116#endif
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500117 }
118 } else {
Saurabh Shahaf5f5972013-07-30 13:56:35 -0700119 ALOGD_IF(PIPE_DEBUG, "Pipe unavailable type=%d display=%d mixer=%d",
120 (int)type, dpy, mixer);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500121 }
122
123 return dest;
124}
125
Saurabh Shah0ceeb6a2013-04-23 10:46:07 -0700126bool Overlay::isPipeTypeAttached(eMdpPipeType type) {
127 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
128 if(type == PipeBook::getPipeType((eDest)i) &&
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700129 mPipeBook[i].mDisplay != DPY_UNUSED) {
Saurabh Shah0ceeb6a2013-04-23 10:46:07 -0700130 return true;
131 }
132 }
133 return false;
134}
135
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500136bool Overlay::commit(utils::eDest dest) {
137 bool ret = false;
138 int index = (int)dest;
139 validate(index);
140
141 if(mPipeBook[index].mPipe->commit()) {
142 ret = true;
143 PipeBook::setUse((int)dest);
Saurabh Shah784e9852013-08-21 16:51:21 -0700144 if(sForceSetBitmap & (1 << mPipeBook[index].mDisplay)) {
145 mPipeBook[index].mPipe->forceSet();
146 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500147 } else {
Sushil Chauhane0dff932013-03-01 14:33:18 -0800148 int dpy = mPipeBook[index].mDisplay;
149 for(int i = 0; i < PipeBook::NUM_PIPES; i++)
Saurabh Shahdf0be752013-05-23 14:40:00 -0700150 if (mPipeBook[i].mDisplay == dpy) {
Sushil Chauhane0dff932013-03-01 14:33:18 -0800151 PipeBook::resetAllocation(i);
Saurabh Shahdf0be752013-05-23 14:40:00 -0700152 PipeBook::resetUse(i);
153 if(mPipeBook[i].valid()) {
154 mPipeBook[i].mPipe->forceSet();
155 }
156 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500157 }
158 return ret;
Naseer Ahmed29a26812012-06-14 00:56:20 -0700159}
160
Naseer Ahmedf48aef62012-07-20 09:05:53 -0700161bool Overlay::queueBuffer(int fd, uint32_t offset,
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500162 utils::eDest dest) {
163 int index = (int)dest;
164 bool ret = false;
165 validate(index);
166 //Queue only if commit() has succeeded (and the bit set)
167 if(PipeBook::isUsed((int)dest)) {
168 ret = mPipeBook[index].mPipe->queueBuffer(fd, offset);
Naseer Ahmed29a26812012-06-14 00:56:20 -0700169 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500170 return ret;
Naseer Ahmed29a26812012-06-14 00:56:20 -0700171}
172
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500173void Overlay::setCrop(const utils::Dim& d,
174 utils::eDest dest) {
175 int index = (int)dest;
176 validate(index);
177 mPipeBook[index].mPipe->setCrop(d);
Naseer Ahmed29a26812012-06-14 00:56:20 -0700178}
Naseer Ahmedf48aef62012-07-20 09:05:53 -0700179
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500180void Overlay::setPosition(const utils::Dim& d,
181 utils::eDest dest) {
182 int index = (int)dest;
183 validate(index);
184 mPipeBook[index].mPipe->setPosition(d);
185}
186
187void Overlay::setTransform(const int orient,
188 utils::eDest dest) {
189 int index = (int)dest;
190 validate(index);
191
Naseer Ahmedf48aef62012-07-20 09:05:53 -0700192 utils::eTransform transform =
193 static_cast<utils::eTransform>(orient);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500194 mPipeBook[index].mPipe->setTransform(transform);
Naseer Ahmedf48aef62012-07-20 09:05:53 -0700195
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500196}
197
198void Overlay::setSource(const utils::PipeArgs args,
199 utils::eDest dest) {
200 int index = (int)dest;
201 validate(index);
202
203 PipeArgs newArgs(args);
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800204 if(PipeBook::getPipeType(dest) == OV_MDP_PIPE_VG) {
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500205 setMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_SHARE);
206 } else {
207 clearMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_SHARE);
Naseer Ahmed29a26812012-06-14 00:56:20 -0700208 }
Jeykumar Sankaranb551ce42013-01-10 16:26:48 -0800209
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800210 if(PipeBook::getPipeType(dest) == OV_MDP_PIPE_DMA) {
Jeykumar Sankaranb551ce42013-01-10 16:26:48 -0800211 setMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_FORCE_DMA);
212 } else {
213 clearMdpFlags(newArgs.mdpFlags, OV_MDP_PIPE_FORCE_DMA);
214 }
215
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500216 mPipeBook[index].mPipe->setSource(newArgs);
Naseer Ahmed29a26812012-06-14 00:56:20 -0700217}
Naseer Ahmedf48aef62012-07-20 09:05:53 -0700218
Saurabh Shah5daeee52013-01-23 16:52:26 +0800219void Overlay::setVisualParams(const MetaData_t& metadata, utils::eDest dest) {
220 int index = (int)dest;
221 validate(index);
222 mPipeBook[index].mPipe->setVisualParams(metadata);
223}
224
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500225Overlay* Overlay::getInstance() {
226 if(sInstance == NULL) {
227 sInstance = new Overlay();
Naseer Ahmed29a26812012-06-14 00:56:20 -0700228 }
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500229 return sInstance;
Saurabh Shahc4d034f2012-09-27 15:55:15 -0700230}
231
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800232// Clears any VG pipes allocated to the fb devices
233// Generates a LUT for pipe types.
234int Overlay::initOverlay() {
235 int mdpVersion = qdutils::MDPVersion::getInstance().getMDPVersion();
236 int numPipesXType[OV_MDP_PIPE_ANY] = {0};
237 numPipesXType[OV_MDP_PIPE_RGB] =
238 qdutils::MDPVersion::getInstance().getRGBPipes();
239 numPipesXType[OV_MDP_PIPE_VG] =
240 qdutils::MDPVersion::getInstance().getVGPipes();
241 numPipesXType[OV_MDP_PIPE_DMA] =
242 qdutils::MDPVersion::getInstance().getDMAPipes();
243
244 int index = 0;
245 for(int X = 0; X < (int)OV_MDP_PIPE_ANY; X++) { //iterate over types
246 for(int j = 0; j < numPipesXType[X]; j++) { //iterate over num
247 PipeBook::pipeTypeLUT[index] = (utils::eMdpPipeType)X;
248 index++;
249 }
Saurabh Shahc4d034f2012-09-27 15:55:15 -0700250 }
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800251
Xiaoming Zhou5eff8b62013-05-01 20:56:09 -0400252 if (mdpVersion < qdutils::MDSS_V5 && mdpVersion != qdutils::MDP_V3_0_4) {
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800253 msmfb_mixer_info_req req;
254 mdp_mixer_info *minfo = NULL;
255 char name[64];
256 int fd = -1;
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700257 for(int i = 0; i < MAX_FB_DEVICES; i++) {
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800258 snprintf(name, 64, FB_DEVICE_TEMPLATE, i);
259 ALOGD("initoverlay:: opening the device:: %s", name);
260 fd = ::open(name, O_RDWR, 0);
261 if(fd < 0) {
262 ALOGE("cannot open framebuffer(%d)", i);
263 return -1;
264 }
265 //Get the mixer configuration */
266 req.mixer_num = i;
267 if (ioctl(fd, MSMFB_MIXER_INFO, &req) == -1) {
268 ALOGE("ERROR: MSMFB_MIXER_INFO ioctl failed");
269 close(fd);
270 return -1;
271 }
272 minfo = req.info;
273 for (int j = 0; j < req.cnt; j++) {
274 ALOGD("ndx=%d num=%d z_order=%d", minfo->pndx, minfo->pnum,
275 minfo->z_order);
276 // except the RGB base layer with z_order of -1, clear any
277 // other pipes connected to mixer.
278 if((minfo->z_order) != -1) {
279 int index = minfo->pndx;
280 ALOGD("Unset overlay with index: %d at mixer %d", index, i);
281 if(ioctl(fd, MSMFB_OVERLAY_UNSET, &index) == -1) {
282 ALOGE("ERROR: MSMFB_OVERLAY_UNSET failed");
283 close(fd);
284 return -1;
285 }
286 }
287 minfo++;
288 }
289 close(fd);
290 fd = -1;
291 }
292 }
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700293
294 FILE *displayDeviceFP = NULL;
295 const int MAX_FRAME_BUFFER_NAME_SIZE = 128;
296 char fbType[MAX_FRAME_BUFFER_NAME_SIZE];
297 char msmFbTypePath[MAX_FRAME_BUFFER_NAME_SIZE];
298 const char *strDtvPanel = "dtv panel";
299 const char *strWbPanel = "writeback panel";
300
301 for(int num = 1; num < MAX_FB_DEVICES; num++) {
302 snprintf (msmFbTypePath, sizeof(msmFbTypePath),
303 "/sys/class/graphics/fb%d/msm_fb_type", num);
304 displayDeviceFP = fopen(msmFbTypePath, "r");
305
306 if(displayDeviceFP){
307 fread(fbType, sizeof(char), MAX_FRAME_BUFFER_NAME_SIZE,
308 displayDeviceFP);
309
310 if(strncmp(fbType, strDtvPanel, strlen(strDtvPanel)) == 0) {
311 sDpyFbMap[DPY_EXTERNAL] = num;
312 } else if(strncmp(fbType, strWbPanel, strlen(strWbPanel)) == 0) {
313 sDpyFbMap[DPY_WRITEBACK] = num;
314 }
315
316 fclose(displayDeviceFP);
317 }
318 }
319
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800320 return 0;
Naseer Ahmed29a26812012-06-14 00:56:20 -0700321}
322
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700323bool Overlay::displayCommit(const int& fd) {
Jeykumar Sankaran6a9bb9e2013-08-01 14:19:26 -0700324 utils::Dim roi;
325 return displayCommit(fd, roi);
326}
327
328bool Overlay::displayCommit(const int& fd, const utils::Dim& roi) {
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700329 //Commit
330 struct mdp_display_commit info;
331 memset(&info, 0, sizeof(struct mdp_display_commit));
332 info.flags = MDP_DISPLAY_COMMIT_OVERLAY;
Jeykumar Sankaran6a9bb9e2013-08-01 14:19:26 -0700333 info.roi.x = roi.x;
334 info.roi.y = roi.y;
335 info.roi.w = roi.w;
336 info.roi.h = roi.h;
337
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700338 if(!mdp_wrapper::displayCommit(fd, info)) {
Jeykumar Sankaran6a9bb9e2013-08-01 14:19:26 -0700339 ALOGE("%s: commit failed", __func__);
340 return false;
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700341 }
342 return true;
343}
344
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500345void Overlay::dump() const {
Saurabh Shah9dc88fc2013-07-15 16:02:30 -0700346#if PIPE_DEBUG
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500347 if(strlen(mDumpStr)) { //dump only on state change
Saurabh Shah9dc88fc2013-07-15 16:02:30 -0700348 ALOGD("%s\n", mDumpStr);
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500349 }
Saurabh Shah9dc88fc2013-07-15 16:02:30 -0700350#endif
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500351}
352
Saurabh Shah0d0a7cb2013-02-12 17:58:19 -0800353void Overlay::getDump(char *buf, size_t len) {
354 int totalPipes = 0;
Saurabh Shahae61b2b2013-04-10 16:37:25 -0700355 const char *str = "\nOverlay State\n\n";
Saurabh Shah0d0a7cb2013-02-12 17:58:19 -0800356 strncat(buf, str, strlen(str));
357 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
358 if(mPipeBook[i].valid()) {
359 mPipeBook[i].mPipe->getDump(buf, len);
360 char str[64] = {'\0'};
Saurabh Shahae61b2b2013-04-10 16:37:25 -0700361 snprintf(str, 64, "Display=%d\n\n", mPipeBook[i].mDisplay);
Saurabh Shah0d0a7cb2013-02-12 17:58:19 -0800362 strncat(buf, str, strlen(str));
363 totalPipes++;
364 }
365 }
366 char str_pipes[64] = {'\0'};
Saurabh Shahae61b2b2013-04-10 16:37:25 -0700367 snprintf(str_pipes, 64, "Pipes=%d\n\n", totalPipes);
Saurabh Shah0d0a7cb2013-02-12 17:58:19 -0800368 strncat(buf, str_pipes, strlen(str_pipes));
369}
370
Sushil Chauhanbd3ea922013-05-15 12:25:26 -0700371void Overlay::clear(int dpy) {
372 for(int i = 0; i < PipeBook::NUM_PIPES; i++) {
373 if (mPipeBook[i].mDisplay == dpy) {
374 // Mark as available for this round
375 PipeBook::resetUse(i);
376 PipeBook::resetAllocation(i);
Saurabh Shahdf0be752013-05-23 14:40:00 -0700377 if(mPipeBook[i].valid()) {
378 mPipeBook[i].mPipe->forceSet();
379 }
Sushil Chauhanbd3ea922013-05-15 12:25:26 -0700380 }
381 }
382}
383
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500384void Overlay::PipeBook::init() {
385 mPipe = NULL;
386 mDisplay = DPY_UNUSED;
Saurabh Shahaf5f5972013-07-30 13:56:35 -0700387 mMixer = MIXER_UNUSED;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500388}
389
390void Overlay::PipeBook::destroy() {
391 if(mPipe) {
392 delete mPipe;
393 mPipe = NULL;
394 }
395 mDisplay = DPY_UNUSED;
Saurabh Shahaf5f5972013-07-30 13:56:35 -0700396 mMixer = MIXER_UNUSED;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500397}
398
399Overlay* Overlay::sInstance = 0;
Saurabh Shahc8118ac2013-06-27 10:03:19 -0700400int Overlay::sDpyFbMap[DPY_MAX] = {0, -1, -1};
Saurabh Shah85234ec2013-04-12 17:09:00 -0700401int Overlay::sDMAMode = DMA_LINE_MODE;
Saurabh Shah784e9852013-08-21 16:51:21 -0700402int Overlay::sForceSetBitmap = 0;
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500403int Overlay::PipeBook::NUM_PIPES = 0;
404int Overlay::PipeBook::sPipeUsageBitmap = 0;
405int Overlay::PipeBook::sLastUsageBitmap = 0;
406int Overlay::PipeBook::sAllocatedBitmap = 0;
Sushil Chauhan07a2c762013-03-06 15:36:49 -0800407utils::eMdpPipeType Overlay::PipeBook::pipeTypeLUT[utils::OV_MAX] =
408 {utils::OV_MDP_PIPE_ANY};
Naseer Ahmed758bfc52012-11-28 17:02:08 -0500409
410}; // namespace overlay