Skip to content

Commit

Permalink
[ALSA] ali5451 - Don't build non-existing modem PCM
Browse files Browse the repository at this point in the history
ALI5451 driver
Don't build the modem PCM if the corresponding codec isn't detected.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Oct 7, 2005
1 parent b150869 commit 4d060fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sound/pci/ali5451/ali5451.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4d060fd

Please sign in to comment.