#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/jack.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-acpi.h>
#include "../../codecs/rt5645.h"
struct bdw_rt5650_priv { … };
static const struct snd_soc_dapm_widget bdw_rt5650_widgets[] = …;
static const struct snd_soc_dapm_route bdw_rt5650_map[] = …;
static const struct snd_kcontrol_new bdw_rt5650_controls[] = …;
static struct snd_soc_jack headphone_jack;
static struct snd_soc_jack mic_jack;
static struct snd_soc_jack_pin headphone_jack_pin = …;
static struct snd_soc_jack_pin mic_jack_pin = …;
static int broadwell_ssp0_fixup(struct snd_soc_pcm_runtime *rtd,
struct snd_pcm_hw_params *params)
{ … }
static int bdw_rt5650_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops bdw_rt5650_ops = …;
static const unsigned int channels[] = …;
static const struct snd_pcm_hw_constraint_list constraints_channels = …;
static int bdw_rt5650_fe_startup(struct snd_pcm_substream *substream)
{ … }
static const struct snd_soc_ops bdw_rt5650_fe_ops = …;
static int bdw_rt5650_init(struct snd_soc_pcm_runtime *rtd)
{ … }
SND_SOC_DAILINK_DEF(dummy,
DAILINK_COMP_ARRAY(COMP_DUMMY()));
SND_SOC_DAILINK_DEF(fe,
DAILINK_COMP_ARRAY(COMP_CPU("System Pin")));
SND_SOC_DAILINK_DEF(platform,
DAILINK_COMP_ARRAY(COMP_PLATFORM("haswell-pcm-audio")));
SND_SOC_DAILINK_DEF(be,
DAILINK_COMP_ARRAY(COMP_CODEC("i2c-10EC5650:00", "rt5645-aif1")));
SND_SOC_DAILINK_DEF(ssp0_port,
DAILINK_COMP_ARRAY(COMP_CPU("ssp0-port")));
static struct snd_soc_dai_link bdw_rt5650_dais[] = …;
#define SOF_CARD_NAME …
#define SOF_DRIVER_NAME …
#define CARD_NAME …
#define DRIVER_NAME …
static struct snd_soc_card bdw_rt5650_card = …;
static int bdw_rt5650_probe(struct platform_device *pdev)
{ … }
static struct platform_driver bdw_rt5650_audio = …;
module_platform_driver(…) …
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;