ASoC: arizona: Add noise gate hold time enumeration
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 18 Dec 2012 13:47:57 +0000 (13:47 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 24 Dec 2012 15:39:07 +0000 (15:39 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.h

index adf397b9d0e650eb19768e7bc6c592352014a595..819920dfa901db02b6498061be7ff740c3bb851f 100644 (file)
@@ -275,6 +275,15 @@ const struct soc_enum arizona_lhpf4_mode =
                        arizona_lhpf_mode_text);
 EXPORT_SYMBOL_GPL(arizona_lhpf4_mode);
 
+static const char *arizona_ng_hold_text[] = {
+       "30ms", "120ms", "250ms", "500ms",
+};
+
+const struct soc_enum arizona_ng_hold =
+       SOC_ENUM_SINGLE(ARIZONA_NOISE_GATE_CONTROL, ARIZONA_NGATE_HOLD_SHIFT,
+                       4, arizona_ng_hold_text);
+EXPORT_SYMBOL_GPL(arizona_ng_hold);
+
 int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
                  int event)
 {
index 41dae1ed3b714a4734448b1d3c99938af1fe9d9a..3d083d00579865c48396ae1a7c541bb782b42992 100644 (file)
@@ -176,6 +176,8 @@ extern const struct soc_enum arizona_lhpf2_mode;
 extern const struct soc_enum arizona_lhpf3_mode;
 extern const struct soc_enum arizona_lhpf4_mode;
 
+extern const struct soc_enum arizona_ng_hold;
+
 extern int arizona_in_ev(struct snd_soc_dapm_widget *w,
                         struct snd_kcontrol *kcontrol,
                         int event);