From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: [PATCH 12/18] intel_audio_dump: show detected chipset name Date: Sat, 12 Nov 2011 11:12:49 +0800 Message-ID: <20111112031411.527435730@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 70CC19E9AE for ; Fri, 11 Nov 2011 19:16:12 -0800 (PST) Content-Disposition: inline; filename=show-chip-name 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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- intel-gpu-tools.orig/tools/intel_audio_dump.c 2011-11-12 10:52:46.000000000 +0800 +++ intel-gpu-tools/tools/intel_audio_dump.c 2011-11-12 10:52:47.000000000 +0800 @@ -1250,12 +1250,17 @@ int main(int argc, char **argv) intel_get_mmio(pci_dev); if (IS_GEN6(devid) || IS_GEN7(devid) || getenv("HAS_PCH_SPLIT")) { + printf("%s audio registers:\n\n", + IS_GEN6(devid) ? "SandyBridge" : "IvyBridge"); intel_check_pch(); dump_cpt(); - } else if (IS_GEN5(devid)) + } else if (IS_GEN5(devid)) { + printf("Ironlake audio registers:\n\n"); dump_ironlake(); - else + } else if (IS_G4X(devid)) { + printf("G45 audio registers:\n\n"); dump_eaglelake(); + } return 0; }