[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: Takashi Iwai <tiwai@suse.de>

authored by Takashi Iwai and committed by Jaroslav Kysela 4d060fd1 b1508693

+4 -2
+4 -2
sound/pci/ali5451/ali5451.c
··· 1993 1993 if ((err = snd_ac97_mixer(codec->ac97_bus, &ac97, &codec->ac97[i])) < 0) { 1994 1994 snd_printk("ali mixer %d creating error.\n", i); 1995 1995 if(i == 0) 1996 - return err; 1997 - } 1996 + return err; 1997 + codec->num_of_codecs = 1; 1998 + break; 1999 + } 1998 2000 } 1999 2001 2000 2002 if (codec->spdif_support) {