Commit fbbcc35c authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Takashi Iwai <tiwai@suse.de>

AMD InterWave driver
- fixed the detection of STB board via pnp.
parent 345f0627
...@@ -229,12 +229,12 @@ static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard, ...@@ -229,12 +229,12 @@ static int __devinit snd_interwave_detect_stb(struct snd_interwave *iwcard,
break; break;
port += 0x10; port += 0x10;
} }
if (port > 0x380)
return -ENODEV;
} else { } else {
if ((iwcard->i2c_res = request_region(port, 1, "InterWave (I2C bus)")) != NULL) iwcard->i2c_res = request_region(port, 1, "InterWave (I2C bus)");
return -ENODEV;
} }
if (iwcard->i2c_res == NULL)
return -ENODEV;
sprintf(name, "InterWave-%i", card->number); sprintf(name, "InterWave-%i", card->number);
if ((err = snd_i2c_bus_create(card, name, NULL, &bus)) < 0) if ((err = snd_i2c_bus_create(card, name, NULL, &bus)) < 0)
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment