From: Takashi Iwai Date: Wed, 7 Sep 2005 13:26:56 +0000 (+0200) Subject: [ALSA] hda-intel - Fix modem PCM creation X-Git-Tag: v2.6.14-rc2~50^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a28f1cda0d01f6f98e3bef6a07c483a90f6a35d6;p=linux-2.6-omap-h63xx.git [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 --- diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 2098de7c567..a8eaeb463b0 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -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; }