[ALSA] at73c213 - Use common callback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, January 31, 2008 - 5:00 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4b6c26...
Commit:     4b6c26aff30343ac95a111b1658e72f94bf51291
Parent:     3b892467786410f26dffc2c7bccd3ea445604037
Author:     Takashi Iwai <tiwai@suse.de>
AuthorDate: Thu Nov 15 16:18:14 2007 +0100
Committer:  Jaroslav Kysela <perex@perex.cz>
CommitDate: Thu Jan 31 17:29:25 2008 +0100

    [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>
---
 sound/spi/at73c213.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)

diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c
index fee869b..bfe17b3 100644
--- a/sound/spi/at73c213.c
+++ b/sound/spi/at73c213.c
@@ -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)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ALSA] at73c213 - Use common callback, Linux Kernel Mailing ..., (Thu Jan 31, 5:00 pm)