diff options
Diffstat (limited to 'sound/soc/codecs/ad73311.c')
-rw-r--r-- | sound/soc/codecs/ad73311.c | 22 |
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 | ||
26 | static const struct snd_soc_dapm_widget ad73311_dapm_widgets[] = { | ||
27 | SND_SOC_DAPM_INPUT("VINP"), | ||
28 | SND_SOC_DAPM_INPUT("VINN"), | ||
29 | SND_SOC_DAPM_OUTPUT("VOUTN"), | ||
30 | SND_SOC_DAPM_OUTPUT("VOUTP"), | ||
31 | }; | ||
32 | |||
33 | static 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 | |||
26 | static struct snd_soc_dai_driver ad73311_dai = { | 41 | static 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 | ||
42 | static struct snd_soc_codec_driver soc_codec_dev_ad73311; | 57 | static 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 | ||
44 | static int ad73311_probe(struct platform_device *pdev) | 64 | static int ad73311_probe(struct platform_device *pdev) |
45 | { | 65 | { |