@@ -13,6 +13,17 @@
#include <sound/hda_verbs.h>
#include <drm/i915_component.h>
+/*
+ * snd_adsp_enable: exported HD-A aDSP enable configuration.
+ *
+ * Some Intel HDA controllers sport a DSP, for these platform we can bypass
+ * aDSP and use as regular HDA controller or enable aDSP and use aDSP
+ * along with I2S codecs etc.
+ * hdac_adsp_enable would enable the aDSP based HDA controller if the
+ * platform supports it
+ */
+extern bool snd_adsp_enable;
+
/* codec node id */
typedef u16 hda_nid_t;
@@ -10,6 +10,12 @@
MODULE_DESCRIPTION("HD-audio bus");
MODULE_LICENSE("GPL");
+bool snd_adsp_enable = false;
+EXPORT_SYMBOL_GPL(snd_adsp_enable);
+
+module_param(snd_adsp_enable, bool, 0444);
+MODULE_PARM_DESC(snd_adsp_enable, "HD-A aDSP enable configuration");
+
/**
* hdac_get_device_id - gets the hdac device id entry
* @hdev: HD-audio core device