Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
I have some sound problems with gentoo.
I created a kernel with genkernel and the configuration of the live cd, so the in-kernel alsa drivers should work.
I have used a gentoo installation on the same machine with the same kernel, so the kernel isn't the problem.
When i try to play a song with madplay, i get the following output:
Code:
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
ALSA lib dlmisc.c:118:(snd_dlsym_verify) unable to verify version for symbol _snd_pcm_plug_open
ALSA lib pcm.c:2108:(snd_pcm_open_conf) symbol _snd_pcm_plug_open is not defined inside [builtin]
audio: No such device or address
I have no idea what to do with it.
Does it have something to do with USE flags, ALSA_PCM_PLUGINS or ALSA_CARDS?
I have read a lot about /dev/dsp. But this is for OSS isn't it? I don't have /dev/dsp.
I also get an error window when I login to KDE, it says:
Code:
Sound server informational message:
Error while initializing the sound driver:
device: default can't be opened for playback (No such device or address)
The sound server will continue, using the null output device.
When i change the KDE sound system to OSS (with kcontrol) my sound in KDE works. When i chose the Threaded Open Sound System, it also works. But when i change it back to autodetect or alsa, it doesn't work and i get the error window.
And offcourse with KDE via OSS madplay still doesn't work.
I want to use KDE with alsa, whats wrong that it give me these errors?
In order for ALSA to work. The ALSA library have to be equal or greater than the ALSA drivers. Same goes true with ALSA utilities. After you update both the ALSA libraries and utilities, run the following command with root privileges.
revdep-rebuild --ignore --pretend
If anything comes up that needs to be re-installed, re-run it again by doing.
revdep-rebuild --ignore --ask --verbose
You may want to check $HOME/.asoundrc and /etc/asound.conf. If there is any lines in these files, comment each line by placing # in the beginning of each line.
Another problem is when ALSA libraries and ALSA utilities are compiled with a lower GNU gcc compiler version than the version that compiled ALSA drivers.
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol"
The following should list the ALSA version of the module (driver).
cat /proc/asound/version
Even if you do not have the ALSA libraries, try using OSS as the audio output device instead of ALSA. An ALSA module is backwards compatible with OSS. The following is an example to output to OSS using mplayer.
mplayer -ao oss file
Try doing potage updates to use the latest stable programs.
ALSA is working right now, what i did is setting all of the ALSA_PCM_PLUGINS and then emerging alsa-lib, alsa-utils and alsa-tools.
When i run /etc/init.d/alsasound restart I get these errors:
Code:
* Storing ALSA Mixer Levels ... [ ok ]
* Killing processes using ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
* Loading ALSA modules ...
WARNING: /etc/modprobe.conf line 69: ignoring bad line starting with 'alias'
* Loading: snd-card-0 ...
WARNING: /etc/modprobe.conf line 69: ignoring bad line starting with 'al [ ok ]
* Loading: snd-pcm-oss ...
WARNING: /etc/modprobe.conf line 69: ignoring bad line starting with 'al [ ok ]
* Loading: snd-seq-oss ...
WARNING: /etc/modprobe.conf line 69: ignoring bad line starting with 'al [ ok ]
* Loading: snd-seq-midi ...
WARNING: /etc/modprobe.conf line 69: ignoring bad line starting with 'al [ ok ]
* Restoring Mixer Levels ... [ ok ]
I will have a watch /etc/modprobe.conf for it.
When i run madplay while i listen music with amarok its says "audio: Device or resource busy". This has probably something to do with configuration. I'll search google for it.
Something i don't understand is why madplay (when amarok isn't active) plays the song with alot of disortion and way to fast, when amarok plays it ok.
The message "audio: Device or resource busy" means you are using OSS as the audio output device and your sound card can not handle multiple streams at once or KDE sound daemon is taking over and it is not using any sound mixing. For audio playing like chipmunks, your audio player is not set correctly to resample the audio to 48000 Hz. The ALSA library dmix does the sound mixing and by default it is set at 48000 Hz which may not be good thing for audiophile use.
For the error stating "WARNING: /etc/modprobe.conf line 69: ignoring bad line starting with 'alias'", you should check that line and find the file /etc/modules.d that has the line. Then comment it and do update-modules --force. Do not edit both /etc/modules.conf and /etc/modprobe.conf.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.