Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with ALSA and Nforce2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
occe
Apprentice
Apprentice


Joined: 12 Feb 2003
Posts: 171
Location: Sweden

PostPosted: Sat Dec 06, 2003 2:13 pm    Post subject: Problem with ALSA and Nforce2 Reply with quote

Hi,

Ive just compiled alsa-driver,alsa-util and alsa-oss, and followed the conf. guides here and on www.alsa-project.org form my driver. Now i get good sound in programs like mplayer, but when i use for example xmms, i get a clear sound for like 20 sec, then it gets worse, here some noise, and then it works fine for another 20 sec....
When trying kdeapplications like noatun and juk, i just get loud noise, the music is almost not hearable. That could be a result after stopping arts. But isnt it possible to use kde without arts?

well, heres my configuration, i hope someone could tell me why its not working as it should.

/etc/modules.d/alsa
Code:

# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp
$

## ALSA portion
##alias char-major-116 snd
## OSS/Free portion
##alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss


##OSS/Free portion - card #2
#alias sound-slot-1  snd-card-1
#alias sound-service-1-0 snd-mixer-oss
#alias sound-service-1-3 snd-pcm-oss
#alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
options snd-pcm-oss dsp_map=1


and .asoundrc in my home.
Code:

pcm.nforce-hw {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "nforce"
}

#0,0 is analog out (i.e. headphone socket on the shuttle), and 0,1 is
#spdif out.

pcm.nforce {
type dmix
ipc_key 1234
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
}

ctl.nforce-hw {
type hw
card 0
}



btw, i also get this error when trying to emerge any of the alsa-xmms versions, dont have a clue why... :cry:

Code:

...
...
...
audio.c: In function `alsa_setup':
audio.c:649: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
audio.c:673: warning: passing arg 3 of `snd_pcm_hw_params_set_rate_near' makes pointer from integer without a cast
audio.c:682: warning: passing arg 3 of `snd_pcm_hw_params_set_buffer_time_near' makes pointer from integer without a cast
audio.c:698: warning: passing arg 3 of `snd_pcm_hw_params_set_period_time_near' makes pointer from integer without a cast
audio.c:707: too few arguments to function `snd_pcm_hw_params_get_buffer_size'
audio.c:708: too few arguments to function `snd_pcm_hw_params_get_period_size'
make[2]: *** [audio.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -I/usr/include/xmms -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DPLUGINDRAIN=NULL -O2 -march=athlon-xp -pipe -c init.c -MT init.lo -MD -MP -MF .deps/init.TPlo  -fPIC -DPIC -o init.lo
make[2]: Leaving directory `/var/tmp/portage/alsa-xmms-0.9.12/work/alsa-xmms-0.9.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-xmms-0.9.12/work/alsa-xmms-0.9.12'
make: *** [all] Error 2

!!! ERROR: media-plugins/alsa-xmms-0.9.12 failed.
!!! Function src_compile, Line 391, Exitcode 2
!!! emake failed

_________________
/occe

AMD64 3000+
Nvidia Geforce6600GT
Back to top
View user's profile Send private message
lockejr
n00b
n00b


Joined: 02 Oct 2003
Posts: 3
Location: Kansas

PostPosted: Sun Dec 07, 2003 1:04 am    Post subject: Reply with quote

I am having the exact same problem when I try to emerge alsa-xmms. I haven't run emerge sync in a couple of days though so I will see if that helps. If not hopefully someone has overcome this.
_________________
-Chris
http://StageOfBattle.org
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Thu Dec 11, 2003 5:11 pm    Post subject: Reply with quote

same here :?

greets,
hulk
Back to top
View user's profile Send private message
hulk2nd
Guru
Guru


Joined: 25 Mar 2003
Posts: 512
Location: Freiburg, Germany

PostPosted: Thu Dec 11, 2003 5:13 pm    Post subject: Reply with quote

i think i have found the problem!

https://bugs.gentoo.org/show_bug.cgi?id=35412
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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