#include <sound/core.h>
#include <sound/hdmi-codec.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <linux/of_graph.h>
#include "adv7511.h"
static void adv7511_calc_cts_n(unsigned int f_tmds, unsigned int fs,
unsigned int *cts, unsigned int *n)
{ … }
static int adv7511_update_cts_n(struct adv7511 *adv7511)
{ … }
static int adv7511_hdmi_hw_params(struct device *dev, void *data,
struct hdmi_codec_daifmt *fmt,
struct hdmi_codec_params *hparms)
{ … }
static int audio_startup(struct device *dev, void *data)
{ … }
static void audio_shutdown(struct device *dev, void *data)
{ … }
static int adv7511_hdmi_i2s_get_dai_id(struct snd_soc_component *component,
struct device_node *endpoint)
{ … }
static const struct hdmi_codec_ops adv7511_codec_ops = …;
static const struct hdmi_codec_pdata codec_data = …;
int adv7511_audio_init(struct device *dev, struct adv7511 *adv7511)
{ … }
void adv7511_audio_exit(struct adv7511 *adv7511)
{ … }