hda_dsp_common.h 669 B

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