From patchwork Tue Feb 15 17:41:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Celix X-Patchwork-Id: 559291 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1FHfdgH023502 for ; Tue, 15 Feb 2011 17:42:00 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D3629EAF1 for ; Tue, 15 Feb 2011 09:41:39 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 199839E755 for ; Tue, 15 Feb 2011 09:41:20 -0800 (PST) Received: by eyd9 with SMTP id 9so267290eyd.36 for ; Tue, 15 Feb 2011 09:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=HUr9BwdHS0SwbAFKvH6QCqHTm4K93t+nG0vIJoeeujs=; b=Es4VTMopQ4IE+yls+onvBowefqXex2Aor345jzsEqRJnyuIO4IWfAf+KgkQL9xnw9i 4oYBPCoVazJILd1qW8Dn0CHQ52p5VcG3rjbytoYieODOeWt73Q04UkowMvX+CPIv02NA U/aMMW0nG9Ijgll2el65xPJ7HqIc0G/IAq9ag= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jLj6QeN/PUf1prem77XbT3UuFjGhuUs8J/SqrisAOqge/BpwDD9m/I7uz/1j1Hwpzw AZ9AU393i0v96jFLzyuJopHCULQQTmI/fsrnFQa0uXkpOiBPgs2HX8kZpMf+lq/jBqRF iv804eArJWuRgM3ngIVC6or0a6rCvQg7uCRkQ= MIME-Version: 1.0 Received: by 10.213.32.143 with SMTP id c15mr5794421ebd.67.1297791680108; Tue, 15 Feb 2011 09:41:20 -0800 (PST) Received: by 10.213.25.145 with HTTP; Tue, 15 Feb 2011 09:41:20 -0800 (PST) Date: Tue, 15 Feb 2011 17:41:20 +0000 Message-ID: From: Diego Celix To: intel-gfx Subject: [Intel-gfx] [intel-gpu-tools] intel_audio_dump problem with GEN5 devices X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 15 Feb 2011 17:42:00 +0000 (UTC) From 11ecef0c415e20c1b377bf9bb93dcc4b1ab283c0 Mon Sep 17 00:00:00 2001 From: Diego Celix 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