ASoc: SOF: Intel: fix hda-ctrl.c build error on sparc64

Fix build error reported on sparc64 due to missing include
for module.h. Also add #ifdefs to codec_mask to avoid
unused variable warnings on builds with HDA disabled.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
This commit is contained in:
Kai Vehmanen 2019-11-28 13:52:04 +02:00 committed by Pierre Bossart
parent 2cb8d264de
commit 7d913c868f

View File

@ -15,14 +15,17 @@
* Hardware interface for generic Intel audio DSP HDA IP
*/
#include <linux/module.h>
#include <sound/hdaudio_ext.h>
#include <sound/hda_register.h>
#include "../ops.h"
#include "hda.h"
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
static int hda_codec_mask = -1;
module_param_named(codec_mask, hda_codec_mask, int, 0444);
MODULE_PARM_DESC(codec_mask, "SOF HDA codec mask for probing");
#endif
/*
* HDA Operations.