[ALSA] hda_intel: Fix multiple device support by incrementing device count
authorAndrew Paprocki <andrew@ishiboo.com>
Sun, 13 Jan 2008 10:57:17 +0000 (11:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:55 +0000 (17:29 +0100)
Fixes multiple device support by incrementing the static device counter
at the end of the azx_probe() call. Without this, subsequent probes would
always use the index specified for the first card.

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/hda_intel.c

index 3ae4b4c0ba23cce01263ab4d10e7687e07d1b0ad..25f35fa9706e4bd6eb6769cb1a8054fd2f310190 100644 (file)
@@ -1933,6 +1933,7 @@ static int __devinit azx_probe(struct pci_dev *pci,
        chip->running = 1;
        power_down_all_codecs(chip);
 
+       dev++;
        return err;
 }