Lines Matching refs:mode
96 int mode = getUserMode(); in configureHDMIDisplay() local
97 if (mode == -1) { in configureHDMIDisplay()
99 mode = getBestMode(); in configureHDMIDisplay()
101 setResolution(mode); in configureHDMIDisplay()
355 const msm_hdmi_mode_timing_info* mode) in setDisplayTiming() argument
362 (mode->video_format << 16); in setDisplayTiming()
366 info.xres = mode->active_h; in setDisplayTiming()
367 info.yres = mode->active_v; in setDisplayTiming()
369 info.pixclock = (mode->pixel_freq)*1000; in setDisplayTiming()
370 info.vmode = mode->interlaced ? in setDisplayTiming()
373 info.right_margin = mode->front_porch_h; in setDisplayTiming()
374 info.hsync_len = mode->pulse_width_h; in setDisplayTiming()
375 info.left_margin = mode->back_porch_h; in setDisplayTiming()
376 info.lower_margin = mode->front_porch_v; in setDisplayTiming()
377 info.vsync_len = mode->pulse_width_v; in setDisplayTiming()
378 info.upper_margin = mode->back_porch_v; in setDisplayTiming()
481 int ExternalDisplay::getModeOrder(int mode) in getModeOrder() argument
485 switch (mode) { in getModeOrder()
543 int mode = atoi(property_value); in getUserMode() local
545 if(isValidMode(mode) && !isInterlacedMode(mode)) { in getUserMode()
546 ALOGD_IF(DEBUG, "%s: setting the HDMI mode = %d", __FUNCTION__, mode); in getUserMode()
547 return mode; in getUserMode()
559 int mode = mEDIDModes[i]; in getBestMode() local
560 int order = getModeOrder(mode); in getBestMode()
563 bestMode = mode; in getBestMode()
616 const struct msm_hdmi_mode_timing_info *mode = in setResolution() local
622 mode = cur; in setResolution()
626 setDisplayTiming(mVInfo, mode); in setResolution()
629 mode->video_format, mVInfo.xres, mVInfo.yres, in setResolution()
637 metadata.data.video_info_code = mode->video_format; in setResolution()