Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sound problems.. sort of works, snd-ice1724 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jcmuse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 86

PostPosted: Sat Oct 21, 2006 2:12 am    Post subject: sound problems.. sort of works, snd-ice1724 [solved] Reply with quote

hi, all
i follow the gentoo wiki for alsa and sound.
i have an maudio revolution 5.1 and the proper module installed for it (ice1724).
i can get sound with the mozilla flash plugin but the output is to only 1 speaker and it is kind of static-y. also cat /dev/urandom > /dev/dsp did work but now it just says: bash: /dev/sound/dsp: Device or resource busy

i can't get sound to work with anything else besides the flashplugin.
#mplayer -ao alsa file gives
"Could not open/initialize audio device -> no sound."

xine-ui and gxine don't give sound either. i've unmuted everything in alsamixer.

i've compiled my system with -arts alsa -gstreamer
i think xine isn't working properly but i could be wrong.
also, i can't select an output in xmms.


Last edited by jcmuse on Sat Oct 21, 2006 11:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Oct 21, 2006 10:08 am    Post subject: Reply with quote

jcmuse,

The message /dev/sound/dsp: Device or resource busy means that some other application has the /dev/sound/dsp device file open. It cannot be shared.

Please post the output of
Code:
ls -l /dev/snd
and
Code:
ls -l /dev/sound
so we can see exactly what sound devices you have.

Also, do you use esd or arts?
They are the Gnome and KDE sound daemons ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jcmuse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 86

PostPosted: Sat Oct 21, 2006 10:15 am    Post subject: Reply with quote

sure thing

localhost john # ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116, 0 Oct 21 06:08 controlC0
crw-rw---- 1 root audio 116, 24 Oct 21 06:08 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Oct 21 06:08 pcmC0D0p
crw-rw---- 1 root audio 116, 17 Oct 21 06:08 pcmC0D1p
crw-rw---- 1 root audio 116, 18 Oct 21 06:08 pcmC0D2p
crw-rw---- 1 root audio 116, 1 Oct 20 21:47 seq
crw-rw---- 1 root audio 116, 33 Oct 20 21:47 timer

localhost john # ls -l /dev/sound
total 0
crw-rw---- 1 root audio 14, 12 Oct 21 06:08 adsp
crw-rw---- 1 root audio 14, 4 Oct 21 06:08 audio
crw-rw---- 1 root audio 14, 3 Oct 21 06:08 dsp
crw-rw---- 1 root audio 14, 0 Oct 21 06:08 mixer
crw-rw---- 1 root audio 14, 1 Oct 20 21:47 sequencer
crw-rw---- 1 root audio 14, 8 Oct 20 21:47 sequencer2

I'm using xfce, compiled with -arts -gstreamer alsa

i don't use esd or arts that i know of.

also heres a link to what my alsamixer looks like. very confusing to me, have no idea what all those options are:
http://pix.nofrag.com/94/aa/d95b4a87c3f0f860439f3bfc559a.jpeg

btw, i'm not using 5.1. just some speakers plugged into the green port.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Oct 21, 2006 12:42 pm    Post subject: Reply with quote

jcmuse,

Thats all the right answers so far. Your USE -arts doesn't mean you are not using it. Only that you are not building optional support for it. Try
Code:
ps -Alf | grep arts
ps -Alf | grep esd
One hit is the command you are running. Any more and there is something worth looking at.

If you find an arts or esd running, kill it with
Code:
kill <pid>
then test sound again.

I don't understand your alsamixer very well either. All those IEC950 controls set the alarm bells ringing - they are normally related to the SPDI/F inputs and outputs, that is digital, not analoge. Can you post your /etc/asound.state file?
It contains all the mixer controls and settings as they were at your last shutdown, even the ones that may be outside the image in alsamixer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jcmuse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 86

PostPosted: Sat Oct 21, 2006 3:19 pm    Post subject: Reply with quote

john@localhost ~ $ ps -Alf | grep arts
0 R john 5910 5905 0 76 0 - 388 - 11:14 pts/0 00:00:00 grep arts

john@localhost ~ $ ps -Alf | grep esd
0 S john 5912 5905 0 76 0 - 389 pipe_w 11:15 pts/0 00:00:00 grep esd

does that mean it is not running?
how do find the pid ?

this page explains all of the alsamixer controls: http://seehuhn.de/comp/hardware/revolution

i think mine are set correctly, and i now have sound working with flash in both left and right speakers (apparently there is a bug that doesnt save the settings for right channel).

pastebin of asound.state: http://pastebin.ca/213645
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Oct 21, 2006 5:08 pm    Post subject: Reply with quote

jcmuse,

Yep -thats good, neither are running. The grep of your process list just found itself.
Code:
0 S john <PID> <PPID> 0 76 0 - 389 pipe_w 11:15 pts/0 00:00:00 grep esd

The number at <PID> is the process ID, the one at <PPID> is the parent Process ID.

I think flash uses /dev/dsp (The Emulated OSS interface). Try ALSA output with
Code:
mplayer -ao alsa /path/to/sound/file
As flash works, its a matter of finding the right setttings.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jcmuse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 86

PostPosted: Sat Oct 21, 2006 6:18 pm    Post subject: Re: sound problems.. sort of works, snd-ice1724 Reply with quote

jcmuse wrote:

#mplayer -ao alsa file gives
"Could not open/initialize audio device -> no sound."


hope that is it:) does it make a difference that i have alsa compiled in my kernel?
Back to top
View user's profile Send private message
jcmuse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 86

PostPosted: Sat Oct 21, 2006 8:07 pm    Post subject: Reply with quote

also:
localhost john # madplay -v /home/john/09\ \ something\ on\ the\ wing.mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
00:05:14 Layer III, 192 kbps, 44100 Hz, joint stereo (LR), CRC
12035 frames decoded (0:05:14.3), +0.2 dB peak amplitude, 369 clipped samples

i can play an mp3 fine with madplay. does this also use oss emulation?
arg! so close yet so far.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54851
Location: 56N 3W

PostPosted: Sat Oct 21, 2006 9:09 pm    Post subject: Reply with quote

jcmuse,

I don't know madplay. mplayer will do as its told
mplayer -ao alsa, tells it to use alsa
mplayer -ao oss tells it to use OSS.

Alsa compipled in is fine. A few things to check. Run emerge --info and look at your USE.
Is the alsa flag set there ?
If not all optional alsa support is missing from you multimedia apps
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jcmuse
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2006
Posts: 86

PostPosted: Sat Oct 21, 2006 10:29 pm    Post subject: Reply with quote

It wasn't :oops: thought i had put it in there

recompiled mplayer, xine, etc with newuse and all is good :)

Thanks for your help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum