LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-10-2005, 07:07 PM   #1
pyromithrandir
LQ Newbie
 
Registered: May 2005
Distribution: Kubuntu Dapper Drake
Posts: 13

Rep: Reputation: 0
AC'97 audio codec installation trouble on FC3 while trying to "make"


I'm trying to install the drivers for the built in AC'97 audio codec on my Chaintech 7NJL6 motherboard. I downloaded the driver from the realtek site. I run the "./configure" without any problem, but when I run "make" I run into problems.
A ways into the make (too far for me to post the whole output), I start to get warnings, then errors;

[pyromithrandir@localhost alsa-driver-1.0.4]$ make
. . .

make[1]: Entering directory `/lib/modules/2.6.10-1.770_FC3/build'
CC [M] /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/hwdep.o
In file included from /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/hwdep.c:27:
/home/pyromithrandir/alsa-driver-1.0.4/include/sound/core.h:358:1: warning: multi-line comment
/home/pyromithrandir/alsa-driver-1.0.4/include/sound/core.h:377:1: warning: multi-line comment
In file included from /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/hwdep.c:27:
/home/pyromithrandir/alsa-driver-1.0.4/include/sound/core.h:358:1: warning: multi-line comment
/home/pyromithrandir/alsa-driver-1.0.4/include/sound/core.h:377:1: warning: multi-line comment
CC [M] /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/memalloc.o
CC [M] /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/sgbuf.o
CC [M] /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/memory_wrapper.o
CC [M] /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../acore/pcm.o

... stuff like this goes on for quite a while, with more multi-line comment warnings, then, toward the end...

In file included from /home/pyromithrandir/alsa-driver-1.0.4/kbuild/../drivers/serialmidi.c:31:
/home/pyromithrandir/alsa-driver-1.0.4/include/sound/core.h:358:1: warning: multi-line comment
/home/pyromithrandir/alsa-driver-1.0.4/include/sound/core.h:377:1: warning: multi-line comment
/home/pyromithrandir/alsa-driver-1.0.4/kbuild/../drivers/serialmidi.c: In function `tx_loop':
/home/pyromithrandir/alsa-driver-1.0.4/kbuild/../drivers/serialmidi.c:325: warning: passing arg 3 of pointer to function makes integer from pointer without a cast
/home/pyromithrandir/alsa-driver-1.0.4/kbuild/../drivers/serialmidi.c:325: error: too many arguments to function
make[3]: *** [/home/pyromithrandir/alsa-driver-1.0.4/kbuild/../drivers/serialmidi.o] Error 1
make[2]: *** [/home/pyromithrandir/alsa-driver-1.0.4/kbuild/../drivers] Error 2
make[1]: *** [_module_/home/pyromithrandir/alsa-driver-1.0.4/kbuild] Error 2
make[1]: Leaving directory `/lib/modules/2.6.10-1.770_FC3/build'
make: *** [compile] Error 2
[pyromithrandir@localhost alsa-driver-1.0.4]$


I don't understand these errors, and I may not be doing something that's rather obvious, but any help to install the driver would be appreciated.
By the way, I know the sound card works because I am able to use it when booted into Windows.
 
Old 05-11-2005, 12:17 PM   #2
xukosky
Member
 
Registered: Apr 2005
Distribution: Becoming Sid
Posts: 142

Rep: Reputation: 16
This have been posted before:

http://www.linuxquestions.org/questions/history/310792
 
Old 05-11-2005, 04:49 PM   #3
pyromithrandir
LQ Newbie
 
Registered: May 2005
Distribution: Kubuntu Dapper Drake
Posts: 13

Original Poster
Rep: Reputation: 0
Sorry, it didn't turn up with my searches.
thanks for the link
 
Old 05-11-2005, 05:45 PM   #4
pyromithrandir
LQ Newbie
 
Registered: May 2005
Distribution: Kubuntu Dapper Drake
Posts: 13

Original Poster
Rep: Reputation: 0
Actually, I'm still having trouble. (I couldn't test right away, so I thought it would probably help...)
The suggestions made for Buck1 in the other thread don't work for me. When I try to run the alsaconfig command, it says it's not found.
[root@localhost ~]# alsaconfig
bash: alsaconfig: command not found

I can run alsamixer, though. I did that and I made sure the volume was turned up, but sounds still won't play.
I tried running the soundcard detection utility, and after it asks me if I can hear a sound, which I tell it that I can't, it says, "Automatic detection of the sound card did not work. Audio will not be available on the system. Please click OK to continue."
 
Old 05-12-2005, 02:57 AM   #5
xukosky
Member
 
Registered: Apr 2005
Distribution: Becoming Sid
Posts: 142

Rep: Reputation: 16
It's very strange when the soundcard detection utility detected your soundcard properly (because you are sure it's AC97, isn't it) and you can not hear any sound.

Have you tried booting your computer with a live cd distro and trying to play any sound?
Is the soundcard enabled in bios?
Have you got more than one soundcard in your computer?
Have you got windows and the soundcard works in it?
 
Old 05-12-2005, 07:28 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Don't forget also

Are you sure the speakers or headphones are plugged into the correct output?
Are they on and is any volume control they may have turrned up?

The most probable cause for a condition like "the card is properly detected but you don't hear anything" is not because there's a problem with the card, but because there's a problem with the subsystem that makes the sound audible to the user.

Now as to the problem of it being "AC'97" (which the Chaintech site confirms):

Audio Subsystem

* With external high quality 5.1-Channel AC'97 Codec
* Complete software driver supports for Windows OS
* Optional S/PDIF out function

This is actually incomplete information. The thing is, there is not just one AC'97 codec that works for everything. Several different motherboard types and modems use variations on the AC'97 codec, and many sound chips that are not 'pure' AC'97 use AC'97 support code (as it is supposed to be a standard of some sort).

I have a VIA KM266A-based board, and the onboard sound is from the VIA 8233 Southbridge, using AC'97-- VIA AC'97, which has a specific kernel driver. ATI motherboards (yes, they make mobos too, apparently) with onboard sound have their own special AC'97 driver in the kernel, and Intel/SiS/nVidia/AMD/ALI based-boards have two special drivers: one for "regular" sound chips, and one for integrated modem chips which double as sound cards.

Since I can't find any information indicating that this mobo uses an outside audio chipset, I can only assume that it's using the nForce 2 Ultra MCPS Southbridge for sound, which theory is supported by the name of the Windows drivers offered on the Chaintech site (Cmidia AC'97 Codec Drivers). This name would seem like it's a merging of "C" for Chaintech and "idia" for Nvidia-- except that doesn't account for the "M".

"CM" plus "idia" suggests that this chip might be a variation on one of the C-Media chipsets, heavily customized by Nvidia (you really only see C and M together in relation to sound chip names when C-Media is involved). That strongly suggests that there is likely an additional special kernel module needed for support of this chipset, as does the fact that Chaintech themselves provide a specialized driver for Windows.

That sent me to the nVidia site, to check out the contents of their nForce drivers. This is what I found:

Quote:
Other distributions
If the distribution you are using provides a configuration mechanism for audio drivers, use it to select the nvsound driver module for use with the nForce audio device. Otherwise, manually edit the module configuration file.

If your configuration file already contains an entry for the i810_audio, snd-intel8x0, or nvaudio drivers (open-source audio drivers that supports the nForce audio controller), that entry needs to be commented out with a # or removed:

# alias sound-slot-0 i810_audio

Add the following line to the configuration file:

alias sound-slot-0 nvsound

On some distributions, you may need to replace sound-slot-0 with snd-card-0.

If you wish to have nvmixer audio settings automatically restored each time the nvsound driver loads, add the following lines to the configuration file for 2.4 kernels:

post-install nvsound sleep 1; /usr/bin/nvmix-reg -f /etc/nvmixrc -L >/dev/null 2>&1 ||:
pre-remove nvsound /usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1 ||:

For 2.6 kernels:

install nvsound /sbin/modprobe --ignore-install nvsound ; sleep 1; /usr/bin/nvmix-reg -f /etc/nvmixrc -L >/dev/null 2>&1 || :
remove nvsound { /usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove nvsound

For both 2.4 and 2.6 kernels, you should also edit /etc/rc.d/init.d/halt, or /etc/init.d/halt.local on SuSE distributions:

if grep -q "\(nvsound\)" /proc/modules && [ -x /usr/bin/nvmix-reg ]; then
/usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1
fi

For Red Hat Enterprise Linux 4 and Fedora Core 3, add the following line in /etc/rc.local:

/usr/bin/nvmix-reg -f /etc/nvmixrc -L >/dev/null 2>&1
So what we can learn from this snippet is:

1) you can use the kernel's snd-intel_8x0 drivers if you want-- so if that is not the kernel module that you are loading, you should be;

2) Whatever driver you downloaded (why you downloaded a supposed audio driver for a nVidia-based board by Chaintech from the Realtek site-- as Realtek is best known for network cards, and there is no indication that Realtek has anything to do with the audio chip on either this Chaintech board or nForce2 boards in general-- I cannot fathom), you'd likely do better to download and compile the nVidia drivers from their site at http://www.nvidia.com/object/linux.html rather than anything else (if you want to use an outside driver at all);

3) Fedora Core 3 needs special handling to use at least the nVidia nForce drivers (so it might need special treatment to handle the open-source variants as well).

Hope this helps.
 
Old 05-18-2005, 07:20 AM   #7
prasanth_p_bhat
LQ Newbie
 
Registered: May 2005
Location: India
Distribution: Fedora Core 1
Posts: 26

Rep: Reputation: 15
I am a newbie. I had a question. Do the user that you have logged in have the right to do this process. It seems like you are not the root user. $ in place of # and the user name. Will it affect the operation that you are trying to do.
 
Old 05-18-2005, 07:56 AM   #8
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Are you talking about the 'make' operation that the OP (original poster) is asking about?

If so, no, it will not affect the operation. Under normal circumstances, when compiling software from source-- assuming that the source tarball is extracted to a location where the user has write privileges (which the location should have, since the user had to save the tarball there in the first place, which is a write operation)-- both the ./configure and make operations can be performed by a user. Only the make install operation must be performed by root (because root is usually the only one with write permissions to the install directories).

However, it's often easier just to perform all three operations as root; otherwise the user has to cd to the directory, ./configure and make, then su to root, cd to the directory again, then make install. Just su-ing to root in the first place compacts the whole chain of events.

You do make a good point, though, since this set of operations specifically involves the kernel. One has a much better chance of being able to interoperate successfully with the kernel modules and libraries (which this compile wants to do) when doing so as root.

But generally it's not necessary, and in this specific case, the problem looks like something is actually wrong with either the codec or the kernel config, because the errors are code-related:

Code:
too many arguments to function
which indicates that the code is trying to compile (regardless of the fact that its a user and not root) but failing to do so, rather than the

Code:
No such file or directory
that would indicate a permissions issue (the user does not have rights to read or act upon the code or libraries necessary to compile).
 
Old 05-18-2005, 01:28 PM   #9
prasanth_p_bhat
LQ Newbie
 
Registered: May 2005
Location: India
Distribution: Fedora Core 1
Posts: 26

Rep: Reputation: 15
I do have a problem with the detection of the sound card. It is an onboard card Intel Corp. 82801BA/BAM AC'97 Audio (we have similar machines here and the desro on the other machine that the sound card works is fedora core 2.6.9-1.667) on a compaq machine. The destro is Fedora Core (2.4.22-1.2115.nptl). The hardware is not shown in the hardware browser and it is not detected by the system either. The other system has already detected the sound card and is working fine. I tried to detect it using sndconfig but was unable to do that because The device did not exist. What shall i do. There is only one intel driver and it gives a lot of errors.
 
Old 05-18-2005, 05:13 PM   #10
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Is the onboard sound enabled in the computer's BIOS?
 
Old 05-20-2005, 05:43 AM   #11
prasanth_p_bhat
LQ Newbie
 
Registered: May 2005
Location: India
Distribution: Fedora Core 1
Posts: 26

Rep: Reputation: 15
yes it is. The error messages are giving sounds to the box.

Prasanth
 
  


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
driver for "Corp. 82800DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller"? lukeprog Linux - Hardware 7 10-19-2005 07:33 PM
k3b: "error decoding audio tracks" and "could not unlock cd driver" lefty.crupps Linux - Software 7 10-13-2005 12:29 PM
Totem and RealAudio - "Audio codec 'Cook' is not handled" akbar14 Linux - Software 3 05-16-2005 10:47 AM
Upgrade from FC2 to FC3 broke audio -- "Unable to reset OSS driver" ericcarlson Fedora 1 01-20-2005 07:11 AM
driver for ADI AD1985 "82801EB AC'97 Audio" sound card ??? (Asus P4C800) christophe.dr Linux - Hardware 3 09-07-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:24 AM.

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