diff mbox

[intel-gpu-tools] intel_audio_dump problem with GEN5 devices

Message ID AANLkTik4V-S2xWow4QGCCE3g_B1xuA2vbLErLO533=nW@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Diego Celix Feb. 15, 2011, 5:41 p.m. UTC
None
diff mbox

Patch

From 11ecef0c415e20c1b377bf9bb93dcc4b1ab283c0 Mon Sep 17 00:00:00 2001
From: Diego Celix <dcelix@gmail.com>
Date: Tue, 15 Feb 2011 17:17:41 +0000
Subject: [PATCH] intel_audio_dump: Removed repeated check for GEN5

In main(), there is a repeated check for a GEN5 device.
The first one is inside the HAS_PCH_SPLIT macro wich prevents reaching the
correct option.
---
 tools/intel_audio_dump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index ef81b6a..c3204a2 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -1194,7 +1194,7 @@  int main(int argc, char **argv)
 	else
 		intel_get_mmio(pci_dev);
 
-	if (HAS_PCH_SPLIT(devid) || getenv("HAS_PCH_SPLIT")) {
+	if (IS_GEN6(devid) || getenv("HAS_PCH_SPLIT")) {
 		intel_check_pch();
 		dump_cpt();
 	} else if (IS_GEN5(devid))
-- 
1.7.3.4