Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d060fd1 authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela
Browse files

[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: default avatarTakashi Iwai <tiwai@suse.de>
parent b1508693
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1994,6 +1994,8 @@ static int __devinit snd_ali_mixer(ali_t * codec)
			snd_printk("ali mixer %d creating error.\n", i);
			if(i == 0)
				return err;
			codec->num_of_codecs = 1;
			break;
		}
	}