summaryrefslogtreecommitdiff
path: root/include/sound/sof.h
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2019-04-12 19:05:17 +0300
committerMark Brown <broonie@kernel.org>2019-04-27 20:49:26 +0300
commit8017b8fd37bf5ed4e9c0596f83295b019ff1c287 (patch)
treec9d05d7ce1ff22b6b69a3aa2c0fb9fda48003495 /include/sound/sof.h
parent8920153c6461da69e49014a35275dc80cbf6ba14 (diff)
downloadlinux-8017b8fd37bf5ed4e9c0596f83295b019ff1c287.tar.xz
ASoC: SOF: Add Nocodec machine driver support
Add a simple "fallback" machine driver that can be used to enable SOF on boards with no codec device. This machine driver can also be forced for debug/development. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sof.h')
-rw-r--r--include/sound/sof.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/sof.h b/include/sound/sof.h
index 54f65ec33a6c..4640566b54fe 100644
--- a/include/sound/sof.h
+++ b/include/sound/sof.h
@@ -12,6 +12,7 @@
#define __INCLUDE_SOUND_SOF_H
#include <linux/pci.h>
+#include <sound/soc.h>
#include <sound/soc-acpi.h>
struct snd_sof_dsp_ops;
@@ -91,4 +92,9 @@ struct sof_dev_desc {
const struct sof_arch_ops *arch_ops;
};
+int sof_nocodec_setup(struct device *dev,
+ struct snd_sof_pdata *sof_pdata,
+ struct snd_soc_acpi_mach *mach,
+ const struct sof_dev_desc *desc,
+ const struct snd_sof_dsp_ops *ops);
#endif