summaryrefslogtreecommitdiff
path: root/tools/intel_audio_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/intel_audio_dump.c')
-rw-r--r--tools/intel_audio_dump.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index 90260a2f..350a21d9 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -32,6 +32,7 @@
#include <string.h>
#include <err.h>
#include <arpa/inet.h>
+#include "igt_device.h"
#include "intel_io.h"
#include "intel_reg.h"
#include "intel_chipset.h"
@@ -2464,8 +2465,12 @@ static void dump_braswell(void)
int main(int argc, char **argv)
{
struct pci_device *pci_dev;
+ int fd;
+
+ fd = drm_open_driver(DRIVER_INTEL);
+ pci_dev = igt_device_get_pci_device(fd);
+ close(fd);
- pci_dev = intel_get_pci_device();
devid = pci_dev->device_id; /* XXX not true when mapping! */
do_self_tests();
@@ -2493,5 +2498,7 @@ int main(int argc, char **argv)
dump_eaglelake();
}
+ close(fd);
+
return 0;
}