/* OLPC XO-1's V_REFOUT is a mic bias enable.  */
void olpc_mic_bias(struct snd_ac97 *ac97, int on)
/* OLPC XO-1's V_REFOUT is a mic bias enable.  */
void olpc_mic_bias(struct snd_ac97 *ac97, int on)
{
	int err;
	if (!machine_is_olpc())
		return;
	on = on ? 0 : 1;
	err = snd_ac97_update_bits(ac97, AC97_AD_MISC,
			1 << AC97_AD_VREFD_SHIFT, on << AC97_AD_VREFD_SHIFT);
	if (err < 0)
		snd_printk(KERN_ERR "setting MIC Bias - %d\n", err);
}