ASoC: Intel: Skylake: Use global PCI match macro
[platform/kernel/linux-starfive.git] / sound / soc / intel / skylake / skl-pcm.c
index a4209d8..ac3dc8c 100644 (file)
@@ -13,6 +13,7 @@
 #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"
@@ -152,7 +153,7 @@ int skl_pcm_host_dma_prepare(struct device *dev, struct skl_pipe_params *params)
         * 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);