Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright(c) 2019 Intel Corporation.
0004  */
0005 
0006 /*
0007  * This file defines helper functions used by multiple
0008  * Intel HDA based machine drivers.
0009  */
0010 
0011 #ifndef __HDA_DSP_COMMON_H
0012 #define __HDA_DSP_COMMON_H
0013 
0014 #include <sound/hda_codec.h>
0015 #include <sound/hda_i915.h>
0016 #include "../../codecs/hdac_hda.h"
0017 
0018 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
0019 int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
0020                 struct snd_soc_component *comp);
0021 #else
0022 static inline int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
0023                           struct snd_soc_component *comp)
0024 {
0025     return -EINVAL;
0026 }
0027 #endif
0028 
0029 #endif /* __HDA_DSP_COMMON_H */