#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/platform_device.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>
#include <sound/dmaengine_pcm.h>
#include <uapi/sound/asound.h>
#include <sound/asoundef.h>
#include <sound/omap-hdmi-audio.h>
#include "sdma-pcm.h"
#define DRV_NAME …
struct hdmi_audio_data { … };
static
struct hdmi_audio_data *card_drvdata_substream(struct snd_pcm_substream *ss)
{ … }
static void hdmi_dai_abort(struct device *dev)
{ … }
static int hdmi_dai_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int hdmi_dai_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int hdmi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static void hdmi_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops hdmi_dai_ops = …;
static const struct snd_soc_component_driver omap_hdmi_component = …;
static struct snd_soc_dai_driver omap5_hdmi_dai = …;
static struct snd_soc_dai_driver omap4_hdmi_dai = …;
static int omap_hdmi_audio_probe(struct platform_device *pdev)
{ … }
static struct platform_driver hdmi_audio_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;