aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-07-22 01:57:44 -0400
committerTakashi Iwai <tiwai@suse.de>2011-07-22 01:57:44 -0400
commit000477a0fe1af14355a52622a77ccce8bfd7230d (patch)
tree0e42e726d9373d74212fdf33fc8bb01660033ab3 /sound/pci/asihpi
parent509a7147446100d85f4bfd9dd330eb6c9428f3d3 (diff)
ALSA: asihpi - Replace with snd_ctl_boolean_mono_info()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r--sound/pci/asihpi/asihpi.c10
1 files changed, 1 insertions, 9 deletions
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,
1487 1487
1488static const DECLARE_TLV_DB_SCALE(db_scale_100, -10000, VOL_STEP_mB, 0); 1488static const DECLARE_TLV_DB_SCALE(db_scale_100, -10000, VOL_STEP_mB, 0);
1489 1489
1490static int snd_asihpi_volume_mute_info(struct snd_kcontrol *kcontrol, 1490#define snd_asihpi_volume_mute_info snd_ctl_boolean_mono_info
1491 struct snd_ctl_elem_info *uinfo)
1492{
1493 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
1494 uinfo->count = 1;
1495 uinfo->value.integer.min = 0;
1496 uinfo->value.integer.max = 1;
1497 return 0;
1498}
1499 1491
1500static int snd_asihpi_volume_mute_get(struct snd_kcontrol *kcontrol, 1492static int snd_asihpi_volume_mute_get(struct snd_kcontrol *kcontrol,
1501 struct snd_ctl_elem_value *ucontrol) 1493 struct snd_ctl_elem_value *ucontrol)