aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorAndrew Paprocki <andrew@ishiboo.com>2008-01-13 05:57:17 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:55 -0500
commite25bcdba1953268c10c308cd2e4526ea89bdbe0f (patch)
tree85ef9bf0b2c9344154d473bde25234e5a3c169e2 /sound/pci/hda/hda_intel.c
parent17467f23395f05ba7b361f7b504fe0f1095d5bb7 (diff)
[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 <andrew@ishiboo.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 3ae4b4c0ba2..25f35fa9706 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,
1933 chip->running = 1; 1933 chip->running = 1;
1934 power_down_all_codecs(chip); 1934 power_down_all_codecs(chip);
1935 1935
1936 dev++;
1936 return err; 1937 return err;
1937} 1938}
1938 1939