Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
More alsa troubles abound
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
Yogurtron
n00b
n00b


Joined: 21 May 2005
Posts: 12

PostPosted: Sat Jun 04, 2005 11:29 pm    Post subject: More alsa troubles abound Reply with quote

Alright, been working hard on this, and still need help.
I've got an intel8x0 card, and i am telling alsa that in the appropriate places. I am also using the drivers built into the kernel for this.
I have no more error messages, had many different kinds, but they're gone now.
So yeah, so I try to play audio, EVERYTHING thinks I can, so I play a sound file, and it acts like its playing... but now sound.

So yeah, the ambiguity of this message is reflecting the new ambiguity of the problem. Where can I find an error message talking about what is exactly going on, so that I can find a reason for this?
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Sat Jun 04, 2005 11:57 pm    Post subject: Re: More alsa troubles abound Reply with quote

Yogurtron wrote:
Alright, been working hard on this, and still need help.
I've got an intel8x0 card, and i am telling alsa that in the appropriate places. I am also using the drivers built into the kernel for this.
I have no more error messages, had many different kinds, but they're gone now.
So yeah, so I try to play audio, EVERYTHING thinks I can, so I play a sound file, and it acts like its playing... but now sound.

So yeah, the ambiguity of this message is reflecting the new ambiguity of the problem. Where can I find an error message talking about what is exactly going on, so that I can find a reason for this?


First obvious question, sorry I have to ask.

Have you unmuted and turned up the volume with alsamixer or alsamixergui?

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Yogurtron
n00b
n00b


Joined: 21 May 2005
Posts: 12

PostPosted: Sun Jun 05, 2005 12:04 am    Post subject: Reply with quote

Heh, no worries, after seeign all of these forum posts (checked a lot), it only makes sense to ask.

But yeah, I have in the alsamixer, the console version (and later kmix, when i get back into kde, but yeah, that already had the settings from the alsa mixer, so nothing really to mess with).

Heh, if it were only that simple, ah well.

But yeah, that's unmuted, and still not sound.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Sun Jun 05, 2005 12:11 am    Post subject: Reply with quote

Yogurtron wrote:
Heh, no worries, after seeign all of these forum posts (checked a lot), it only makes sense to ask.

But yeah, I have in the alsamixer, the console version (and later kmix, when i get back into kde, but yeah, that already had the settings from the alsa mixer, so nothing really to mess with).

Heh, if it were only that simple, ah well.

But yeah, that's unmuted, and still not sound.


Have you tried something basic? Like trying aplay from the command line?

