Sound blaster Audigy card does not work
Hi,
Got a new "Sound blaster Audigy 2" PCI card. Did a kernel (2.6.11.11) recompile. But sound does not seem to be coming out. (Earlier, was using the main board's built in sound chip: Sound was ok with i810_audio driver. ) Was wondering if anybody had similar problems. Can you help me? Here is my lsmod output: -------------------------------- Module Size Used by -------------------------------------------------------------- snd_emu10k1x 19940 0 snd_emu10k1 100644 0 snd_rawmidi 24096 2 snd_emu10k1x,snd_emu10k1 snd_seq_device 8648 2 snd_emu10k1,snd_rawmidi snd_ac97_codec 78200 2 snd_emu10k1x,snd_emu10k1 snd_pcm 93344 3 snd_emu10k1x,snd_emu10k1,snd_ac97_codec snd_timer 24640 2 snd_emu10k1,snd_pcm snd_page_alloc 10052 3 snd_emu10k1x,snd_emu10k1,snd_pcm snd_util_mem 4480 1 snd_emu10k1 snd_hwdep 9312 1 snd_emu10k1 snd 54916 8 snd_emu10k1x,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep soundcore 9408 1 snd autofs 15488 0 parport_pc 28388 0 parport 36832 1 parport_pc ide_scsi 16164 0 scsi_mod 137192 1 ide_scsi ide_cd 41728 0 cdrom 41408 1 ide_cd ohci1394 34752 0 ieee1394 110480 1 ohci1394 usbcore 120264 0 (My apologies for the format of the columns, in lsmod output. Did not know how to make them appear with proper spacing. Even after editing the lsmod output with spaces, "Preview" seems to sqeeze them together) Thank you. |
After recompiling your kernel did you issue as a normal user "alsamixer"
and unmute and turn up your volumes? Then as root issue "alsactl store" to save your settings. You have the correct modules. To format it properly, use the code button above the window where you post, or put [_code_] before and [_/code_] after your output, without the underscores, of course. |
The "alsamixer" command returned :
bash: alsamixer: command not found Does it mean alsa mixer was not part of the kernel build? Thank you. |
you need to install alsamixer. That's what it looks like to me.
|
Where is alsamixer? Is it got by setting an option in the kernel config file and recompiling, or do we have to get it from another site? How to go about it?
Thank you. |
Quote:
Code:
mingdao@james:~$ whereis alsamixer Code:
mingdao@james:~$ which alsamixer Code:
mingdao@james:~$ $PATH From the output of "lsmod" you seem to have the correct modules. However, emu10k1x is support for the Dell OEM version of the Sound Blaster Live!. I do not think that's the card you have, is it? You can issue as root "modprobe -rv snd_emu10k1x" to remove it, and that should remove any modules it depends on, if they're usused. Therefore, my advice is to (1) remove the emu10k1x module, then (2) find the full path to alsamixer on your box, then (3) use "alsamixer" as a normal user (not root) to unmute and turn up your sound, then (4) run "alsactl store" as root to save your settings after you reboot. If you are running KDE, then you might need to select ALSA by opening the: KDE Control Center > Sound & Multimedia > Sound System > Hardware tab > and choose: Select the audio device: Advanced Linux Sound Architecture (ALSA) and then I have a check in the box beside Full duplex |
Hi,
"whereis" command did not give me any module path at all. A few questions here: 1. Is the kernel source code for 2.6.11.11 sufficient to make this card work? Or do we also need the alsa code downloaded from www.alsa-project.org. Somehow some thread says we need both. A bit confused here as to why alsa code package is needed when alsa support/code is already there in the 2.6.11.11 kernel. 2. What is the option to be set for alsa and sound in the .config file before the 2.6.11.11 kernel recompile?(did the recompile of the kernel many times!!) Thank you. |
The "whereis" command does not give module paths, and that wasn't the point. Issue and read "man whereis" to gain a deeper understanding.
Answers to questions: (1) The full kernel source available from http://kernel.org is sufficient; (2) To humor you, I'll post the kernel options from my 2.6.12.2 with the same sound chipset: Code:
# Sound |
Here is my lsmod output again with 2.6.12.2 kernel (new) running:
Code:
Module Size Used by Code:
# "Sound Blaster Audigy 2 Value" from Creative, model no: SB0400. Thank you. |
I see you've figured out how to use vBcode for your output...good on yah!
1 - Let me say that I have been assuming some things about RedHat, which might not be true. Slackware-10.1 ships with alsa-driver, alsa-lib, alsa-oss, and alsa-utils. These packages must be in your OS for what we're doing to work. To answer your question, alsamixer is part of alsa-utils. If RedHat doesn't ship with these packages, we will need to do some more installing. So the first thing I would like you to do is check for these packages. There is a GUI app in RedHat that checks for installed pkgs, but I don't remember what it is or how to use it. If you don't know either, and you're comfortable working from cli, you can do this. First, update you database so we know that everything in your system will be searched ... issue "su -" to switch users to root with root's environment, and then issue "updatedb" from there. After that returns you to a prompt, issue "locate alsa-driver alsa-lib alsa-oss alsa-utils" to see if you have those packages. If they're installed you should find something like this: Code:
mingdao@james:~$ locate alsa-driver alsa-lib alsa-oss alsa-utils 2 - For some reason your "lsmod" output has changed since your first post. Is that all that "lsmod" outputs? That doesn't show which modules they're used by, i.e. Code:
snd 45476 8 snd_pcm_oss,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep 4 - Why did you included ca0106? Did you read somewhere that this module is needed by your card? On the ALSA soundcard matrix for Creative Labs I see that module mentioned for a SB0410 ... but don't even see this SB0400 card at all. Keep that module in there, as it won't hurt anything if it's not needed. Looking at some lines of code in a kernel patch on Kernel.org I see + unsigned char ca0108_chip; /* Audigy 2 Value */ which leads me to believe this might the one you need. This patch was applied in 2.6.12-rc1-mm3, so it should be in the 2.6.12.x kernels. (So you should be good there with 2.6.12.2. Those changes are also included in the ALSA-1.09 version string.) I also saw this module mentioned on another forum. 5 - If you don't have ISA devices, you don't need to select ISA bus options here: Code:
# Bus options (PCI, PCMCIA, EISA, MCA, ISA) I went to the Creative Labs website and selected your card to download a driver for Linux. This is what it returned: "Sorry, no Creative updates are available for the selected query." These are some links to some information about your card that I've found: LinuxQuestions.org Hardware Compatibility List ALSA Opensrc Org Arch Linux Forums One major problem you have is that manufacturers change names of cards, change chipsets of cards with the same name, and things like that ... but they only write drivers for Windoze. So some hacker needs the code for the card to write it for Linux. Your card is fairly new, but the name is taken from an old card. ALSA doesn't have it listed, and everything on the web is confusing. Just try your best to do the steps above and let's at least get your distro where it can perform the proper functions to get this soundcard working under ALSA. You should have everything we need, because your onboard Intel soundchip worked. |
Hi Chinaman,
Figured out myself by doing a lot of tinkering with the alsa source code download. Had to comment a line in some of the c files for an include file which was missing. Also a variable declaration was resolved by me too in a few c files. Anyway the long story made short is: Was able to get the util source code compiled and installed. (The kernel support was not adequate. Had to get the source code tars - drivers, lib and util - from alsa project and then build it) The last one had some compilation problems, which was fixed by me.(whew!) issuing a alsamixer command works! But Thank you for all the help and research you had done for me in answering my previous post. |
So, do you have sound?
The problem seems to be that RedHat doesn't ship the ALSA packages. So that others could get it working, it would be good of you to post specifically what you did, and why the ALSA packages didn't work from ALSA ... if that's where you got them from and not some RedHat mirror. Which module are you using for your card now? If so, can you post your "lsmod" output? There's another guy in LQ with the same card who needs help... |
How my Sound Blaster Audigy 2 Value card (model SB0400) started working
Hi,
Here are a few steps done: 1. Got the kernel from kernel.org(2.6.12.2). 2. Recompiled it with the section for sound using .config you had specified: Code:
# Then chose 2.6.12.2 kernel in GRUB screen. 3. Got the following "tar.bz2 s" to my home directory: a: alsa-driver-1.0.9a.tar.bz2 (from http://www.alsa-project.org/alsa/ftp/driver/) b. alsa-lib-1.0.9rc4.tar.bz2 (from http://www.alsa-project.org/alsa/ftp/lib/) c. alsa-utils-1.0.9rc4.tar.bz2 (from http://www.alsa-project.org/alsa/ftp/utils/) 3.1. Did "tar xvjf " on each of the bz2 files. 3.2. cd /usr/src/; 3.2.1. Became root. Issueed "mkdir alsa" command. 3.3. Copied alsa-driver-1.09a, alsa-lib-1.0.9rc4, alsa-utils-1.0.9rc4 folders from home directory to /usr/src/alsa. 3.4. cd to the /usr/src/alsa-driver-1.09a folder. 3.4.1. Issued ./configure 3.4.2. Issued make 3.4.3. Issed make install 3.5. Similarly cd to /usr/src/alsa/(lib folder or util folder) Do steps 3.4.1 to 3.4.3 Some work is needed for utils alone: "make" will give error complaining about not finding alsactl.h on some c files: alsactl.c, names.c, state.c and power.c. Comment those lines in those c files: include "alsactl.h" by doing: /* include "alsactl.h" */ Also "make" complains about a few variables: "debugflag" and "force_restore". To resolve these do the following: 3.5.1. insert the line: extern int debugflag in names.c and 3.5.2. insert the line extern int force_restore; in state.c just after the include files portion of the files. Save those files with the changes. Now utils must go through a nice "make" and "make install". 3.6. Do a modprobe on snd-emu10k1. Here is my lsmod output: Code:
snd_emu10k1 120484 - 3.8. To test the sound card, open another console and issue: "speaker-test" Now sound comes out of the speaker plugged to the card. Hope this helps. My apologies for the detail. Thank you. |
All times are GMT -5. The time now is 08:13 AM. |