1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright(c) 2019 Intel Corporation.
4  */
5 
6 /*
7  * This file defines helper functions used by multiple
8  * Intel HDA based machine drivers.
9  */
10 
11 #ifndef __HDA_DSP_COMMON_H
12 #define __HDA_DSP_COMMON_H
13 
14 #include <sound/hda_codec.h>
15 #include <sound/hda_i915.h>
16 #include "../../codecs/hdac_hda.h"
17 
18 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
19 int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
20 				struct snd_soc_component *comp);
21 #else
hda_dsp_hdmi_build_controls(struct snd_soc_card * card,struct snd_soc_component * comp)22 static inline int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
23 					      struct snd_soc_component *comp)
24 {
25 	return -EINVAL;
26 }
27 #endif
28 
29 #endif /* __HDA_DSP_COMMON_H */
30