Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b067defd authored by Narender Ankam's avatar Narender Ankam Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: append VIC ID to mode info string



Append VIC ID of each CEA mode to mode info string.

Change-Id: I48833e69324c7fcea84b6f1905bdd5f42bedb005
Signed-off-by: default avatarNarender Ankam <nankam@codeaurora.org>
parent 71580a00
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3081,6 +3081,7 @@ drm_display_mode_from_vic_index(struct drm_connector *connector,
	if (!newmode)
		return NULL;

	newmode->vic_id = vic;
	newmode->vrefresh = 0;

	return newmode;
+5 −4
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -533,9 +533,10 @@ static ssize_t dp_debug_read_edid_modes(struct file *file,
	mutex_lock(&connector->dev->mode_config.mutex);
	list_for_each_entry(mode, &connector->modes, head) {
		ret = snprintf(buf + len, max_size,
		"%s %d %d %d %d %d 0x%x\n",
		mode->name, mode->vrefresh, mode->picture_aspect_ratio,
		mode->htotal, mode->vtotal, mode->clock, mode->flags);
		"%d %s %d %d %d %d %d 0x%x\n",
		mode->vic_id, mode->name, mode->vrefresh,
		mode->picture_aspect_ratio, mode->htotal, mode->vtotal,
		mode->clock, mode->flags);
		if (dp_debug_check_buffer_overflow(ret, &max_size, &len))
			break;
	}
+3 −0
Original line number Diff line number Diff line
@@ -1999,6 +1999,9 @@ static int sde_connector_populate_mode_info(struct drm_connector *conn,

		sde_kms_info_add_keystr(info, "mode_name", mode->name);

		sde_kms_info_add_keyint(info, "VIC",
					mode->vic_id);

		sde_kms_info_add_keyint(info, "bit_clk_rate",
					mode_info.clk_rate);

+2 −0
Original line number Diff line number Diff line
@@ -405,6 +405,8 @@ struct drm_display_mode {
	 * Field for setting the HDMI picture aspect ratio of a mode.
	 */
	enum hdmi_picture_aspect picture_aspect_ratio;

	u32 vic_id;
};

#define obj_to_mode(x) container_of(x, struct drm_display_mode, base)