There are wave files to play in /usr/kde/3.4/share/sounds/ (or 3.3 if that's what you have).

If that works, its an application config problem, if it doesn't, its an alsa config problem.

So which is it? We'll go from there.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Yogurtron
n00b
n00b


Joined: 21 May 2005
Posts: 12

PostPosted: Sun Jun 05, 2005 12:22 am    Post subject: Reply with quote

aplay does the same thign as every other program, it starts, loads the mp3, wav, etc, says the relevant data about it (bitrate, sampling rate, etc), and acts like its playing it... but I hear nothing.

So yeah, aplay does not work from command line with me, well... it works, but does nothing, heh.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Sun Jun 05, 2005 12:42 am    Post subject: Reply with quote

Yogurtron wrote:
aplay does the same thign as every other program, it starts, loads the mp3, wav, etc, says the relevant data about it (bitrate, sampling rate, etc), and acts like its playing it... but I hear nothing.

So yeah, aplay does not work from command line with me, well... it works, but does nothing, heh.


Okay, so chances are good that alsa is not configured correctly.

There are two approaches to fixing this. One is to use the old fashioned .asoundrc file to make sure the correct pcm device is used, and the other is to emerge the latest and greatest alsa drivers to get software mixing and auto configuration.

Which would you prefer? (I recommend the latter because its just very cool to finally have multi sound ALSA running.)

To do the latter, follow this guide: Painless sound mixing using ALSA

To configure your .asoundrc isn't hard there are many posts in here about it. I'd post mine, except I don't have one anymore.

If you have an .asoundrc file, post it.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Yogurtron
n00b
n00b


Joined: 21 May 2005
Posts: 12

PostPosted: Sun Jun 05, 2005 5:39 am    Post subject: Reply with quote

okay, well, i do have an .asoundrc file, as many guides said to do, so i will post that at the end.

I have downloaded the alsa-drivers pack, errr emerged alsa-drivers, that is. but yeah, perhaps i shall try that painless one.. in a little bit (my laptop, that this is installed on, is being weird atm.... shuts down and goes into a mode its not supposed to be in (all lights deactivate on the status thing, and only the light for my power cord is on, and it flashing amber.... that one is only supposed to be off, or green (unpowered or powered), nowhere in my documentation does it say what the amber means for that light)) but yeah, that's jsut being weird in general, so i'm letting it recharge some (even tho windows reports it as having 70% power, but yeah). so i shall try in a bit.

anyway, here is my .asoundrc file, which I actually got off of this website: http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix#intel8x0_audio_card_integrated_on_nforce2_motherboards

But yeah, here it is:
Code:

# Set default sound card
# Useful so that all settings can be changed to a different card here.
pcm.snd_card {
     type hw
     card 0
}

# Allow mixing of multiple output streams to this device
pcm.dmixer {
     type dmix
     ipc_key 1024
     ipc_perm 0660 # Sound for everybody in your group!
     slave.pcm "snd_card"
     slave {
          # This stuff provides some fixes for latency issues.
          # buffer_size should be set for your audio chipset.
          period_time 0
          period_size 1024
          buffer_size 8192
     }

     bindings {
          0 0
          1 1
     }
}

# Allow reading from the default device.
# Also known as record or capture.
pcm.dsnooper {
     type dsnoop
     ipc_key 2048
     slave.pcm "snd_card"

## Possible artsd full duplex fix:
#     slave {
#          period_time 0
#          period_size 1024
#          buffer_size 8192
#     }

     bindings {
          0 0
          1 1
     }
}

# This is what we want as our default device
# a fully duplex (read/write) audio device.
pcm.duplex {
     type asym
     playback.pcm "dmixer"
     capture.pcm "dsnooper"
}

###################
# CONVERSION PLUG #
###################
# Setting the default pcm device allows the conversion
# rate to be selected on the fly.
# duplex mode allows any alsa enabled app to read/write
# to the dmix plug (Fixes a problem with wine).
pcm.!default {
     type plug
     slave.pcm "duplex"
}

# Apparently this is wrong (breaks mplayer for me opening the device)
#ctl.!default {
#     type plug
#     slave.pcm "snd_card"
#}

########
# AOSS #
########
# OSS dsp0 device (OSS needs only output support, duplex will break some stuff)
pcm.dsp0 {
     type plug
     slave.pcm "dmixer"
}

# OSS control for dsp0 (needed?...this might not be useful)
ctl.dsp0 {
     type plug
     slave.pcm "snd_card"
}

# OSS control for dsp0 (default old OSS is mixer0)
ctl.mixer0 {
     type plug
     slave.pcm "snd_card"
}
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Sun Jun 05, 2005 5:42 pm    Post subject: Reply with quote

I'm not so hot with .asoundrc. I just copied this one from the forums somewhere. If you have nforce2, try it, it may work for you.

The thing is, from what I can tell your .asoundrc is using the software mixer (at least I think it is), and this one is not:

Code:
pcm.nforce-hw {
type hw
card 0
}

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

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

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

ctl.nforce-hw {
type hw
card 0
}

_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Yogurtron
n00b
n00b


Joined: 21 May 2005
Posts: 12

PostPosted: Mon Jun 06, 2005 3:59 am    Post subject: Reply with quote

I just followed that guide you pointed me towards, complained about not knowing what hardware it was dealing with, then i found out that it was just that I had to unmute the channels for that.

However, it has lead me right back to the same place. No sound, yet everything on the computer thinks it does (sound playing programs run fine, no crashes like before, and send the command to play the sound apparantly, but nothing comes out of my speakers).
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Mon Jun 06, 2005 7:07 am    Post subject: Reply with quote

Yogurtron wrote:
I just followed that guide you pointed me towards, complained about not knowing what hardware it was dealing with, then i found out that it was just that I had to unmute the channels for that.

However, it has lead me right back to the same place. No sound, yet everything on the computer thinks it does (sound playing programs run fine, no crashes like before, and send the command to play the sound apparantly, but nothing comes out of my speakers).


Does sound come from Windows on the very same computer?

And, did you know its possible that Linux may put the sound out of a different connctor on the back of the computer.

My NFORCE 2 mobos all do that, it comes out on one connector for Windows and another for Linux.

Very anoying.

I bet that's it...

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Yogurtron
n00b
n00b


Joined: 21 May 2005
Posts: 12

PostPosted: Tue Jun 07, 2005 6:03 am    Post subject: Reply with quote

Well.. it's a laptop.... it only has the choice of the main speakers... or the headphones.. i've tested both... nothing.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2066
Location: San Jose, CA

PostPosted: Tue Jun 07, 2005 8:23 am    Post subject: Reply with quote

Yogurtron wrote:
Well.. it's a laptop.... it only has the choice of the main speakers... or the headphones.. i've tested both... nothing.


Man. This is really bugging me. I was sure we had it...

Does the laptop have speakers built in? Are they making sound?

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
legine
Guru
Guru


Joined: 27 May 2004
Posts: 555
Location: Germany

PostPosted: Fri Jun 10, 2005 11:22 am    Post subject: Reply with quote

Hi.

check this out
http://forum.skype.com/viewtopic.php?t=10858

maybe it brings you on some new ideas what to check :)

Cheer
Legine
_________________
quote from Spaceballs:
Dark Helmet:[...] we were told to comb the desert, so we're combing it! [puts down bullhorn] Find anything yet?!
Soldier: Nothing yet, sir.
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