Skip to content

Commit

Permalink
[ALSA] hda-intel - Fix modem PCM creation
Browse files Browse the repository at this point in the history
HDA Intel driver
Fix a bug of modem PCM creation (due to a typo).

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai authored and Jaroslav Kysela committed Sep 12, 2005
1 parent 0dd119f commit a28f1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a28f1cd

Please sign in to comment.