1
0
Fork 0

[ALSA] at73c213 - Use common callback

Use snd_ctl_boolean_mono_info callback to simplify.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
hifive-unleashed-5.1
Takashi Iwai 2007-11-15 16:18:14 +01:00 committed by Jaroslav Kysela
parent 3b89246778
commit 4b6c26aff3
1 changed files with 1 additions and 10 deletions

View File

@ -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)