From: Alex Hung <alex.hung@amd.com>
To: Melissa Wen <mwen@igalia.com>,
harry.wentland@amd.com, sunpeng.li@amd.com,
Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com,
christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com,
daniel@ffwll.ch
Cc: Mario Limonciello <mario.limonciello@amd.com>,
Jani Nikula <jani.nikula@linux.intel.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
kernel-dev@igalia.com
Subject: Re: [PATCH v4 10/11] drm/amd/display: get SADB from drm_eld when parsing EDID caps
Date: Thu, 25 Jul 2024 10:40:19 -0600 [thread overview]
Message-ID: <2eba5e73-a430-4964-8f84-4fa2a42940ca@amd.com> (raw)
In-Reply-To: <20240706034004.801329-11-mwen@igalia.com>
On 2024-07-05 21:35, Melissa Wen wrote:
> instead of parsing struct edid.
A more informative commit message will be helpful.
>
> Signed-off-by: Melissa Wen <mwen@igalia.com>
> ---
> .../drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 15 +++------------
> 1 file changed, 3 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
> index 45c04de08c65..3fb07f437793 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
> @@ -97,9 +97,8 @@ enum dc_edid_status dm_helpers_parse_edid_caps(
> const struct drm_edid *drm_edid = aconnector->drm_edid;
> struct drm_edid_product_id product_id;
> struct edid *edid_buf = edid ? (struct edid *) edid->raw_edid : NULL;
> - int sad_count, sadb_count;
> + int sad_count;
> int i = 0;
> - uint8_t *sadb = NULL;
>
> enum dc_edid_status result = EDID_OK;
>
> @@ -143,20 +142,12 @@ enum dc_edid_status dm_helpers_parse_edid_caps(
> edid_caps->audio_modes[i].sample_size = sad.byte2;
> }
>
> - sadb_count = drm_edid_to_speaker_allocation((struct edid *) edid->raw_edid, &sadb);
>
> - if (sadb_count < 0) {
> - DRM_ERROR("Couldn't read Speaker Allocation Data Block: %d\n", sadb_count);
> - sadb_count = 0;
> - }
> -
> - if (sadb_count)
> - edid_caps->speaker_flags = sadb[0];
> + if (connector->eld[DRM_ELD_SPEAKER])
> + edid_caps->speaker_flags = connector->eld[DRM_ELD_SPEAKER];
> else
> edid_caps->speaker_flags = DEFAULT_SPEAKER_LOCATION;
>
> - kfree(sadb);
> -
> return result;
> }
>
next prev parent reply other threads:[~2024-07-25 16:40 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-06 3:35 [PATCH v4 00/11] drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid Melissa Wen
2024-07-06 3:35 ` [PATCH v4 01/11] drm/amd/display: clean unused variables for hdmi freesync parser Melissa Wen
2024-07-25 16:23 ` Alex Hung
2024-07-29 1:32 ` Melissa Wen
2024-07-29 13:24 ` Alex Hung
2024-07-06 3:35 ` [PATCH v4 02/11] drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid Melissa Wen
2024-07-25 16:35 ` Alex Hung
2024-07-29 1:59 ` Melissa Wen
2024-07-06 3:35 ` [PATCH v4 03/11] drm/amd/display: switch to setting physical address directly Melissa Wen
2024-07-25 16:36 ` Alex Hung
2024-07-06 3:35 ` [PATCH v4 04/11] drm/amd/display: always call connector_update when parsing freesync_caps Melissa Wen
2024-07-06 3:35 ` [PATCH v4 05/11] drm/amd/display: remove redundant freesync parser for DP Melissa Wen
2024-07-06 3:35 ` [PATCH v4 06/11] drm/amd/display: use drm_edid_product_id for parsing EDID product info Melissa Wen
2024-07-06 3:35 ` [PATCH v4 07/11] drm/amd/display: don't give initial values for sad/b_count Melissa Wen
2024-07-25 16:38 ` Alex Hung
2024-07-29 2:01 ` Melissa Wen
2024-07-06 3:35 ` [PATCH v4 08/11] drm/amd/display: parse display name from drm_eld Melissa Wen
2024-07-06 3:35 ` [PATCH v4 09/11] drm/amd/display: get SAD from drm_eld when parsing EDID caps Melissa Wen
2024-07-25 16:39 ` Alex Hung
2024-07-29 2:02 ` Melissa Wen
2024-07-29 13:27 ` Alex Hung
2024-07-06 3:35 ` [PATCH v4 10/11] drm/amd/display: get SADB " Melissa Wen
2024-07-25 16:40 ` Alex Hung [this message]
2024-07-06 3:35 ` [PATCH v4 11/11] drm/amd/display: remove dc_edid handler from dm_helpers_parse_edid_caps Melissa Wen
2024-07-07 2:24 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2eba5e73-a430-4964-8f84-4fa2a42940ca@amd.com \
--to=alex.hung@amd.com \
--cc=Rodrigo.Siqueira@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=jani.nikula@linux.intel.com \
--cc=kernel-dev@igalia.com \
--cc=mario.limonciello@amd.com \
--cc=mwen@igalia.com \
--cc=sunpeng.li@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox