can not get sound to work, nor alsa mixer... on a CMedia on board chip
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can not get sound to work, nor alsa mixer... on a CMedia on board chip
Hello everyone,
i have slackware 10.2 and at this point i have twice installed it in different computers (a very old pII and a rather speedy p5 (so to speak) at 3GHz... completely different systems, yet with the basic kernel 2.4.31 the sound is non existent... and i have made my own kernels too based on the 2.6.17.3 version...
i have gone Very thoroughly through the options to make sure i haven't forgot to add STRAIGHT to the kernel (no modules) all the bits of the kernel that are sound related... ie anything that is alsa and oss related (even though i don't exactly know, is alsa basically the next step after oss or am i wrong?
anyhow all these options (ask me for a hard copy of the config file ifyou need it ) i have included..
if i try to play an mp3 with mpg321 i get:
Code:
ALSA lib confmisc.c:560:(snd_determine_driver) could not open control for card 0
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name
ALSA lib conf.c:3479:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:3948:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2090:(snd_pcm_open_noupdate) Unknown PCM default
No default libao driver available.
if i do 'alsamixer' i get
alsamixer: function snd_ctl_open failed for default: No such device
I really don't know where to start from to fix things.
I have the onboard sound card of Asus - P5GD2 motherboard.. its a C-Media chip..
when i do 'lspci' i get the following concerning the audio controller:
00:1b.0 Class 0403: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
and i have included in kernel support for C-Media 8738 and 8338, Intel/sis/nvidia/amd/ali AC97 controller, and SB Audigy (just in case they are compatible) under device driver->sound-> A.L.S.A -> pci devices.
also a few options from the O.S.S. submenu under 'sound'..
ok scratch what i said about mpg321... i was using it wrongly..
i don't get all this error msg i wrote.. it says 'playing the file at 44.1kHz' etcetc. but i do not hear any sound.. then again that might be because the sound is muted.. but i can not get to alsa mixer...
so the question still stands... how should i start approaching this problem with the alsa mixer?
thank you
nass
I think you've got two conflicting ideas working at the moment ...
If you use a stock kernel, then the alsa-drivers will be provided for you in a separate package (alsa-driver-<version>-<kernel version built against>). If you rebuild your kernel then you need to a) rebuild the alsa-driver package against your new kernel or b) make sure you build the modules relating to your sound in your new kernel.
You've built everything into your kernel, but, your kernel doesn't know what to use - you should build these things as modules and then run alsaconf and let your system sort it out!
It's been a while since i've used a 2.4 kernel and alsa, but I recall making new alsa-driver packages using the slackbuild script and the alsa-driver source, you may wish to do the same.
Once you've sorted access to alsa-mixer, have a read of this thread http://www.linux-on-laptops.com/foru...php/t-165.html regarding (what I assume is) your audio chip to see if you can avoid the common pitfalls they found.
You shouldn't use slapt-get in the first place. ALSA is included with the default
Slackware-10.2 installation. And when you compile a 2.6.x.y kernel you enable
ALSA in the kernel.
[rant]
Using a third party package manager such as slapt-get or swaret, etc. is just
asking for trouble. Use official Slackware packages or compile from source and
make your own Slackpacks with makepkg, checkinstall, or SlackBuild scripts.
[/rant]
If that doesn't work, then you'll need to recompile your kernel with these options:
Code:
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
# CONFIG_SND_SEQUENCER is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_AC97_BUS=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM 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_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS5535AUDIO is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
After that the above modprobe command line should work.
Last edited by Bruce Hill; 08-03-2006 at 08:49 AM.
Finally,
managed to get sound playing using the snd_hda_intel module..
i run alsaconf and it found the audio device.. so far so good.
thank you for your help.
but the problem is not over yet..
i have install the lastest alsa driver, lib and utils a while ago (ie before the last kernel compile) but i still can not get into alsamixer.. it gives me that same msg as before.
also from inside KDE the Kmix mixer is just an empty window ie no mixer is present there either... how should i tackle this?
hey, where did you figure out that there is a version mismatch? i did install the alsa 1.0.11 driver , lib and utils (without deleting anything first - don't don;t quite know how to perform an unistall yet - enlighten me if you can). and i figured that should work.. it doesn't what modules should i unload or what else you think i should do..?
thank you
nass
Originally posted by nass
when i do 'slapt-get --installed | grep alsa' i get:
alsa-utils-1.0.9a-i486-2 [inst=yes]: alsa-utils (Advanced Linux Sound Architecture utilities)
alsa-driver-1.0.9b_2.4.31-i486-1 [inst=yes]: alsa-driver (Advanced Linux Sound Architecture drivers)
alsa-lib-1.0.9-i486-1 [inst=yes]: alsa-lib (Advanced Linux Sound Architecture library)
alsa-oss-1.0.9-i486-1 [inst=yes]: alsa-oss (library/wrapper to use OSS programs with ALSA)
Please disregard that -- those are the packages in Slackware-10.2. I guess the a and b doesn't matter.
In Slackware it's best to use Slackware packages and "upgradepkg <package-name>" so that you let the pkgtool app remove the old and install the new. If you're going to compile from source rather than using a package, then use "removepkg <package-name>" for the already installed version first, so that you don't create entropy in your system.
How to remove installed software? You should check it's INSTALL or README file which came with the source. That's why in Slackware the best method is to build Slackpackages and use pkgtool. Issue "man pkgtool" and read to familiarize yourself.
There is no need to upgrade the ALSA packages when you build a new kernel. You simply choose the modules that I previously posted to you; because ALSA is in the 2.6 kernel.
i see what you mean..
however i have already got the source 1.0.11 and installed it as root in the pc.
and an update if i run alsamixer as root the alsamixer window appears where everything is muted apart from the pc speak volume... if i unmute any of the other (ie PCM, Surround, Center, LFE, side, IEC958) i get the '00' in place of 'MM' but i can not increase of decrease the sliders. thats not normal behaviour is it?
if i run alsamixer as a user i get the aforementioned error, even though the alsamixer attrib are -rwxr-xr-x ...
hm whats funny is that know slapt-get -installed gives me still the 1.0.9 version... the alsamixer version is of course 1.0.11..
finally i don't seem to have the utilities upgradepkg nor removepkg, even though i have carried out my linux installeation enabling all packages to be installed..
still looking into it
nass
got the source 1.0.11 and installed it as root in the pc
Something seems to be wrong with your install. My best advice is, once
again, quit using slapt-get and only use official Slackware packages
using pkgtools.
Quote:
if i run alsamixer as root
You shouldn't run "alsamixer" as root; run it as a normal user.
Quote:
i get the '00' in place of 'MM' but i can not increase of decrease the sliders. thats not normal behaviour is it?
It is not normal behavior.
Quote:
the alsamixer attrib are -rwxr-xr-x
Those permissions are correct.
Quote:
slapt-get -installed gives me still the 1.0.9 version
What does "ls -l /var/log/packages/alsa*" output?
Quote:
i don't seem to have the utilities upgradepkg nor removepkg
What does "ls -l /var/log/packages/pkgtools*" output?
Now for the good news...
Slackware Linux is recoverable when other OSes would be fubar.
I use swaret, but alsa is in my excludes list along with kernel packages.
Kernel sets plus matching alsa-driver should ALWAYS be carefully manually installed, making sure that lilo is run.
Just to add a bit of clarity, in case that last post confuses you.
If you compile your own 2.6 series kernel, you do NOT need to get
another ALSA driver, lib, or utils. I believe David is referring to
a case where someone installs a Slackware kernel package ONLY.
but how is slackware recoverable?
the thing is i have compiled the 1.0.11 source of alsa... and it has been installed on the pc (somewhere) and at this point, when i do:
ie only the alsapackage that came with the installation. so i can not do removepkg alsa-1.0.11...
i can however removepkg alsa-1.0.9 and then built an alsa-1.0.11 slackware package... i wonder though if it will work since in the alsa installation manual it nowhere states explicitly to built a package for slackware.. so i had assumed and simple ./configure;make;make install would have sufficed...
nass
Look in the source of the alsa-1.0.11 files you installed, and perhaps there
is an INSTALL, README, or similar file which tells you how to uninstall.
There is also the possibility that you could use "removepkg alsa-*" to get rid
of the original Slackware packages. Would it then be clean?
You could also use Pat Volkerding's SlackBuild scripts to build Slackpacks of
those new versions.
My first choice would be to remove the ones you installed from source, then check
your kernel for the modules I previously posted to you.
A simple "./configure;make;make install" installed new versions of packages that
were already in your system. What new files did it install to where? What old files
did that overwrite?
What does "ls -l /var/log/packages/pkgtools*" output?
What is your present "lsmod" output now that sound works?
What is the output of "uname -a" ?
What is the output of "cat /location/of/your/present/kernel/.config | grep -i snd" ?
What is the error when you run "alsamixer" in a terminal as a user (not root)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.