@@ -11,10 +11,10 @@
#include <sound/hda_i915.h>
#include <sound/hda_register.h>
-#define IS_HSW_CONTROLLER(pci) (((pci)->device == 0x0a0c) || \
- ((pci)->device == 0x0c0c) || \
- ((pci)->device == 0x0d0c) || \
- ((pci)->device == 0x160c))
+#define IS_HSW_CONTROLLER(pci) (((pci)->device == PCI_DEVICE_ID_INTEL_HDA_HSW_0) || \
+ ((pci)->device == PCI_DEVICE_ID_INTEL_HDA_HSW_2) || \
+ ((pci)->device == PCI_DEVICE_ID_INTEL_HDA_HSW_3) || \
+ ((pci)->device == PCI_DEVICE_ID_INTEL_HDA_BDW))
/**
* snd_hdac_i915_set_bclk - Reprogram BCLK for HSW/BDW
Use PCI device IDs from pci_ids.h header Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> --- sound/hda/hdac_i915.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)