forked from Minki/linux
a3f18f82a2
cppcheck reports the following warning: sound/soc/intel/boards/hda_dsp_common.c:17:0: style: The function 'hda_dsp_hdmi_pcm_handle' is never used. [unusedFunction] Fix by moving to static inside compilation block. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Jaska Uimonen <jaska.uimonen@intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200923072939.3100468-1-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
30 lines
669 B
C
30 lines
669 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright(c) 2019 Intel Corporation.
|
|
*/
|
|
|
|
/*
|
|
* This file defines helper functions used by multiple
|
|
* Intel HDA based machine drivers.
|
|
*/
|
|
|
|
#ifndef __HDA_DSP_COMMON_H
|
|
#define __HDA_DSP_COMMON_H
|
|
|
|
#include <sound/hda_codec.h>
|
|
#include <sound/hda_i915.h>
|
|
#include "../../codecs/hdac_hda.h"
|
|
|
|
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
|
|
int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
|
|
struct snd_soc_component *comp);
|
|
#else
|
|
static inline int hda_dsp_hdmi_build_controls(struct snd_soc_card *card,
|
|
struct snd_soc_component *comp)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __HDA_DSP_COMMON_H */
|