#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/gpio/consumer.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include <sound/soc-dapm.h>
struct rt1015p_priv { … };
static int rt1015p_sdb_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{ … }
static const struct snd_soc_dapm_widget rt1015p_dapm_widgets[] = …;
static const struct snd_soc_dapm_route rt1015p_dapm_routes[] = …;
#ifdef CONFIG_PM
static int rt1015p_suspend(struct snd_soc_component *component)
{ … }
#else
#define rt1015p_suspend …
#endif
static const struct snd_soc_component_driver rt1015p_component_driver = …;
static struct snd_soc_dai_driver rt1015p_dai_driver = …;
static int rt1015p_platform_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id rt1015p_device_id[] = …;
MODULE_DEVICE_TABLE(of, rt1015p_device_id);
#endif
#ifdef CONFIG_ACPI
static const struct acpi_device_id rt1015p_acpi_match[] = …;
MODULE_DEVICE_TABLE(acpi, rt1015p_acpi_match);
#endif
static struct platform_driver rt1015p_platform_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;