Commit a28f1cda authored by Takashi Iwai's avatar Takashi Iwai Committed by Jaroslav Kysela

[ALSA] hda-intel - Fix modem PCM creation

HDA Intel driver
Fix a bug of modem PCM creation (due to a typo).
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0dd119f7
......@@ -1252,7 +1252,7 @@ static int __devinit azx_pcm_create(azx_t *chip)
for (c = 0; c < codec->num_pcms; c++) {
if (! codec->pcm_info[c].is_modem)
continue; /* already created */
if (pcm_dev >= AZX_MAX_MODEM_PCMS) {
if (pcm_dev >= AZX_MAX_PCMS) {
snd_printk(KERN_ERR SFX "Too many modem PCMs\n");
return -EINVAL;
}
......
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