[ALSA] hda-intel - Fix modem PCM creation

HDA Intel driver
Fix a bug of modem PCM creation (due to a typo).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2005-09-07 15:26:56 +02:00 committed by Jaroslav Kysela
parent 0dd119f703
commit a28f1cda0d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}