aboutsummaryrefslogtreecommitdiffstats
path: root/sound/i2c/other/pt2258.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/i2c/other/pt2258.c')
-rw-r--r--sound/i2c/other/pt2258.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/i2c/other/pt2258.c b/sound/i2c/other/pt2258.c
index e91cc3b44de5..00c83d8b32b1 100644
--- a/sound/i2c/other/pt2258.c
+++ b/sound/i2c/other/pt2258.c
@@ -140,15 +140,7 @@ static int pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol,
140 return -EIO; 140 return -EIO;
141} 141}
142 142
143static int pt2258_switch_info(struct snd_kcontrol *kcontrol, 143#define pt2258_switch_info snd_ctl_boolean_mono_info
144 struct snd_ctl_elem_info *uinfo)
145{
146 uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
147 uinfo->count = 1;
148 uinfo->value.integer.min = 0;
149 uinfo->value.integer.max = 1;
150 return 0;
151}
152 144
153static int pt2258_switch_get(struct snd_kcontrol *kcontrol, 145static int pt2258_switch_get(struct snd_kcontrol *kcontrol,
154 struct snd_ctl_elem_value *ucontrol) 146 struct snd_ctl_elem_value *ucontrol)