aboutsummaryrefslogtreecommitdiffstats
path: root/sound/spi
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-11-15 10:18:14 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:25 -0500
commit4b6c26aff30343ac95a111b1658e72f94bf51291 (patch)
tree9f895ff443554643d82704882165a94dd41344a3 /sound/spi
parent3b892467786410f26dffc2c7bccd3ea445604037 (diff)
[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>
Diffstat (limited to 'sound/spi')
-rw-r--r--sound/spi/at73c213.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c
index fee869bcc959..bfe17b3ec8f4 100644
--- a/sound/spi/at73c213.c
+++ b/sound/spi/at73c213.c
@@ -536,16 +536,7 @@ out:
536 return retval; 536 return retval;
537} 537}
538 538
539static int snd_at73c213_mono_switch_info(struct snd_kcontrol *kcontrol, 539#define snd_at73c213_mono_switch_info snd_ctl_boolean_mono_info
540 struct snd_ctl_elem_info *uinfo)
541{
542 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
543 uinfo->count = 1;
544 uinfo->value.integer.min = 0;
545 uinfo->value.integer.max = 1;
546
547 return 0;
548}
549 540
550static int snd_at73c213_mono_switch_get(struct snd_kcontrol *kcontrol, 541static int snd_at73c213_mono_switch_get(struct snd_kcontrol *kcontrol,
551 struct snd_ctl_elem_value *ucontrol) 542 struct snd_ctl_elem_value *ucontrol)