From: Takashi Iwai Date: Fri, 22 Jul 2011 05:57:44 +0000 (+0200) Subject: ALSA: asihpi - Replace with snd_ctl_boolean_mono_info() X-Git-Tag: MMI-PSA29.97-13-9~18103^2~125^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=000477a0fe1af14355a52622a77ccce8bfd7230d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ALSA: asihpi - Replace with snd_ctl_boolean_mono_info() Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index f2b35e1bdc90..cc809acfb5a1 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c @@ -1487,15 +1487,7 @@ static int snd_asihpi_volume_put(struct snd_kcontrol *kcontrol, static const DECLARE_TLV_DB_SCALE(db_scale_100, -10000, VOL_STEP_mB, 0); -static int snd_asihpi_volume_mute_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_asihpi_volume_mute_info snd_ctl_boolean_mono_info static int snd_asihpi_volume_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)