Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea3583d0 authored by Lars-Peter Clausen's avatar Lars-Peter Clausen Committed by Mark Brown
Browse files

ASoC: wm8903: Use SOC_SINGLE_EXT() instead of open-coding it

parent a44b5177
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -403,10 +403,8 @@ static int wm8903_class_w_put(struct snd_kcontrol *kcontrol,
}
}


#define SOC_DAPM_SINGLE_W(xname, reg, shift, max, invert) \
#define SOC_DAPM_SINGLE_W(xname, reg, shift, max, invert) \
{	.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
	SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
	.info = snd_soc_info_volsw, \
		snd_soc_dapm_get_volsw, wm8903_class_w_put)
	.get = snd_soc_dapm_get_volsw, .put = wm8903_class_w_put, \
	.private_value =  SOC_SINGLE_VALUE(reg, shift, max, invert) }




static int wm8903_deemph[] = { 0, 32000, 44100, 48000 };
static int wm8903_deemph[] = { 0, 32000, 44100, 48000 };