Path: blob/master/sound/soc/intel/boards/hda_dsp_common.h
26493 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright(c) 2019 Intel Corporation.3*/45/*6* This file defines helper functions used by multiple7* Intel HDA based machine drivers.8*/910#ifndef __HDA_DSP_COMMON_H11#define __HDA_DSP_COMMON_H1213#include <sound/hda_codec.h>14#include <sound/hda_i915.h>15#include "../../codecs/hdac_hda.h"1617#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)18int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,19struct snd_soc_component *comp);20#else21static inline int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,22struct snd_soc_component *comp)23{24return -EINVAL;25}26#endif2728#endif /* __HDA_DSP_COMMON_H */293031