mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[ALSA] Clean up with common snd_ctl_boolean_*_info callbacks
Clean up codes using the new common snd_ctl_boolean_*_info() callbacks. Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
This commit is contained in:
parent
b9ed4f2b68
commit
a5ce88909d
60 changed files with 119 additions and 973 deletions
|
|
@ -451,15 +451,7 @@ static int __init snd_aicapcmchip(struct snd_card_aica
|
|||
}
|
||||
|
||||
/* Mixer controls */
|
||||
static int aica_pcmswitch_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 aica_pcmswitch_info snd_ctl_boolean_mono_info
|
||||
|
||||
static int aica_pcmswitch_get(struct snd_kcontrol *kcontrol,
|
||||
struct snd_ctl_elem_value *ucontrol)
|
||||
|
|
|
|||
Loading…
Reference in a new issue