Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/igt_eld: Fix 88.2kHz/176.4kHz sample rate parsing
@ 2026-09-01 11:33 Chaitanya Kumar Borah
  2026-09-01 23:35 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Chaitanya Kumar Borah @ 2026-09-01 11:33 UTC (permalink / raw)
  To: igt-dev; +Cc: Chaitanya Kumar Borah, Simon Ser, Swati Sharma

parse_sad_rate() matched the rounded labels 88000/176000, but ALSA's
eld proc file reports the exact rates 88200/176400, so those never
matched and were silently dropped even when present in the ELD:

  $ cat /proc/asound/card0/eld#2.4
  [...]
  sad_count               1
  sad0_rates              [0x1ee0] 32000 44100 48000 88200 96000 176400 192000

Match the exact rates ALSA reports instead of the rounded ones.

Cc: Simon Ser <contact@emersion.fr>
Cc: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
---
 lib/igt_eld.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_eld.c b/lib/igt_eld.c
index 4a6f867ab..896ab0e6b 100644
--- a/lib/igt_eld.c
+++ b/lib/igt_eld.c
@@ -76,11 +76,11 @@ static enum cea_sad_sampling_rate parse_sad_rate(const char *value)
 		return CEA_SAD_SAMPLING_RATE_44KHZ;
 	case 48000:
 		return CEA_SAD_SAMPLING_RATE_48KHZ;
-	case 88000:
+	case 88200:
 		return CEA_SAD_SAMPLING_RATE_88KHZ;
 	case 96000:
 		return CEA_SAD_SAMPLING_RATE_96KHZ;
-	case 176000:
+	case 176400:
 		return CEA_SAD_SAMPLING_RATE_176KHZ;
 	case 192000:
 		return CEA_SAD_SAMPLING_RATE_192KHZ;
-- 
2.50.1


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

end of thread, other threads:[~2026-09-14 10:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 11:33 [PATCH i-g-t] lib/igt_eld: Fix 88.2kHz/176.4kHz sample rate parsing Chaitanya Kumar Borah
2026-09-01 23:35 ` ✓ i915.CI.BAT: success for " Patchwork
2026-09-02 15:27 ` ✗ i915.CI.Full: failure " Patchwork
2026-09-08  6:54 ` [PATCH i-g-t] " Sharma, Swati2
2026-09-11 11:48 ` ✗ Xe.CI.BAT: failure for lib/igt_eld: Fix 88.2kHz/176.4kHz sample rate parsing (rev2) Patchwork
2026-09-14 10:43   ` Kamil Konieczny
2026-09-11 12:05 ` ✓ i915.CI.BAT: success " Patchwork
2026-09-11 18:57 ` ✓ Xe.CI.FULL: " Patchwork
2026-09-12 10:11 ` ✗ i915.CI.Full: failure " Patchwork

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