LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Alsaconf wont work after compiling new kernel (https://www.linuxquestions.org/questions/slackware-14/alsaconf-wont-work-after-compiling-new-kernel-141944/)

Kebos 02-03-2004 04:45 PM

Alsaconf wont work after compiling new kernel
 
So... i just compiled my kernel from 2.4.22 to 2.6.0 and before i did the compiling, my sound worked perfectly. And now my sound don't work. I tried Alsaconf but it says something like: Cannot Detect PNP (something)... and it asked me if i want to scan for legacy thing. I'm using Slackware 9.1

pezplaya 02-03-2004 04:50 PM

You probably have to compile the alsa module for kernel 2.6.

Kebos 02-03-2004 04:55 PM

umm..... lol, im clueless to how to do that. Do i do anything different when compiling my kernel? Or do i just do: make menuconfig and twinker a bit?

pezplaya 02-03-2004 04:59 PM

No, you don't need to recompile your kernel. A module saves you from doing that.

I wrote this thing how to remove the version of alsa that came with slack, and install a newer version. I would wait to see if other people respond with different ideas first. I'm not sure if its the same with 2.6.. I haven't upgraded my kernel yet.


Here it is if you want it:



Installing ALSA (latest version)
Needed packages: alsa-driver, alsa-oss, alsa-utils, alsa-lib, alsa-tools

To begin, remove all ALSA packages that are currently installed (remove packages as root).

# removepkg alsa-driver
# removepkg alsa-oss
# removepkg alsa-utils
# removepkg alsa-lib
# removepkg alsa-tools

Download the latest version of ALSA from http://www.alsa-project.org/. Links to download the latest version should be on their main page.
Untar the packages (extract as user):

$ tar -xvjf alsa-driver*.tar.bz2
$ tar -xvjf alsa-lib*.tar.bz2
$ tar -xvjf alsa-utils*.tar.bz2
$ tar -xvjf alsa-oss*.tar.bz2
$ tar -xvjf alsa-tools*.tar.bz2

Move to the alsa-driver directory. Then ./configure, make. Login as root and make install
Move to the alsa-lib directory. Then ./configure, make. Login as root and make install
Move to the alsa-utils directory. Then ./configure, make. Login as root and make install
Move to the alsa-oss directory. Then ./configure, make. Login as root and make install
Move to the alsa-tools directory. Then ./configure, make. Login as root and make install

Go to http://www.alsa-project.org/alsa-doc/ and find your sound card. Follow the instructions on their web site. Edit your /etc/modules.conf file according to their web site.

I have an Audigy Platinum card, so I would add this to my /etc/modules.conf file:

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

Change the permissions on /dev/mixer and /dev/dsp. Also make sure that your user is included in the group that /dev/mixer and /dev/dsp are in.
#chmod 666 /dev/mixer
#chmod 666 /dev/dsp
Reboot. Now open XMMS, open properties and configure the ALSA output plugin.
If you get an error from XMMS, or if you try adjusting the volume in gnome or KDE and get an error that says something like
Unable to open audio device '/dev/mixer'.
Please check that you have permissions to open '/dev/mixer'
and that you have sound support in your kernel.
Then edit your /etc/rc.d/rc.local file and add the following information:
ln -sf /dev/mixer0 /dev/mixer
ln-sf /dev/dsp0 /dev/dsp

Reboot, and that should have fixed the problem. Good luck.

Kebos 02-03-2004 06:30 PM

I've solved the problem, thx anyways! What i did was i edited the rc.modules and i saw mostly everything was commented. So i removed the commented line that said: modprobe cs4232 which was my sound driver. So instead of using alsaconf i did this. thx

Whitehat 02-03-2004 10:28 PM

Just for future reference....

I had a similar problem.

I solved it by using SWARET to upgrade all my alsa stuff.

After that I ran alsaconf and all worked fine :)

Cheers,
Whitehat


All times are GMT -5. The time now is 10:14 PM.