diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-18 18:16:06 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-18 21:09:23 (GMT) |
commit | 31a2239a5a77c48b12c54210aa250ce76c8f9535 (patch) | |
tree | 01c480b6ff49f40daef2323d27a681145d63eb4b | |
parent | b4046d013b5b9a7cab835def403f7f421cdf0cb6 (diff) | |
download | linux-fsl-qoriq-31a2239a5a77c48b12c54210aa250ce76c8f9535.tar.xz |
ASoC: littlemill: Add userspace control of the WM1250 I/O
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/samsung/littlemill.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/samsung/littlemill.c b/sound/soc/samsung/littlemill.c index c82c646..ee52c8a0 100644 --- a/sound/soc/samsung/littlemill.c +++ b/sound/soc/samsung/littlemill.c @@ -211,6 +211,11 @@ static int bbclk_ev(struct snd_soc_dapm_widget *w, return 0; } +static const struct snd_kcontrol_new controls[] = { + SOC_DAPM_PIN_SWITCH("WM1250 Input"), + SOC_DAPM_PIN_SWITCH("WM1250 Output"), +}; + static struct snd_soc_dapm_widget widgets[] = { SND_SOC_DAPM_HP("Headphone", NULL), @@ -282,6 +287,8 @@ static struct snd_soc_card littlemill = { .set_bias_level = littlemill_set_bias_level, .set_bias_level_post = littlemill_set_bias_level_post, + .controls = controls, + .num_controls = ARRAY_SIZE(controls), .dapm_widgets = widgets, .num_dapm_widgets = ARRAY_SIZE(widgets), .dapm_routes = audio_paths, |