#include <linux/module.h>
#include <sound/hdaudio_ext.h>
#include <sound/hda_register.h>
#include <sound/hda_codec.h>
#include <sound/hda_i915.h>
#include <sound/sof.h>
#include "../ops.h"
#include "hda.h"
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
#include "../../codecs/hdac_hda.h"
#define CODEC_PROBE_RETRIES …
#define IDISP_VID_INTEL …
static int hda_codec_mask = …;
module_param_named(codec_mask, hda_codec_mask, int, 0444);
MODULE_PARM_DESC(…) …;
static int request_codec_module(struct hda_codec *codec)
{ … }
static int hda_codec_load_module(struct hda_codec *codec)
{ … }
void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev, bool enable)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_jack_check(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
#if IS_ENABLED(CONFIG_SND_HDA_GENERIC)
#define is_generic_config(bus) …
#else
#define is_generic_config …
#endif
static struct hda_codec *hda_codec_device_init(struct hdac_bus *bus, int addr, int type)
{ … }
static int hda_codec_probe(struct snd_sof_dev *sdev, int address)
{ … }
void hda_codec_probe_bus(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_check_for_state_change(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_detect_mask(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_init_cmd_io(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_resume_cmd_io(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_stop_cmd_io(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_suspend_cmd_io(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_rirb_status_clear(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_set_codec_wakeup(struct snd_sof_dev *sdev, bool status)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
bool hda_codec_check_rirb_status(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
void hda_codec_device_remove(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
#endif
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC) && IS_ENABLED(CONFIG_SND_HDA_CODEC_HDMI)
void hda_codec_i915_display_power(struct snd_sof_dev *sdev, bool enable)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
int hda_codec_i915_init(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
int hda_codec_i915_exit(struct snd_sof_dev *sdev)
{ … }
EXPORT_SYMBOL_NS_GPL(…);
#endif
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;