Commit 20ef8085 authored by Dave Jones's avatar Dave Jones

[PATCH] i810 audio - skip softmodems

parent cf14e914
...@@ -2686,6 +2686,14 @@ static int __init i810_ac97_init(struct i810_card *card) ...@@ -2686,6 +2686,14 @@ static int __init i810_ac97_init(struct i810_card *card)
break; break;
} }
codec->codec_write(codec, AC97_EXTENDED_MODEM_ID, 0L);
if(codec->codec_read(codec, AC97_EXTENDED_MODEM_ID))
{
printk(KERN_WARNING "i810_audio: codec %d is a softmodem - skipping.\n", num_ac97);
kfree(codec);
continue;
}
card->ac97_features = eid; card->ac97_features = eid;
/* Now check the codec for useful features to make up for /* Now check the codec for useful features to make up for
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment