提交 4d060fd1 编写于 作者: T Takashi Iwai 提交者: Jaroslav Kysela

[ALSA] ali5451 - Don't build non-existing modem PCM

ALI5451 driver
Don't build the modem PCM if the corresponding codec isn't detected.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 b1508693
......@@ -1993,8 +1993,10 @@ static int __devinit snd_ali_mixer(ali_t * codec)
if ((err = snd_ac97_mixer(codec->ac97_bus, &ac97, &codec->ac97[i])) < 0) {
snd_printk("ali mixer %d creating error.\n", i);
if(i == 0)
return err;
}
return err;
codec->num_of_codecs = 1;
break;
}
}
if (codec->spdif_support) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册