[ALSA] Clean up with common snd_ctl_boolean_*_info callbacks
[linux-2.6-block.git] / sound / pci / hda / patch_conexant.c
index 4d8e8af5c819e67759ea44b11626fb21f8468451..26034315197fc1b2bf15caf174e3b5daa916b6d3 100644 (file)
@@ -368,15 +368,7 @@ static struct hda_codec_ops conexant_patch_ops = {
  * the private value = nid | (invert << 8)
  */
 
-static int cxt_eapd_info(struct snd_kcontrol *kcontrol,
-                             struct snd_ctl_elem_info *uinfo)
-{
-       uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
-       uinfo->count = 1;
-       uinfo->value.integer.min = 0;
-       uinfo->value.integer.max = 1;
-       return 0;
-}
+#define cxt_eapd_info          snd_ctl_boolean_mono_info
 
 static int cxt_eapd_get(struct snd_kcontrol *kcontrol,
                             struct snd_ctl_elem_value *ucontrol)