X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=sound%2Fdrivers%2Fmtpav.c;h=0e17d2b5ce19bedbee5f6d35fe076949283dd143;hb=a5e0e970c06065a14844b406a0c2a59776a1ccc6;hp=c3e9833dcfd9af1ffc2d8c53e49a6894a9ed1ef3;hpb=b1a0aac05f044e78a589bfd7a9e2334aa640eb45;p=net-next-2.6.git diff --git a/sound/drivers/mtpav.c b/sound/drivers/mtpav.c index c3e9833dcfd..0e17d2b5ce1 100644 --- a/sound/drivers/mtpav.c +++ b/sound/drivers/mtpav.c @@ -706,7 +706,6 @@ static int __devinit snd_mtpav_probe(struct platform_device *dev) mtp_card->card = card; mtp_card->irq = -1; mtp_card->share_irq = 0; - mtp_card->inmidiport = 0xffffffff; mtp_card->inmidistate = 0; mtp_card->outmidihwport = 0xffffffff; init_timer(&mtp_card->timer); @@ -719,6 +718,8 @@ static int __devinit snd_mtpav_probe(struct platform_device *dev) if (err < 0) goto __error; + mtp_card->inmidiport = mtp_card->num_ports + MTPAV_PIDX_BROADCAST; + err = snd_mtpav_get_ISA(mtp_card); if (err < 0) goto __error;