LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2004, 05:48 PM   #1
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
alsa hell again


Ok, everytime I compile kernel 2.6, I alwayz get this trouble....
This is my config....
#
# Sound
#
CONFIG_SOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y

#
# PCI devices
#
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_ALI5451 is not set
[snip]
# CONFIG_SND_CS4281 is not set
CONFIG_SND_EMU10K1=m
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set


I run alsaconf as root. Look fine.... Then I try to alsamixer. Here's what I got:
alsamixer: function snd_ctl_open failed for default: No such file or directory

What's wrong???? When I play music, it looks fine but no sound out.....
I m using Slackware 10 and kernel 2.6.7
Thank you.....
 
Old 07-01-2004, 06:35 PM   #2
Kovacs
Member
 
Registered: Jul 2003
Distribution: FreeBSD 8.2 RELEASE
Posts: 607

Rep: Reputation: 32
The (Almost) Sure Way to Solve Slackware Alsa Problems:

1. Remove the Slackware alsa packages you currently have installed.
2. Compile your kernel with support for soundcore (ie. sound) only, and without support for oss or alsa.
3. Compile and install alsa-driver, alsa-lib and alsa-utils from source according to the exact instructions for your soundcard at http://www.alsa-project.org/
4. Run alsaconf and alsamixer followed by alsactl store.
5. If necessary, get /etc/rc.d/rc.alsa from the Slackware source tree, put it in /etc/rc.d and make it executable to take care of loading the sound drivers and mixer settings at boot.
 
Old 07-01-2004, 06:48 PM   #3
stef52
Member
 
Registered: May 2004
Location: Croatia
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
alsa

Try uninstalling all 4 alsa packages (alsa-driver, alsa-lib, alsa-utils, alsa-oss). After that compile alsa-lib and alsa-utils from source (Slack 10 CD4, or www.alsa-project.org). Since you compiled alsa into kernel you dont need alsa-driver and alsa-oss.

This is my 2.6.7 kernel config (I compiled in most of the stuff):

#
# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
# CONFIG_SND_DUMMY is not set
CONFIG_SND_VIRMIDI=m
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
CONFIG_SND_MPU401=m
.............
# PCI devices
#
CONFIG_SND_AC97_CODEC=y
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
CONFIG_SND_EMU10K1=y
......................
 
Old 07-02-2004, 06:55 AM   #4
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Hey,

I compile my kernel again. This time I don't include oss and alsa support. I just make soundcore as module. I remove alsa package then install from source.....

Run alsaconf...

Loading driver...
/usr/sbin/alsaconf: line 664: rcalsasound: command not found
Setting default volumes...
Saving the mixer setup used for this in /etc/asound.state.
/usr//sbin/alsactl: save_state:1061: No soundcards found...

And I don't have /dev/mixer, /dev/sequencer, /dev/midi.
what's wrong????
 
Old 07-02-2004, 07:31 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Hello,

I compiled kernel 2.6.6 kernel with alsa support fine and without compile alsa programs, just use the last alsa packages.
Here is my config for sound (card : SB 5.1 live) :
CONFIG_SND=y
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_MPU401_UART=m
CONFIG_SND_DUMMY=m
CONFIG_SND_MPU401=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_EMU10K1=m

all other sound features are not set
 
Old 07-02-2004, 09:08 AM   #6
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
I check when I use kernel 2.4.26, I got /dev/mixer and /dev/midi. But when I use my own kernel, 2.6.7, there is no such device....

Maybe this is the cause of my problem????
 
Old 07-02-2004, 09:35 AM   #7
stef52
Member
 
Registered: May 2004
Location: Croatia
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
There are 4 alsa packages: 1. alsa-driver, 2. alsa-oss, 3. alsa-lib, 4. alsa-utils
When you are compiling new kernel (2.6.X) you have to uninstall all of them and compile them from source for new kernel.
 
Old 07-02-2004, 12:03 PM   #8
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I do exactly the same as Kovacs said and it always works for me.

In the alsa-driver package is the script snddevices
this will provide /dev/mixer etc

from inside the alsa-driver dir run
./snddevices as root

then
chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi

(from the alsa quickinstall doc at the alsa site)

tobyl
 
Old 07-02-2004, 12:09 PM   #9
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Ok, I am tired now..... I use kernel provided by Patrick. I use alsa-driver from him. Now I can enjoy music. Go to h*ll with my own compiled kernel. Maybe this is the message from The Life that I should not wasting my time tweaking Linux. I should work with Linux. Linux should save my time not waste my time.

Now I am looking for installing kernel 2.6 provided by Patrick......
Thanks guyz......
 
Old 07-02-2004, 01:03 PM   #10
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Original Poster
Rep: Reputation: 31
Ok, I got clue now. The problem is kernel 2.6.7 is not support my sound card. I try to modprobe with Patrick's kernel but still null. sound is hell with kernel 2.6.7.

Bye bye......
 
Old 07-02-2004, 03:54 PM   #11
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Creative sound cards are supported by the latest kernel, which I guess you mean as you enabled emuk10k1. They are supported by ALSA (and OSS for that matter).

What card do you have that is not supported?
 
Old 07-02-2004, 04:08 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
When you are compiling new kernel (2.6.X) you have to uninstall all of them and compile them from source for new kernel.
That's not true, I always used officials alsa packages and always use kernels from www.kernel.org, alsa packages work fine.

[edit]
I must add that often sound problems come with the reboot after a fresh kernel compile but I used to fix that by rm /etc/asound.state (wich store alsa settings) and reconfig alsa (alsamixer, alsactl store)

Last edited by keefaz; 07-02-2004 at 04:12 PM.
 
Old 07-02-2004, 04:34 PM   #13
stef52
Member
 
Registered: May 2004
Location: Croatia
Distribution: Slackware
Posts: 35

Rep: Reputation: 15
How can you use alsa-driver,oss,lib packages compiled for 2.4.26 on a customized 2.6.x?????
It doesnt work!!!
 
Old 07-13-2004, 09:17 AM   #14
Dr.Lun
LQ Newbie
 
Registered: Apr 2003
Posts: 13

Rep: Reputation: 0
Hi!

Does anybody who has Creative Sound Blaster Live! has configured it (with alsa) to work with 5.1 speakers?

I managed that it works (bad) as a stereo (2 speakers left, 2 right) with woofer but it's still FAR from good.

Anyone has asound.state to share or some advice?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel-2.6.3 compiled with alsa but xmms alsa output dont plays demmylls Linux - General 3 09-01-2006 04:32 AM
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM
Slack 10 and alsa hell derfaust Slackware 7 10-07-2005 07:56 PM
ALSA-oss compatability works, but not programs intended for alsa ? qwijibow Linux - Software 5 03-14-2004 07:28 AM
ALSA on Debian, Kernel Source is There Alsa dosent see it? pfizur Linux - Software 3 12-27-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration