PD#SWPL-57980
Problem:
after the device is powered on
plug in the HDMI cable a few seconds
then OSD panic
Solution:
avoid color_info NULL
Verify:
g12a
Change-Id: I69202bc06d889e59a391b50b609237689eb29d31
Signed-off-by: jian.cao <jian.cao@amlogic.com>
for (i = 0; i < osd_count; i++) {
if (osd_hw.enable[i]) {
struct hw_osd_reg_s *osd_reg = &hw_osd_reg_array[i];
- enum color_index_e idx =
- osd_hw.color_info[i]->color_index;
+ enum color_index_e idx = COLOR_INDEX_32_BGRX;
bool rgbx = false;
+ if (osd_hw.color_info[i])
+ idx = osd_hw.color_info[i]->color_index;
+ else
+ osd_log_err("osd%d color_info is NULL\n", i);
/* update = is_freescale_para_changed(i); */
if (!osd_hw.osd_afbcd[i].enable)
canvas_config(osd_hw.fb_gem[i].canvas_idx,