Skip to content

Commit

Permalink
[ALSA] at73c213 - Use common callback
Browse files Browse the repository at this point in the history
Use snd_ctl_boolean_mono_info callback to simplify.

Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
tiwai authored and perexg committed Jan 31, 2008
1 parent 3b89246 commit 4b6c26a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions sound/spi/at73c213.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,16 +536,7 @@ static int snd_at73c213_stereo_put(struct snd_kcontrol *kcontrol,
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)
Expand Down

0 comments on commit 4b6c26a

Please sign in to comment.