From: Takashi Iwai Date: Thu, 15 Nov 2007 15:18:14 +0000 (+0100) Subject: [ALSA] at73c213 - Use common callback X-Git-Tag: v2.6.25-rc1~1127^2~239 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b6c26aff30343ac95a111b1658e72f94bf51291;p=linux-2.6 [ALSA] at73c213 - Use common callback Use snd_ctl_boolean_mono_info callback to simplify. Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index fee869bcc9..bfe17b3ec8 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c @@ -536,16 +536,7 @@ out: return retval; } -static int snd_at73c213_mono_switch_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 snd_at73c213_mono_switch_info snd_ctl_boolean_mono_info static int snd_at73c213_mono_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)