summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof
diff options
context:
space:
mode:
authorMark Brown2019-06-06 23:44:24 +0200
committerMark Brown2019-06-06 23:44:24 +0200
commita8e992342ce4cd173d437d0aa4eecc9e30489f72 (patch)
treedbb45d586ed7370e32c006c506d6954d06779914 /sound/soc/sof
parentASoC: soc-core: remove legacy style dai_link (diff)
parentSoC: rt274: Fix internal jack assignment in set_jack callback (diff)
downloadkernel-qcow2-linux-a8e992342ce4cd173d437d0aa4eecc9e30489f72.tar.gz
kernel-qcow2-linux-a8e992342ce4cd173d437d0aa4eecc9e30489f72.tar.xz
kernel-qcow2-linux-a8e992342ce4cd173d437d0aa4eecc9e30489f72.zip
Merge branch 'asoc-5.2' into asoc-5.3
Diffstat (limited to 'sound/soc/sof')
-rw-r--r--sound/soc/sof/intel/hda.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c
index bb5f02f4e49a..47b508463218 100644
--- a/sound/soc/sof/intel/hda.c
+++ b/sound/soc/sof/intel/hda.c
@@ -227,7 +227,9 @@ static int hda_init(struct snd_sof_dev *sdev)
/* initialise hdac bus */
bus->addr = pci_resource_start(pci, 0);
+#if IS_ENABLED(CONFIG_PCI)
bus->remap_addr = pci_ioremap_bar(pci, 0);
+#endif
if (!bus->remap_addr) {
dev_err(bus->dev, "error: ioremap error\n");
return -ENXIO;
@@ -454,7 +456,9 @@ int hda_dsp_probe(struct snd_sof_dev *sdev)
goto hdac_bus_unmap;
/* DSP base */
+#if IS_ENABLED(CONFIG_PCI)
sdev->bar[HDA_DSP_BAR] = pci_ioremap_bar(pci, HDA_DSP_BAR);
+#endif
if (!sdev->bar[HDA_DSP_BAR]) {
dev_err(sdev->dev, "error: ioremap error\n");
ret = -ENXIO;