Commit dc37bf6e authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] fixes als100 not detecting opl3

ALS100 driver
This patch fixes issue when opl3 device couldn't be found
due to numbering of devices in pnp card, because search of
opl3 device started from mpu device, which could have number
greater than opl3 could.

Example:
MPU is 00:01.03
and
OPL is 00:01.01
Signed-off-by: default avatarAnton Romanov <theli@ukr.net>
Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
parent 8d847c97
......@@ -121,7 +121,7 @@ static int __devinit snd_card_als100_pnp(int dev, struct snd_card_als100 *acard,
return -ENODEV;
}
acard->devmpu = pnp_request_card_device(card, id->devs[1].id, acard->dev);
acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->devmpu);
acard->devopl = pnp_request_card_device(card, id->devs[2].id, acard->dev);
pdev = acard->dev;
......
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