From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: [PATCH 13/18] intel_audio_dump: show ELD contents for G45 Date: Sat, 12 Nov 2011 11:12:50 +0800 Message-ID: <20111112031411.673950729@intel.com> References: <20111112031237.321877255@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id C5EFD9E7E3 for ; Fri, 11 Nov 2011 19:16:11 -0800 (PST) Content-Disposition: inline; filename=g45-edid List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: Wu Fengguang List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Wu Fengguang --- tools/intel_audio_dump.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- intel-gpu-tools.orig/tools/intel_audio_dump.c 2011-11-12 10:52:47.000000000 +0800 +++ intel-gpu-tools/tools/intel_audio_dump.c 2011-11-12 10:52:48.000000000 +0800 @@ -455,6 +455,14 @@ static void dump_eaglelake(void) printf("\t\t\t\t\t[0x%x] %u => %lu \n", dword, i, BITS(dword, 7, 4)); } + printf("AUD_HDMIW_HDMIEDID HDMI ELD:\n\t"); + dword = INREG(AUD_CNTL_ST); + dword &= ~BITMASK(8, 5); + OUTREG(AUD_CNTL_ST, dword); + for (i = 0; i < BITS(dword, 14, 10) / 4; i++) + printf("%08x ", htonl(INREG(AUD_HDMIW_HDMIEDID))); + printf("\n"); + printf("AUD_HDMIW_INFOFR HDMI audio Infoframe:\n\t"); dword = INREG(AUD_CNTL_ST); dword &= ~BITMASK(20, 18);