diff options
Diffstat (limited to 'sound/soc/codecs/ac97.c')
-rw-r--r-- | sound/soc/codecs/ac97.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c index ec7351803c24..8d9ba4ba4bfe 100644 --- a/sound/soc/codecs/ac97.c +++ b/sound/soc/codecs/ac97.c | |||
@@ -23,6 +23,16 @@ | |||
23 | #include <sound/initval.h> | 23 | #include <sound/initval.h> |
24 | #include <sound/soc.h> | 24 | #include <sound/soc.h> |
25 | 25 | ||
26 | static const struct snd_soc_dapm_widget ac97_widgets[] = { | ||
27 | SND_SOC_DAPM_INPUT("RX"), | ||
28 | SND_SOC_DAPM_OUTPUT("TX"), | ||
29 | }; | ||
30 | |||
31 | static const struct snd_soc_dapm_route ac97_routes[] = { | ||
32 | { "AC97 Capture", NULL, "RX" }, | ||
33 | { "TX", NULL, "AC97 Playback" }, | ||
34 | }; | ||
35 | |||
26 | static int ac97_prepare(struct snd_pcm_substream *substream, | 36 | static int ac97_prepare(struct snd_pcm_substream *substream, |
27 | struct snd_soc_dai *dai) | 37 | struct snd_soc_dai *dai) |
28 | { | 38 | { |
@@ -117,6 +127,11 @@ static struct snd_soc_codec_driver soc_codec_dev_ac97 = { | |||
117 | .probe = ac97_soc_probe, | 127 | .probe = ac97_soc_probe, |
118 | .suspend = ac97_soc_suspend, | 128 | .suspend = ac97_soc_suspend, |
119 | .resume = ac97_soc_resume, | 129 | .resume = ac97_soc_resume, |
130 | |||
131 | .dapm_widgets = ac97_widgets, | ||
132 | .num_dapm_widgets = ARRAY_SIZE(ac97_widgets), | ||
133 | .dapm_routes = ac97_routes, | ||
134 | .num_dapm_routes = ARRAY_SIZE(ac97_routes), | ||
120 | }; | 135 | }; |
121 | 136 | ||
122 | static int ac97_probe(struct platform_device *pdev) | 137 | static int ac97_probe(struct platform_device *pdev) |