From: Andrew Paprocki Date: Sun, 13 Jan 2008 10:57:17 +0000 (+0100) Subject: [ALSA] hda_intel: Fix multiple device support by incrementing device count X-Git-Tag: v2.6.25-rc1~1127^2~117 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e25bcdba1953268c10c308cd2e4526ea89bdbe0f;p=linux-2.6 [ALSA] hda_intel: Fix multiple device support by incrementing device count 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 Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 3ae4b4c0ba..25f35fa970 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1933,6 +1933,7 @@ static int __devinit azx_probe(struct pci_dev *pci, chip->running = 1; power_down_all_codecs(chip); + dev++; return err; }