mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-02 19:23:01 +09:00
vpp: after switch dv off, hdmi output not follow always hdr policy [1/1]
PD#SWPL-17427 Problem: when turn off dv vmode set to null, not vsync interrupt, cause csc fail to monitor cap change Solution: csc add monitor for VOUT_EVENT_MODE_CHANGE Verify: Verify on u212 Change-Id: I072dcc75a62888abe403c574f2ecd8e796fa3e00 Signed-off-by: robin.zhu <robin.zhu@amlogic.com>
This commit is contained in:
@@ -388,6 +388,12 @@ int get_hdr_policy(void)
|
||||
}
|
||||
EXPORT_SYMBOL(get_hdr_policy);
|
||||
|
||||
void set_cur_hdr_policy(uint policy)
|
||||
{
|
||||
cur_hdr_policy = policy;
|
||||
}
|
||||
EXPORT_SYMBOL(set_cur_hdr_policy);
|
||||
|
||||
enum output_format_e get_force_output(void)
|
||||
{
|
||||
return force_output;
|
||||
|
||||
@@ -139,6 +139,7 @@ extern int tx_op_color_primary;
|
||||
extern uint cur_csc_type[VD_PATH_MAX];
|
||||
|
||||
int get_hdr_policy(void);
|
||||
void set_cur_hdr_policy(uint policy);
|
||||
enum output_format_e get_force_output(void);
|
||||
|
||||
/* 0: hdr->hdr, 1:hdr->sdr, 2:hdr->hlg */
|
||||
|
||||
@@ -9123,6 +9123,8 @@ int vout_notify_callback(struct notifier_block *block, unsigned long cmd,
|
||||
/* to workaround pkt cleaned during hotplug */
|
||||
if (is_dolby_vision_enable())
|
||||
dolby_vision_set_toggle_flag(2);
|
||||
else
|
||||
set_cur_hdr_policy(0xff);
|
||||
#endif
|
||||
break;
|
||||
case VOUT_EVENT_OSD_PREBLEND_ENABLE:
|
||||
|
||||
@@ -538,5 +538,6 @@ extern int am_meson_ctm_set(u32 index, struct drm_color_ctm *ctm);
|
||||
extern int am_meson_ctm_disable(void);
|
||||
|
||||
extern void enable_osd1_mtx(unsigned int en);
|
||||
void set_cur_hdr_policy(uint policy);
|
||||
#endif /* AMVECM_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user