diff options
Diffstat (limited to 'sound/soc/codecs/wm8782.c')
-rw-r--r-- | sound/soc/codecs/wm8782.c | 17 |
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 | ||
29 | static const struct snd_soc_dapm_widget wm8782_dapm_widgets[] = { | ||
30 | SND_SOC_DAPM_INPUT("AINL"), | ||
31 | SND_SOC_DAPM_INPUT("AINR"), | ||
32 | }; | ||
33 | |||
34 | static const struct snd_soc_dapm_route wm8782_dapm_routes[] = { | ||
35 | { "Capture", NULL, "AINL" }, | ||
36 | { "Capture", NULL, "AINR" }, | ||
37 | }; | ||
38 | |||
29 | static struct snd_soc_dai_driver wm8782_dai = { | 39 | static 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 | ||
43 | static struct snd_soc_codec_driver soc_codec_dev_wm8782; | 53 | static 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 | ||
45 | static int wm8782_probe(struct platform_device *pdev) | 60 | static int wm8782_probe(struct platform_device *pdev) |
46 | { | 61 | { |