LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-10-2003, 09:50 PM   #1
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Rep: Reputation: 15
Any kind enough to give an ALSA tutorial?


My sound card is a Creative Soundblaster Audigy. Whenever sounds like MP3s play on Mandrake 9.2, the sound is noticeably duller than normal.

So I've tried downloading the latest ALSA drivers, version 0.9.3, and installing them, but after I followed the instructions and rebooted, a message popped up saying something like "Sound device could not be found, continuing with null output." I haven't had much success with previous ALSA installation attempts on Mandrake 9.1 and SuSE 8.2 either.

The nVidia drivers installation sticky in this Newbie forum is very helpful indeed. It'd be very nice if someone could likewise post an ALSA driver installation guide.
 
Old 11-11-2003, 02:10 AM   #2
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
the document to install the alsa driver (working great here with an audigy2, ac3 passthru and all) for your soundcard is at:

http://alsa-project.org/alsa-doc/doc...module=emu10k1

That is, if you have a regular Audigy, if not then:

http://alsa-project.org/alsa-doc/doc...module=emu10k1

The only tricky part is the setting up of modules.conf, you will need something like:

# 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

Then, after that, remove any sound modules for that card you may have loaded and run the driver init script:

/etc/init.d/alsasound start

...should load the driver ok.

feel free to stop by #creative on irc.freenode.net for further help.
 
Old 11-11-2003, 03:05 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
0.9.3? 0.9.8 is the current stable version.
 
Old 11-11-2003, 09:13 AM   #4
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks for the link, Stunned. I'll read it and try to get things working. Yes, ABZ, I'm sorry, I meant 0.9.8.

I'm unclear about what "CVS" is. It says that if I'm using CVS I have to type ./cvscompile or make build instead of ./configure but I don't know if I have it or not. Also, what is DEVFS???

Please tell me if the mentioned method will work well for my sound card, and any special steps I might have to take. This is the info of my sound card, given by Mandrake Control Center.


Vendor: ‎Creative Labs

Alternative drivers: ‎snd-emu10k1

Bus: ‎PCI

Bus identification: ‎1102:4:1102:53

Location on the bus: ‎0:8:0

Description: ‎EMU10K2 Audigy Audio Processor

Module: ‎audigy

Media class: ‎MULTIMEDIA_AUDIO

Last edited by Ken Ju-On; 11-11-2003 at 09:18 AM.
 
Old 11-11-2003, 09:28 AM   #5
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
CVS is code that can be checked out (downloaded) that is usually very unstable (or can be) and is the developer's version of whatever it may be. In general, you can avoid using CVS unless there is some feature in the CVS code of your package that is not in the regular version or you want to check it out for testing purposes or help develop.

So stick with 0.9.8 for now and ignore the cvscompile stuff
 
Old 11-11-2003, 09:59 AM   #6
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks, Stunned. I stuck with ./configure

I didn't know how to "remove any sound modules for that card I may have loaded" though

In that ALSA Quick Install guide, where it says


Now insert the modules into the kernel.

modprobe snd-emu10k1;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss



I do as it says, and it returns


/lib/modules/2.4.22-10mdk/kernel/sound/acore/snd.o: unresolved symbol snd_verbose_printk
modprobe: insmod /lib/modules/2.4.22-10mdk/kernel/sound/acore/snd.o failed
modprobe: insmod snd-emu10k1 failed


and


/lib/modules/2.4.22-10mdk/kernel/sound/acore/snd.o: unresolved symbol snd_verbose_printk
modprobe: insmod /lib/modules/2.4.22-10mdk/kernel/sound/acore/snd.o failed
modprobe: insmod snd-pcm-oss failed


and likewise for snd-mixer-oss and snd-seq-oss.



PLEEEEEEEEEEEEEEEEEEEEEAAAASE help me out with this as it is driving me nuts!! I followed the instructions in that Quick Install guide, but none my modprobes seem to work
 
Old 11-11-2003, 10:07 AM   #7
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
is your kernel version that you are running the same as your kernel-source?

check with:

'uname -a' to see what kernel you are running

then cd to /usr/src

and make sure /usr/src/linux or /usr/src/linux-2.4 is pointing to the kernel source that would be the same as your running kernel.

if not you can:

ln -sf /usr/src/your_running_kernel_source /usr/src/linux

then do a 'make clean' in the alsa directories and try again.
 
Old 11-11-2003, 10:08 AM   #8
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
also make sure you have and updated kernel-headers installed, it won't be the same version as your kernel but just make sure you have the most recent.

also make sure the gcc you are using is the same that was used to compile the kernel, though i don't think that is your problem.
 
Old 11-11-2003, 10:17 AM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Have you got the kernel-source installed that matches your running kernel?

Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't have it installed, try commanding

urpmi kernel-source
 
Old 11-11-2003, 10:21 AM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
# What compiler version do I have installed
gcc -v
gcc --version

# What is the running kernel and compiler installed
cat /proc/version
 
Old 11-11-2003, 06:50 PM   #11
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks all of you for your helpful tips.Sadly I haven't had progress. My source, headers, and gcc are all fine and I'm thinking about doing make clean in all ALSA directories and then going over the whole process again.

There is one curious thing though. In the Quick Install guide at
http://alsa-project.org/alsa-doc/doc...module=emu10k1
it tells the user to make a directory /usr/src/alsa and copy the ALSA source code into it. I'm not sure if this is really necessary, and I didn't do this anyway because I couldn't find the ALSA source code.

Is this step really necessary? If so, where can the ALSA source be found? I've downloaded the ALSA drivers, libs, and utils tarballs.

I still haven't got sound coming out of my Sound Blaster Audigy yet. Sound did come out before I attempted to install latest ALSA drivers, but it was dull. And a couple of weeks ago, I thought installing nVidia drivers was hard enough! (Now I've got em.)

Last edited by Ken Ju-On; 11-11-2003 at 06:53 PM.
 
Old 11-11-2003, 07:05 PM   #12
Ken Ju-On
Member
 
Registered: Jun 2003
Location: Unstable
Distribution: Slackware 9.1, Mandrake 9.1, SuSE 8.2, Mandrake 9.2
Posts: 108

Original Poster
Rep: Reputation: 15
Sorry to bug you all with my incompetency.

But I've gone through the whole process again. unzipping and ./configure;make;make install-ing of all ALSA packages - alsa-drivers, alsa-lib, alsa-utils - appears to go fine. It's only when I do


modprobe snd-emu10k1;
modprobe snd-pcm-oss;
modprobe snd-mixer-oss;
modprobe snd-seq-oss


that insmod snd-xxx failed appears for each command. I've checked out my source, headers, and gcc version just like Stunned and Fancypiper suggested. What could I possibly be doing wrong?
 
Old 11-11-2003, 07:08 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
It isn't here?
 
Old 11-11-2003, 10:55 PM   #14
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
What are the errors when modprobe? What is the distro?
 
Old 11-11-2003, 10:57 PM   #15
stuNNed
Member
 
Registered: Aug 2003
Distribution: Gentoo/Ubuntu
Posts: 134

Rep: Reputation: 15
ah, sorry, i scrolled up and saw it was mandrake.

it is possible doens't mandrake ship with alsa? i.e.:

rpm -qa|grep -i alsa

you may want to try and rpm -e --nodeps those packages before installing alsa from source.

it's possible the mdk alsa modules are somewhere non-standard in /lib/modules/kernel_version

hth.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I wanna learn Solaris-Newbie....give me a tutorial indian Solaris / OpenSolaris 2 04-26-2007 12:24 AM
ALSA only kind of works krock923 Debian 4 09-21-2005 09:20 AM
PCMCIA, What kind of card? Config. tutorial? pfak Linux - Hardware 2 01-09-2005 02:30 PM
Please, who can give me SUSE LINUX 9.1 tutorial wudangpairen Linux - Distributions 3 05-21-2004 09:19 AM
Can some kind soul make a 2.6 RH 9 specific tutorial? Vlad_M Red Hat 10 03-27-2004 12:54 PM


All times are GMT -5. The time now is 12:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration