aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8782.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8782.c')
-rw-r--r--sound/soc/codecs/wm8782.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8782.c b/sound/soc/codecs/wm8782.c
index f1fdbf63abb4..8092495605ce 100644
--- a/sound/soc/codecs/wm8782.c
+++ b/sound/soc/codecs/wm8782.c
@@ -26,6 +26,16 @@
26#include <sound/initval.h> 26#include <sound/initval.h>
27#include <sound/soc.h> 27#include <sound/soc.h>
28 28
29static const struct snd_soc_dapm_widget wm8782_dapm_widgets[] = {
30SND_SOC_DAPM_INPUT("AINL"),
31SND_SOC_DAPM_INPUT("AINR"),
32};
33
34static const struct snd_soc_dapm_route wm8782_dapm_routes[] = {
35 { "Capture", NULL, "AINL" },
36 { "Capture", NULL, "AINR" },
37};
38
29static struct snd_soc_dai_driver wm8782_dai = { 39static struct snd_soc_dai_driver wm8782_dai = {
30 .name = "wm8782", 40 .name = "wm8782",
31 .capture = { 41 .capture = {
@@ -40,7 +50,12 @@ static struct snd_soc_dai_driver wm8782_dai = {
40 }, 50 },
41}; 51};
42 52
43static struct snd_soc_codec_driver soc_codec_dev_wm8782; 53static struct snd_soc_codec_driver soc_codec_dev_wm8782 = {
54 .dapm_widgets = wm8782_dapm_widgets,
55 .num_dapm_widgets = ARRAY_SIZE(wm8782_dapm_widgets),
56 .dapm_routes = wm8782_dapm_routes,
57 .num_dapm_routes = ARRAY_SIZE(wm8782_dapm_routes),
58};
44 59
45static int wm8782_probe(struct platform_device *pdev) 60static int wm8782_probe(struct platform_device *pdev)
46{ 61{