Commit 4b6c26af authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] at73c213 - Use common callback

Use snd_ctl_boolean_mono_info callback to simplify.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 3b892467
...@@ -536,16 +536,7 @@ static int snd_at73c213_stereo_put(struct snd_kcontrol *kcontrol, ...@@ -536,16 +536,7 @@ static int snd_at73c213_stereo_put(struct snd_kcontrol *kcontrol,
return retval; return retval;
} }
static int snd_at73c213_mono_switch_info(struct snd_kcontrol *kcontrol, #define snd_at73c213_mono_switch_info snd_ctl_boolean_mono_info
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;
}
static int snd_at73c213_mono_switch_get(struct snd_kcontrol *kcontrol, static int snd_at73c213_mono_switch_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) struct snd_ctl_elem_value *ucontrol)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment