hi,
my distro is linuxfromscratch
yes,sound works as root.(sudo mplayer and sudo xmms works)
after changing permisions of /dev/dsp to rwx for all,sound work in mplayer(both for movies and songs.).relevant part of Mplayer's console output for movie file is:
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
and similarly for songs too.
However xmms still does'nt work.Console output is:
** WARNING **: alsa_get_mixer(): Attaching to mixer hw:0 failed: No such device
ALSA lib confmisc.c:670snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391snd_func_concat) error evaluating strings
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070snd_func_refer) error evaluating name
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143snd_pcm_open_noupdate) Unknown PCM default
** WARNING **: alsa_setup(): Failed to open pcm device (default): No such device
sudo xmms works.
Also,just after i changed /dev/dsp permisions to 777,KDE's sound center crashed with a SIGSEGV signal.
All this was in KDE.I have xfce installed too.In XFCE,i get the following result id /dev/dsp permision is 660(root-read/write group-read/write).
xmms does'nt give sound(same error as in kde above)
xine-ui does'nt play sound
mplayer plays sound both for songs and movie files.mplayer's console output for movie file is:
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/2ch/s16le
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
alsa-init: no soundcards found: Success
[AO ARTS] can't connect to aRts soundserver
ALSA lib confmisc.c:670-(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500-(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391-(snd_func_concat) error evaluating strings
ALSA lib conf.c:3500-(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070-(snd_func_refer) error evaluating name
ALSA lib conf.c:3500-(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968-(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143-(snd_pcm_open_noupdate) Unknown PCM default
[AO ESD] esd_open_sound failed: Connection refused
AO: [nas] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
With /dev/dsp permission as 777:
xmms still does'nt work(exactly same error message)
mplayer works fine
xine-ui works fine.
I must mention that xmms's ouptu plugin is set as ALSA.