diff options
| -rw-r--r-- | sound/soc/codecs/wl1273.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c index 54cd3da09abd..b7ab2ef567c8 100644 --- a/sound/soc/codecs/wl1273.c +++ b/sound/soc/codecs/wl1273.c | |||
| @@ -290,6 +290,18 @@ static const struct snd_kcontrol_new wl1273_controls[] = { | |||
| 290 | snd_wl1273_fm_volume_get, snd_wl1273_fm_volume_put), | 290 | snd_wl1273_fm_volume_get, snd_wl1273_fm_volume_put), |
| 291 | }; | 291 | }; |
| 292 | 292 | ||
| 293 | static const struct snd_soc_dapm_widget wl1273_dapm_widgets[] = { | ||
| 294 | SND_SOC_DAPM_INPUT("RX"), | ||
| 295 | |||
| 296 | SND_SOC_DAPM_OUTPUT("TX"), | ||
| 297 | }; | ||
| 298 | |||
| 299 | static const struct snd_soc_dapm_route wl1273_dapm_routes[] = { | ||
| 300 | { "Capture", NULL, "RX" }, | ||
| 301 | |||
| 302 | { "TX", NULL, "Playback" }, | ||
| 303 | }; | ||
| 304 | |||
| 293 | static int wl1273_startup(struct snd_pcm_substream *substream, | 305 | static int wl1273_startup(struct snd_pcm_substream *substream, |
| 294 | struct snd_soc_dai *dai) | 306 | struct snd_soc_dai *dai) |
| 295 | { | 307 | { |
| @@ -483,6 +495,11 @@ static int wl1273_remove(struct snd_soc_codec *codec) | |||
| 483 | static struct snd_soc_codec_driver soc_codec_dev_wl1273 = { | 495 | static struct snd_soc_codec_driver soc_codec_dev_wl1273 = { |
| 484 | .probe = wl1273_probe, | 496 | .probe = wl1273_probe, |
| 485 | .remove = wl1273_remove, | 497 | .remove = wl1273_remove, |
| 498 | |||
| 499 | .dapm_widgets = wl1273_dapm_widgets, | ||
| 500 | .num_dapm_widgets = ARRAY_SIZE(wl1273_dapm_widgets), | ||
| 501 | .dapm_routes = wl1273_dapm_routes, | ||
| 502 | .num_dapm_routes = ARRAY_SIZE(wl1273_dapm_routes), | ||
| 486 | }; | 503 | }; |
| 487 | 504 | ||
| 488 | static int wl1273_platform_probe(struct platform_device *pdev) | 505 | static int wl1273_platform_probe(struct platform_device *pdev) |
