output_index = get_output_device_id(fbdev->fb_index);
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
- info->var.xres_virtual = info->var.xres;
- info->var.yres_virtual = info->var.yres;
-#endif
-
if (fbdev->fb_index < osd_hw.osd_meson_dev.viu1_osd_count) {
vinfo = get_current_vinfo();
if (!vinfo) {
int update_geometry = 0;
u32 w = (color->bpp * xres_virtual + 7) >> 3;
u32 i;
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
- if (index == 0) {
- xres_virtual = xres;
- yres_virtual = yres;
- }
-#endif /* CONFIG_ARCH_MESON64_ODROID_COMMON */
osd_hw.buffer_alloc[index] = 1;
pan_data.x_start = xoffset;
osd_log_info("osd[%d] out_addr_id =0x%x\n",
index, osd_hw.osd_afbcd[index].out_addr_id);
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
- set_osd_logo_freescaler();
-#endif
if (osd_hw.osd_meson_dev.osd_ver == OSD_SIMPLE)
osd_update_phy_addr(0);
#ifdef CONFIG_AMLOGIC_MEDIA_CANVAS
#include "osd_log.h"
#include "osd.h"
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
-#include "osd_fb.h"
-#endif
#undef pr_fmt
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
s32 dst_y_start = 0, dst_y_end = 0;
s32 target_x_end = 0, target_y_end = 0;
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
- struct osd_fb_dev_s *fb_dev;
-
- fb_dev = gp_fbdev_list[0];
- if (fb_dev) {
- logo_info.fb_width = fb_dev->fb_info->var.xres;
- logo_info.fb_height = fb_dev->fb_info->var.yres;
- }
-#endif
-
if (logo_info.loaded == 0)
return 0;
(strncmp(info->name, "ntsc_m", 6) == 0) ||
(strncmp(info->name, "pal_m", 5) == 0) ||
(strncmp(info->name, "pal_n", 5) == 0) ||
-#if !defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
(strncmp(info->name, "panel", 5) == 0) ||
-#endif
(strncmp(info->name, "null", 4) == 0)) {
pr_info(SYS "%s not valid hdmi mode\n", info->name);
hdev->hwop.cntlconfig(hdev, CONF_CLR_AVI_PACKET, 0);
hdev->mux_hpd_if_pin_high_flag = 0;
}
/* If current display is NOT panel, needn't TURNOFF_HDMIHW */
-#if !defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
if (strncmp(mode, "panel", 5) == 0) {
hdev->hwop.cntl(hdev, HDMITX_HWCMD_TURNOFF_HDMIHW,
(hdev->hpdmode == 2)?1:0);
}
-#endif
}
hdmitx_set_audio(hdev, &(hdev->cur_audio_param));
if (hdev->cedst_policy) {
{
int ret = 0;
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
- if (strncmp(vout_mode, "custombuilt", 11) == 0)
- ret = snprintf(buf, VMODE_NAME_LEN_MAX, "%s\n", "panel");
- else
-#endif
- ret = snprintf(buf, VMODE_NAME_LEN_MAX, "%s\n", vout_mode);
+ ret = snprintf(buf, VMODE_NAME_LEN_MAX, "%s\n", vout_mode);
return ret;
}
{
int ret = 0;
-#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
- if (strncmp(vout_mode, "custombuilt", 11) == 0)
- ret = snprintf(buf, 64, "%s\n", "0 0 1920 1080 0 0");
- else
-#endif
- ret = snprintf(buf, 64, "%s\n", vout_axis);
+ ret = snprintf(buf, 64, "%s\n", vout_axis);
return ret;
}