/* Return true if the device is an AC97 1.0 or AC97 2.0 modem  */
static int ac97_check_modem(struct ac97_codec *codec)
/* Return true if the device is an AC97 1.0 or AC97 2.0 modem  */
static int ac97_check_modem(struct ac97_codec *codec)
{
	if(codec->codec_read(codec, AC97_RESET) & 2)
		return 1;
	codec->codec_write(codec, AC97_EXTENDED_MODEM_ID, 0L);
	if(codec->codec_read(codec, AC97_EXTENDED_MODEM_ID) & 1)
		return 1;
	return 0;
}