#include <sound/hda_verbs.h>
 #include <sound/hda_regmap.h>
 
-#define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
-#define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348)
-
 /*
  * Structures
  */
 
 #include <linux/pci.h>
 #include <linux/pm_runtime.h>
 #include <linux/delay.h>
+#include <sound/hdaudio.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
 #include "skl.h"
         * The recommended SDxFMT programming sequence for BXT
         * platforms is to couple the stream before writing the format
         */
-       if (IS_BXT(skl->pci)) {
+       if (HDA_CONTROLLER_IS_APL(skl->pci)) {
                snd_hdac_ext_stream_decouple(bus, stream, false);
                err = snd_hdac_stream_setup(hdac_stream(stream));
                snd_hdac_ext_stream_decouple(bus, stream, true);