drm/rockchip: ebc_dev: release version v8.01

improve regal mode
improve fast mode to normal mode if repair not complete

Change-Id: Ib498117ac0331640a23b5a258f6d470f8c25ee34
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
This commit is contained in:
Zorro Liu
2025-06-19 16:05:16 +08:00
parent 351deff652
commit a16d7b3212
3 changed files with 2623 additions and 2432 deletions

View File

@@ -167,6 +167,22 @@ struct ebc_buf_s *ebc_dsp_buf_get(void)
return buf;
}
int ebc_dsp_buf_next_mode(void)
{
struct ebc_buf_s *buf = NULL;
int mode = -1;
mutex_lock(&ebc_buf_info.dsp_buf_lock);
if (ebc_buf_info.dsp_buf_list && (ebc_buf_info.dsp_buf_list->nb_elt > 0)) {
buf = (struct ebc_buf_s *)buf_list_get(ebc_buf_info.dsp_buf_list, 0);
mode = buf->buf_mode;
buf->dropable = 1;
}
mutex_unlock(&ebc_buf_info.dsp_buf_lock);
return mode;
}
struct ebc_buf_s *ebc_empty_osd_buf_get(void)
{
if (ebc_buf_info.osd_buf)

View File

@@ -50,5 +50,6 @@ char *ebc_virt_buf_base_get(void);
int ebc_buf_state_show(char *buf);
int ebc_buf_uninit(void);
int ebc_buf_init(unsigned long phy_start, char *mem_start, int men_len, int dest_buf_len, int max_buf_num);
int ebc_dsp_buf_next_mode(void);
#endif

File diff suppressed because it is too large Load Diff