public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Mika Kahola <mika.kahola@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] lib/igt_eld: Remove requirement for "IGT" named monitor
Date: Thu, 13 Jun 2019 15:52:07 +0300	[thread overview]
Message-ID: <20190613125207.18320-1-mika.kahola@intel.com> (raw)

Remove requirement of "IGT" named monitor when checking whether ALSA
has detected audio capable EDID.

(kms_hdmi_inject:2306) igt_eld-DEBUG: Skipping non-IGT ELD: /proc/asound/card0/eld#2.0 (monitor name: AthenaDP)
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.1
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.2
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.3
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.4
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.5
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.6
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.7
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.8
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.9
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.10
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.11
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.12
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.13
(kms_hdmi_inject:2306) igt_eld-DEBUG: Monitor not present in ELD: /proc/asound/card0/eld#2.14

As an example, we may find valid ELD on monitor named AthenaDP but the test itself skips as
the monitor is not named as "IGT".

cat /proc/asound/card0/eld#2.0
monitor_present		1
eld_valid		1
monitor_name		AthenaDP
connection_type		DisplayPort
eld_version		[0x2] CEA-861D or below
edid_version		[0x3] CEA-861-B, C or D
manufacture_id		0x8d4e
product_id		0x2454
port_id			0x0
support_hdcp		0
support_ai		0
audio_sync_delay	0
speakers		[0x1] FL/FR
sad_count		1
sad0_coding_type	[0x1] LPCM
sad0_channels		2
sad0_rates		[0xe0] 32000 44100 48000
sad0_bits		[0xe0000] 16 20 24

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102370

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
---
 lib/igt_eld.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/lib/igt_eld.c b/lib/igt_eld.c
index 15dd8ac9..7b3af2d4 100644
--- a/lib/igt_eld.c
+++ b/lib/igt_eld.c
@@ -233,13 +233,6 @@ bool eld_get_igt(struct eld_entry *eld)
 				continue;
 			}
 
-			if (strcmp(eld->monitor_name, "IGT") != 0) {
-				igt_debug("Skipping non-IGT ELD: %s "
-					  "(monitor name: %s)\n",
-					  path, eld->monitor_name);
-				continue;
-			}
-
 			closedir(dir);
 			return true;
 		}
-- 
2.17.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

             reply	other threads:[~2019-06-13 12:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-13 12:52 Mika Kahola [this message]
2019-06-13 12:53 ` [igt-dev] [PATCH i-g-t] lib/igt_eld: Remove requirement for "IGT" named monitor Ser, Simon
2019-06-13 12:55   ` Kahola, Mika
2019-06-13 12:56     ` Ser, Simon
2019-06-13 15:22 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-06-15  3:06 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=20190613125207.18320-1-mika.kahola@intel.com \
    --to=mika.kahola@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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