/* This is basically standard AC97. It should work as a default for almost all modern codecs. Note that some cards wire EAPD  */
static int eapd_control(struct ac97_codec *codec, int)
/* This is basically standard AC97. It should work as a default for almost all modern codecs. Note that some cards wire EAPD  */
static int eapd_control(struct ac97_codec *codec, int)
{
	if(on)
		codec->codec_write(codec, AC97_POWER_CONTROL,
			codec->codec_read(codec, AC97_POWER_CONTROL)|0x8000);
	else
		codec->codec_write(codec, AC97_POWER_CONTROL,
			codec->codec_read(codec, AC97_POWER_CONTROL)&~0x8000);
	return 0;
}