Page 1 of 1

Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 6:58 pm
by hidnplayr
I have created a simple 'driver' wich detects soundcard and then loads the real driver.
Thus it is no longer needed to rename the driver you want to use to sound.obj, but replace sound.obj with my service.

PS: it's a temporary solution untill we have a real driver loading subsystem.

If nobody objects, i'll upload it to SVN and rename current sound.obj to intelac97 (or something else).

http://ftp.kolibrios.org/users/hidnplayr/sound.asm

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 9:22 pm
by SoUrcerer
Afaik, now Infinity try to load "sound.obj", then few other drivers. Anyway, well done!

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 9:25 pm
by yogev_ezra
It's great! But we now also have "Intel HDA" driver :wink:
And I think Serge changed something in kernel regarding order of loading of sound drivers (as SoUrcerer wrote).

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 9:50 pm
by hidnplayr
Ok, added intel_hda devices to the list.
Can somebody point me to the mentioned new functionality?
I could not find such a thing in current sound.asm or infinity.asm.

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 10:08 pm
by yogev_ezra
LOL it was hard to find because it was only mentioned in chat log from 2012-03-12:
KolibriBot « Mon Mar 12, 2012 9:53 pm » New SVN revision #2454 by Serge in /kernel/trunk: try to load HDA driver, as requested

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 10:21 pm
by hidnplayr
Thanks Yogev_ezra.

That only tries to load intel_hda.obj if sound.obj fails to load (detect a card).
I think it's not correct to do this in kernel.

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 10:28 pm
by CleverMouse
According to the log and to the diff, Serge has only changed a driver name from "sis" to "sound_hda"; the original author is diamond.

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 10:30 pm
by hidnplayr
Clevermouse: thanks for explaining, my russian is still not that good yet :)

So, anybody objects to remove this nonsense and add my piece of art?

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 10:48 pm
by yogev_ezra
hidnplayr wrote:So, anybody objects to remove this nonsense and add my piece of art?
I am all with you - I think the only reason the old code existed is because nobody has written such service util until now 8)

Re: Sound service to automatically load correct driver.

Posted: Tue Jan 15, 2013 11:57 pm
by hidnplayr
Realized in revision 3171

Re: Sound service to automatically load correct driver.

Posted: Wed Jan 16, 2013 8:45 pm
by Leency
Works fine on my PC. Good job!