{
void *fb;
int encoding = 1;
+ int ret;
debug("%s()\n", __func__);
imx8m_create_color_bar((void *)((uint64_t) fb), &gmode);
- imx8_hdmi_enable(encoding, &gmode); /* may change gmode */
+ ret = imx8_hdmi_enable(encoding, &gmode); /* may change gmode */
+ if (ret) {
+ printf("HDMI enable failed!\n");
+ return NULL;
+ }
/* start dccs */
imx8m_display_init((uint64_t) fb, encoding, &gmode);
cdn_api_init();
debug("CDN_API_Init completed\n");
- ret = cdn_api_checkalive_blocking();
+ ret = cdn_api_checkalive();
debug("CDN_API_CheckAlive returned ret = %d\n", ret);
+ if (ret)
+ return -EPERM;
+
ret = cdn_api_general_test_echo_ext_blocking(echo_msg,
echo_resp,
sizeof(echo_msg),
return 0;
}
-void imx8_hdmi_enable(int encoding,
+int imx8_hdmi_enable(int encoding,
struct video_mode_settings *vms)
{
int vic = 0;
vic = 0; /* 480p60 */
imx8_hdmi_set_vic_mode(vic, vms);
- imx8_hdmi_init(vic, encoding, g_color_depth, use_phy_pixel_clk);
+ return imx8_hdmi_init(vic, encoding, g_color_depth, use_phy_pixel_clk);
}
void imx8_hdmi_disable(void)
#ifndef __IMX8_HDMI_H__
#define __IMX8_HDMI_H__
-void imx8_hdmi_enable(int encoding, struct video_mode_settings *vms);
+int imx8_hdmi_enable(int encoding, struct video_mode_settings *vms);
void imx8_hdmi_disable(void);
#endif /* __IMX8_HDMI_H__*/