Board.KolibriOS.org

Official KolibriOS board
It is currently Sat May 25, 2019 1:00 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Jan 15, 2013 6:58 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
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

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Tue Jan 15, 2013 9:22 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
Afaik, now Infinity try to load "sound.obj", then few other drivers. Anyway, well done!


Top
   
PostPosted: Tue Jan 15, 2013 9:25 pm 
Offline
Public Relations
User avatar

Joined: Mon Jun 07, 2010 12:01 pm
Posts: 1879
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).


Top
   
PostPosted: Tue Jan 15, 2013 9:50 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
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.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Tue Jan 15, 2013 10:08 pm 
Offline
Public Relations
User avatar

Joined: Mon Jun 07, 2010 12:01 pm
Posts: 1879
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


Top
   
PostPosted: Tue Jan 15, 2013 10:21 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
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.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Tue Jan 15, 2013 10:28 pm 
Offline
Kernel Developer
User avatar

Joined: Thu Sep 03, 2009 1:52 pm
Posts: 1619
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.

_________________
Сделаем мир лучше!


Top
   
PostPosted: Tue Jan 15, 2013 10:30 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
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?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Tue Jan 15, 2013 10:48 pm 
Offline
Public Relations
User avatar

Joined: Mon Jun 07, 2010 12:01 pm
Posts: 1879
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)


Top
   
PostPosted: Tue Jan 15, 2013 11:57 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1247
Realized in revision 3171

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Wed Jan 16, 2013 8:45 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5047
Works fine on my PC. Good job!

_________________
Через тернии к звездам


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited