mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
drm: support vrr range debugfs [1/1]
PD#SWPL-162048 Problem: the value of the vrr range debugfs node is incorrect Solution: update the value of vrr range to the debugfs node in get_modes Verify: t7 Test: DRM-OSD-16 Change-Id: Ie465fabc761f23beaca406c8bb60b743f173c3bb Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
This commit is contained in:
committed by
Luan Yuan
parent
3a3c621c5f
commit
cec7f72005
@@ -478,6 +478,10 @@ int meson_hdmitx_get_modes(struct drm_connector *connector)
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
connector->display_info.monitor_range.max_vfreq = am_hdmi_info.max_vfreq;
|
||||
connector->display_info.monitor_range.min_vfreq = am_hdmi_info.min_vfreq;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
@@ -1477,6 +1481,8 @@ static void meson_hdmitx_cal_brr(struct am_hdmi_tx *hdmitx,
|
||||
if (group->vrr_max >= brr) {
|
||||
brr = group->vrr_max;
|
||||
vic = group->brr_vic;
|
||||
am_hdmi_info.min_vfreq = group->vrr_min;
|
||||
am_hdmi_info.max_vfreq = group->vrr_max;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,9 @@ struct am_hdmi_tx {
|
||||
|
||||
int hdmitx_on;
|
||||
|
||||
int min_vfreq;
|
||||
int max_vfreq;
|
||||
|
||||
/* save sequence_id for drm connecter get raw edid */
|
||||
u64 sequence_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user