Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling Alsa support directly into kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jonasforssell
n00b
n00b


Joined: 27 Oct 2002
Posts: 63

PostPosted: Mon Jan 06, 2003 9:20 am    Post subject: Compiling Alsa support directly into kernel Reply with quote

Hello,

I grew tired of the struggle with alsa modules and decided to try compiling support directly into the kernel since I found the driver there.
I also enabled oss support.

To my surprise KDE worked well and so far no problems. The only thing is that alsa complains during startup about the modules and no module is apparently loaded (it still works though)

My questions are now:

1. Can I de-emerge the alsa-driver and alsa-oss packages now, and things will still work?

2. The alsasound scrips is given boot status. Do I need this or can I remove that one as well? How do I do that with rc-updae?

Thanks!
/Jonas
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Mon Jan 06, 2003 10:49 am    Post subject: Reply with quote

The main problem with compiling ALSA into the kernel is, the USE flag forces an alsa-driver (more specifically and alsa-lib dependancy, which depends on alsa-driver) to be merged with the program that is to add support into it.

Even the alsa-lib ebuild won't recognise support in the kernel and will fail to build without the alsa-driver package being installed, which won't work at all if you have alsa build into the kernel.

Portage hasn't learnt to cope with alsa in non-module form yet, but as it's in the 2.6 kernel, and that kernel being released quite soon, I imagine support will be popping up soon.

In answer to your questions... Yes, you can chuck the alsa* ebuilds, except that alsa programs won't build without alsa-lib installed, so you have to remove the alsa USE flag, and yes, you can get rid of the alsasound boot script, you no longer need it.

Do this by:
Code:
# rc-update del alsasound
and everything should be hunky dory!

Hope I've helped,
Chris
Back to top
View user's profile Send private message
encrypted
n00b
n00b


Joined: 15 Jan 2003
Posts: 3
Location: Johannesburg

PostPosted: Tue Jan 21, 2003 2:15 am    Post subject: What I did was.. Reply with quote

I also compiled alsa into my kernel, I prefer it in there so I dont have to recompile alsa support seperatly when I change kernels. I kept the alsa USE flag so apps would be compiled with alsa support, first emerge I done started to install alsa-drivers, so I wipped out my text editor and edited the alsa-lib ebuild file to not depend on alsa-drivers and now everything works great.

Changing it is very simple, backup the ebuild:
/usr/portage/media-libs/alsa-lib/alsa-lib-0.9.0_rc6.ebuild in my case.

Edit the file in your favourite text editor and find the lines that look like this:
Code:

DEPEND="virtual/glibc
   ~media-sound/alsa-driver-0.9.0_rc6"

and change them to look like this:
Code:

DEPEND="virtual/glibc"


And voila, done, now alsa-libs wont depend on alsa-driver.

Also remember that when the package is updated (or possibly after an emerge sync??) the dependencies will be back and you will need to zap alsa-driver again.
_________________
--------------------------------
End Of Encrypted message
Back to top
View user's profile Send private message
ebike
Guru
Guru


Joined: 07 Dec 2002
Posts: 384
Location: Christchurch, New Zealand

PostPosted: Tue Jan 21, 2003 10:23 pm    Post subject: Re: What I did was.. Reply with quote

encrypted wrote:
I also compiled alsa into my kernel, I prefer it in there so I dont have to recompile alsa support seperatly when I change kernels. I kept the alsa USE flag so apps would be compiled with alsa support, first emerge I done started to install alsa-drivers, so I wipped out my text editor and edited the alsa-lib ebuild file to not depend on alsa-drivers and now everything works great.

Changing it is very simple, backup the ebuild:
/usr/portage/media-libs/alsa-lib/alsa-lib-0.9.0_rc6.ebuild in my case.

Edit the file in your favourite text editor and find the lines that look like this:
Code:

DEPEND="virtual/glibc
   ~media-sound/alsa-driver-0.9.0_rc6"

and change them to look like this:
Code:

DEPEND="virtual/glibc"


And voila, done, now alsa-libs wont depend on alsa-driver.

Also remember that when the package is updated (or possibly after an emerge sync??) the dependencies will be back and you will need to zap alsa-driver again.


Hi,

Can you tell me how to compile Alsa into the kernel, I did not see it as a driver in 2.4.19, is it in 2.4.20??

Thanks
_________________
--
Politicians are like nappies (Diapers), you need to change them often, and for the same reason ....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum