aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ad73311.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/ad73311.c')
-rw-r--r--sound/soc/codecs/ad73311.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c
index b1f2baf42b48..5fac8adbc136 100644
--- a/sound/soc/codecs/ad73311.c
+++ b/sound/soc/codecs/ad73311.c
@@ -23,6 +23,21 @@
23 23
24#include "ad73311.h" 24#include "ad73311.h"
25 25
26static const struct snd_soc_dapm_widget ad73311_dapm_widgets[] = {
27SND_SOC_DAPM_INPUT("VINP"),
28SND_SOC_DAPM_INPUT("VINN"),
29SND_SOC_DAPM_OUTPUT("VOUTN"),
30SND_SOC_DAPM_OUTPUT("VOUTP"),
31};
32
33static const struct snd_soc_dapm_route ad73311_dapm_routes[] = {
34 { "Capture", NULL, "VINP" },
35 { "Capture", NULL, "VINN" },
36
37 { "VOUTN", NULL, "Playback" },
38 { "VOUTP", NULL, "Playback" },
39};
40
26static struct snd_soc_dai_driver ad73311_dai = { 41static struct snd_soc_dai_driver ad73311_dai = {
27 .name = "ad73311-hifi", 42 .name = "ad73311-hifi",
28 .playback = { 43 .playback = {
@@ -39,7 +54,12 @@ static struct snd_soc_dai_driver ad73311_dai = {
39 .formats = SNDRV_PCM_FMTBIT_S16_LE, }, 54 .formats = SNDRV_PCM_FMTBIT_S16_LE, },
40}; 55};
41 56
42static struct snd_soc_codec_driver soc_codec_dev_ad73311; 57static struct snd_soc_codec_driver soc_codec_dev_ad73311 = {
58 .dapm_widgets = ad73311_dapm_widgets,
59 .num_dapm_widgets = ARRAY_SIZE(ad73311_dapm_widgets),
60 .dapm_routes = ad73311_dapm_routes,
61 .num_dapm_routes = ARRAY_SIZE(ad73311_dapm_routes),
62};
43 63
44static int ad73311_probe(struct platform_device *pdev) 64static int ad73311_probe(struct platform_device *pdev)
45{ 65{