Restored sound card MIDI by rolling back dos update file

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
mbrantley
Beta Tester
Beta Tester
Posts: 90
Joined: Sat Jun 09, 2012 4:49 am
Location: Mobile, Alabama USA

Restored sound card MIDI by rolling back dos update file

Post by mbrantley »

I just restored MIDI functions for my SoundBlaster card by rolling back dos.library.kmod to version 53.90. There's a current thread over at Amigans about lost MIDI functionality of sound cards since a recent update, but thought I would mention this here as well.
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 525
Joined: Sat Jun 18, 2011 5:06 pm
Location: North Florida, near the Big Bend

Re: Restored sound card MIDI by rolling back dos update file

Post by LyleHaze »

Mike,
this is the best place to post it, since this is where support happens. ;)

I've been doing a bit of detective work on this.
So far, we have confirmed that it happens with all three gameport CAMD drivers:
The EMU10kX, the Envy24HT, and the VIA686.

I have the ability to get inside CAMD.library, and I can confirm that the drivers
never even attempt to load up.

I have opened bugzilla report #8328, and I'll do whatever I can to support
finding and fixing this issue.

Thanks for your help,
Lyle
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 525
Joined: Sat Jun 18, 2011 5:06 pm
Location: North Florida, near the Big Bend

Re: Restored sound card MIDI [fixed]

Post by LyleHaze »

More information:

I was wrong, the problem IS in camd.library.
:oops:

The fix is in the pipeline, and will be distributed after appropriate testing.

If you need gameport CAMD support before the new library is available,
any dos_lib.kmod at or before version 53.115 will allow camd to load drivers.

When available, camd.library 53.3 will resolve the problem correctly.

Thank you for your patience.
Lyle
User avatar
ssolie
Beta Tester
Beta Tester
Posts: 1010
Joined: Mon Dec 20, 2010 8:51 pm
Location: Canada
Contact:

Re: Restored sound card MIDI [fixed]

Post by ssolie »

LyleHaze wrote:The fix is in the pipeline, and will be distributed after appropriate testing.
In the mean time, I do not recommend that users roll back dos.library.

I'll make the camd.library update available soon-ish. ;)
ExecSG Team Lead
Raziel

Re: Restored sound card MIDI [fixed]

Post by Raziel »

LyleHaze wrote:More information:

I was wrong, the problem IS in camd.library.
:oops:

The fix is in the pipeline, and will be distributed after appropriate testing.

If you need gameport CAMD support before the new library is available,
any dos_lib.kmod at or before version 53.115 will allow camd to load drivers.

When available, camd.library 53.3 will resolve the problem correctly.

Thank you for your patience.
Lyle
Thanks a lot Lyle

Might you share what the problem was?
Im just so curious ;-)

Thaks to ssolie for the soonish availability ;-)

Take care

Hubert
User avatar
LyleHaze
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 525
Joined: Sat Jun 18, 2011 5:06 pm
Location: North Florida, near the Big Bend

Re: Restored sound card MIDI [fixed]

Post by LyleHaze »

Raziel wrote:
Might you share what the problem was?
Im just so curious ;-)
Since I don't work on DOS, I really can not give any more
information, as it would all be guesswork.

I can say that the developer who handles DOS was
very helpful.

It has been a LONG time since CAMD needed any bug repairs.
Hopefully it will be another long time before the next one. :)
User avatar
colinw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 218
Joined: Mon Aug 15, 2011 10:20 am
Location: Brisbane, QLD. Australia.

Re: Restored sound card MIDI [fixed]

Post by colinw »

Raziel wrote:
Might you share what the problem was?
Im just so curious ;-)

Hubert
In a nutshell, the problems was a small bug in camd.library.

Incase you also want to know the entire nuts and bolts details of this issue, here it is....

I discovered late last year that I was getting a bug report about being unable to scan directories with a particular
piece of software, but only when using a particular filesystem. This turned out to be a discrepancy between the way
the dos.library handled ExamineDir() emulation for older filesystems and when newer supporting filesystems did it.

Basically, one of the data items was always being supplied by the emulator, whether you asked for it or not.
This would not normally be a problem, because you SHOULD have specified the correct flags for the respective
data items you actually wanted, but when the faulty code ran on a non emulated ExamineDir() filesystem,
it only gave you the items you specificly asked for, as expected.
This would make the faulty application code break that "assumed" the previously unspecified data item would
still be forthcomming.

At dos.library 53.116 I tightened up the ExamineDir() emulator to behave exactly like a supporting filesystem,
and as the documentation specified, so there were no inconsistencies between emulated and supported calls.
This small change made any faulty code consistently show up this problem, regardless of the filesystem in use.

It's just that no-one noticed this for a while, camd.lib wasn't really a high trafic area.
Raziel

Re: Restored sound card MIDI by rolling back dos update file

Post by Raziel »

@LyleHaze

Thank you very much for the fix :-)

@colinw

Wow :-)

Thank you very much for the deep insight.
I love to read about discovering and squashing bugs, dont know why...im strange ;-)

Take care

Hubert
User avatar
samo79
Posts: 580
Joined: Sat Jun 18, 2011 12:13 am
Location: Italy

Re: Restored sound card MIDI by rolling back dos update file

Post by samo79 »

Raziel wrote:I love to read about discovering and squashing bugs, dont know why...im strange ;-)
You are not the only one :D
Post Reply