Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH 0/6] drm/edid: split out drm_eld.[ch], add some SAD helpers
@ 2023-09-07  9:28 Jani Nikula
  2023-09-07  9:28 ` [Intel-gfx] [PATCH 1/6] drm/edid: split out drm_eld.h from drm_edid.h Jani Nikula
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Jani Nikula @ 2023-09-07  9:28 UTC (permalink / raw)
  To: dri-devel; +Cc: jani.nikula, intel-gfx

Split out drm_eld.[ch] from drm_edid.h, add some helpers to convert and
modify SADs.

This should make it easier and more robust to implement things like [1],
with ELD parsing details hidden in drm_eld.[ch].

	for (i = 0; i < drm_eld_sad_count(eld); i++) {
		struct cea_sad sad;

		drm_eld_sad_get(eld, i, &sad);
		/* do stuff with sad */
		drm_eld_sad_set(eld, i, &sad);
	}

struct cea_sad provides an easier way to manipulate CTA SADs.

** UNTESTED ***

Cc: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>

[1] https://patchwork.freedesktop.org/patch/msgid/20230821160004.2821445-4-mitulkumar.ajitkumar.golani@intel.com


Jani Nikula (6):
  drm/edid: split out drm_eld.h from drm_edid.h
  drm/eld: replace uint8_t with u8
  drm/edid: include drm_eld.h only where required
  drm/edid: use a temp variable for sads to drop one level of
    dereferences
  drm/edid: add helpers to get/set struct cea_sad from/to 3-byte sad
  drm/eld: add helpers to modify the SADs of an ELD

 Documentation/gpu/drm-kms-helpers.rst         |   6 +
 drivers/gpu/drm/Makefile                      |   1 +
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |   1 +
 drivers/gpu/drm/drm_edid.c                    |  42 +++--
 drivers/gpu/drm/drm_eld.c                     |  55 ++++++
 drivers/gpu/drm/drm_internal.h                |   6 +
 drivers/gpu/drm/i915/display/intel_audio.c    |   1 +
 .../drm/i915/display/intel_crtc_state_dump.c  |   1 +
 drivers/gpu/drm/i915/display/intel_sdvo.c     |   1 +
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |   1 +
 drivers/gpu/drm/radeon/radeon_audio.c         |   1 +
 drivers/gpu/drm/tegra/hdmi.c                  |   1 +
 drivers/gpu/drm/tegra/sor.c                   |   1 +
 include/drm/drm_edid.h                        | 148 ----------------
 include/drm/drm_eld.h                         | 164 ++++++++++++++++++
 sound/core/pcm_drm_eld.c                      |   1 +
 sound/soc/codecs/hdac_hdmi.c                  |   1 +
 sound/soc/codecs/hdmi-codec.c                 |   1 +
 sound/x86/intel_hdmi_audio.c                  |   1 +
 19 files changed, 274 insertions(+), 160 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_eld.c
 create mode 100644 include/drm/drm_eld.h

-- 
2.39.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2023-09-26 18:13 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-07  9:28 [Intel-gfx] [PATCH 0/6] drm/edid: split out drm_eld.[ch], add some SAD helpers Jani Nikula
2023-09-07  9:28 ` [Intel-gfx] [PATCH 1/6] drm/edid: split out drm_eld.h from drm_edid.h Jani Nikula
2023-09-25 15:52   ` Golani, Mitulkumar Ajitkumar
2023-09-07  9:28 ` [Intel-gfx] [PATCH 2/6] drm/eld: replace uint8_t with u8 Jani Nikula
2023-09-08  5:25   ` Borah, Chaitanya Kumar
2023-09-25 16:32   ` Golani, Mitulkumar Ajitkumar
2023-09-07  9:28 ` [Intel-gfx] [PATCH 3/6] drm/edid: include drm_eld.h only where required Jani Nikula
2023-09-25 16:59   ` Golani, Mitulkumar Ajitkumar
2023-09-07  9:28 ` [Intel-gfx] [PATCH 4/6] drm/edid: use a temp variable for sads to drop one level of dereferences Jani Nikula
2023-09-25 17:46   ` Golani, Mitulkumar Ajitkumar
2023-09-26  7:44     ` Jani Nikula
2023-09-26 16:14       ` Golani, Mitulkumar Ajitkumar
2023-09-07  9:28 ` [Intel-gfx] [PATCH 5/6] drm/edid: add helpers to get/set struct cea_sad from/to 3-byte sad Jani Nikula
2023-09-07 11:49   ` kernel test robot
2023-09-07 13:37   ` kernel test robot
2023-09-26 18:13   ` Golani, Mitulkumar Ajitkumar
2023-09-07  9:28 ` [Intel-gfx] [PATCH 6/6] drm/eld: add helpers to modify the SADs of an ELD Jani Nikula
2023-09-26 18:04   ` Golani, Mitulkumar Ajitkumar
2023-09-07 12:14 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/edid: split out drm_eld.[ch], add some SAD helpers Patchwork
2023-09-07 12:14 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-09-07 12:31 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox