From f44547e42deeadd52c4aa8493a563bc9d9dc7c85 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 22 Jul 2011 07:57:44 +0200 Subject: [PATCH] --- yaml --- r: 257644 b: refs/heads/master c: 000477a0fe1af14355a52622a77ccce8bfd7230d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/pci/asihpi/asihpi.c | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/[refs] b/[refs] index ba09d402f83e..6cdd5f9f9b97 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 509a7147446100d85f4bfd9dd330eb6c9428f3d3 +refs/heads/master: 000477a0fe1af14355a52622a77ccce8bfd7230d diff --git a/trunk/sound/pci/asihpi/asihpi.c b/trunk/sound/pci/asihpi/asihpi.c index f2b35e1bdc90..cc809acfb5a1 100644 --- a/trunk/sound/pci/asihpi/asihpi.c +++ b/trunk/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)