[PATCH 12/18] intel_audio_dump: show detected chipset name

Wu Fengguang
2011-11-12T03:16:12Z

[-- Attachment #1: show-chip-name --]
[-- Type: text/plain, Size: 846 bytes --]

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
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;
}