Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa becoming a PITA.
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
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Mon Sep 04, 2006 7:07 pm    Post subject: Alsa becoming a PITA. Reply with quote

I've been toiling with kernel-based ALSA for three weeks now, with no success. http://pastebin.com/783607here is my kernel config. (2.6.17-r6)

I've enabled the alsa useflag and I also have 'ALSA_CARDS="ca0106" ' in my make.conf. The initscript starts with no errors. None of my channels are muted, but I still have no sound, and xmms, mplayer, etc. all give me 'no sound device' error messages.

Any idea what it could be? and any other files you need to see?

EDIT: fixed link...whoops

EDIT: Fixed fixed link. ;) --pjp
_________________
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Back to top
View user's profile Send private message
suicidal_orange_II
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 299

PostPosted: Mon Sep 04, 2006 7:36 pm    Post subject: Reply with quote

Not got any specific advice but ALSA_CARDS is only used by alsa-driver from portage and not needed if you are going to use in kernel alsa. With that said have you tried alsa-driver? it tends to be a bit newer and may fix your problem.

Another thought - do you/did you use oss before? It is possible that all your programs are defaulting to it and therefor cant find the device. Try changing the output device in xmms (being the easiest to change). I assume from the asking about files you are new to Linux so dont be offended if you arent :)


Suicidal_Orange
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Mon Sep 04, 2006 7:49 pm    Post subject: Reply with quote

never used oss. Alsa-driver seems buggy as I always used kernel-based alsa on this box and it always worked fine.
_________________
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Back to top
View user's profile Send private message
suicidal_orange_II
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 299

PostPosted: Mon Sep 04, 2006 8:05 pm    Post subject: Reply with quote

oops, looked at your post count, your far from new :) alsa-driver can be a pain what with having to recompile it with every kernel upgrade but I wouldnt describe it as buggy. If you could sit it out 2.6.18 should be out soon, but that is of little comfort if you want sound today.

What kernel did you upgrade from? not that I can offer any help (I dont have a soundblaster) but many do and this may help them. Sorry I couldn't be more helpful


Suicidal_Orange
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Mon Sep 04, 2006 8:25 pm    Post subject: Reply with quote

It's a SB Live! 24-bit:
Code:
thunderdome brewer # cat /proc/asound/cards 
0 [CA0106         ]: CA0106 - CA0106                       Live! 7.1 24bit [SB0410] at 0x1000 irq 18


And it doesn't show errors when I restart it:
Code:
thunderdome brewer # /etc/init.d/alsasound restart
 * Service alsasound stopping
 * Storing ALSA Mixer Levels ...                                          [ ok ]
* Unloading ALSA ...                                                     [ ok ]
* Unloading ALSA modules ...                                             [ ok ]
 * Service alsasound stopped
 * Service alsasound starting
 * Loading ALSA modules ...                                               [ ok ]
* Restoring Mixer Levels ...                                             [ ok ]
* Service alsasound started


And FTR, for all practical purposes, you could call me a noob-- maybe an experienced noob. I've been around these forums long enough to know how to get help without sounding like an idiot... :-)

Anything else?
_________________
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Back to top
View user's profile Send private message
PaulSorensen
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2004
Posts: 80
Location: Chicago, USA

PostPosted: Mon Sep 04, 2006 8:43 pm    Post subject: What does aplay say? Reply with quote

I'd try to play a .wav file with aplay (a native alsa command line player) - just to see what it's output is.

[EDIT]By the way - I've been using the kernel alsa for a long time without any problems.[/EDIT]


Last edited by PaulSorensen on Mon Sep 04, 2006 9:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Mon Sep 04, 2006 8:48 pm    Post subject: Reply with quote

Seriously mate, and I've helped enough folk with ALSA problems on various hardware, use the alsa-driver package (as well as oss) instead of the kernel ALSA drivers. It matches the versions of the other alsa ebuilds that will get installed (e.g. alsa-lib, alsa-utils, you probably want alsa-oss as well). Make sure you have oss and alsa enabled in your USE flags - and maybe aoss, as the new mozilla-launcher uses aoss to launch e.g. firefox.

Once you've cleaned your ALSA kernel modules out, follow the Gentoo ALSA guide _to the letter_ (and I can't stress that enough) - start from the section where you use the alsa-driver ebuild. The only thing you want compiled in your kernel is the basic initial sound support option (even as a module). The alsaconf util should configure everything for you after you emerge alsa-driver.

Once you get your head around how alsa configures and initialises itself, it all becomes clear.

Also, have you configured your packages e.g. xmms/mplayer to use the ALSA driver for sound output? You might awnt to use gmplayer (or xine, which I prefer to mplayer), to set the sound driver output to alsa.

Does any of the alsa playback utils mentioned in the Gentoo alsa guide work?

Some soundcards (and again, I don't have a soundblaster) have some obscure options that need to be set correctly in alsamixer to get sound to work - it's not always just a matter of checking that everything's unmuted. Play around with the other options - there are probably loads for your SB Live.
_________________
Jingle Jangle Jewellery
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Mon Sep 04, 2006 9:08 pm    Post subject: Reply with quote

I had problems (don't recall what exactly) and solved them by using alsa-driver. Might be worth a shot.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Mon Sep 04, 2006 11:32 pm    Post subject: Reply with quote

In response to agent_jdh, by 'clean everything out' do you mean enable only sound devices, but disable EVERYTHING for alsa and oss in the kernel config?
_________________
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Back to top
View user's profile Send private message
suicidal_orange_II
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 299

PostPosted: Tue Sep 05, 2006 12:09 am    Post subject: Reply with quote

<*>Sound card support
< > Advanced Linux Sound Architecture
< > Open Sound System (DEPRECATED)

And emerge away. Good luck with it :)


Suicidal_Orange
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Tue Sep 05, 2006 12:10 am    Post subject: Reply with quote

Did that. Emerged alsa drivers. Ran alsaconf, which went smoothly. Ran alsamixer, unmuted. STILL NO SOUND!

grr... *sigh* I know it's connected properly and turned on...but idk. any other ideas?
_________________
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Back to top
View user's profile Send private message
PaulSorensen
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2004
Posts: 80
Location: Chicago, USA

PostPosted: Tue Sep 05, 2006 2:42 am    Post subject: Do you have a .asoundrc (or a global /etc/asound.conf)? Reply with quote

They are useful to do interesting stuff in alsa - but can also make it do things that are unexpected (for example, not working).

By the way, did you try running aplay on a wav file?
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Tue Sep 05, 2006 2:59 am    Post subject: Reply with quote

nope. Don't have any .wav files. I've got an mp3 and youtube stuff in firefox that won't play audio; gaim doesn't make any sounds either. If I turn my speakers all the way up i get white noise, where i never got that before; i think the soundcard is recognized, just programs and such can't use it...?
_________________
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Tue Sep 05, 2006 3:51 am    Post subject: Reply with quote

i had no sound problem so far in all my 32 installs of gentoo with 2005.1 and 2006.0 profiles. i have always used kernel based alsa and hence the alsa driver would not emerge. i have seen that for the sound to start we have to emerge alsa-oss also.

i have now made a new install with stage3-2006.1 profile and the sound does not budge with what ever i do. no sound from any of the sound players like mplayer xmms kplayer noatun vlc etc.

but funny is that flash sound turns up ok and i can play the audio strem of highwaycountry.com which is based on flash .
the ymessenger makes all sound out put ok

i dont see what s wrong with all the other players.

alsaconf does not find any sound card or pnp device. thats so in the other install of gentoo in which sound is working ok.
my system is p4 845 motherboard with onboard audio.

i tend to think its a profile -kernel relation problem. if so 2006.1 which kernel to use.?
i have tried all previous kernels upto 2.6.17-r7 with no sound output.
but all of them work fine with 2006.0 profile.

any solution for me???

edit: i just found aplay wlfw.wav plays nicely.
wlfw.wav is a recording of country music station WLFW.com radio.
why alsaplayer is discarded now? it was working nicely for me.

playing of aplay works means what ? how i can make my other players work?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Tue Sep 05, 2006 9:28 am    Post subject: Reply with quote

FcukThisGame wrote:
nope. Don't have any .wav files. I've got an mp3 and youtube stuff in firefox that won't play audio; gaim doesn't make any sounds either. If I turn my speakers all the way up i get white noise, where i never got that before; i think the soundcard is recognized, just programs and such can't use it...?


It could be a hardware problem.Have you tried testing the card under windows and/or putting it in another machine?
You could also try the kernel oss drivers, or 4Front's oss drivers ( www.opensound.com ) to see if its a hardware problem or not.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Tue Sep 05, 2006 12:48 pm    Post subject: Reply with quote

try
Code:
speaker-test -Dsurround51 -c6

_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
Sachankara
l33t
l33t


Joined: 11 Jun 2004
Posts: 696
Location: Stockholm, Sweden

PostPosted: Tue Sep 05, 2006 12:50 pm    Post subject: Reply with quote

I have a suggestion that few, or no-one ever mentions. Use the kernel drivers and compile them into the kernel, not as modules. It has never failed me, on dozens of installations, computers and sound cards (SoundBlaster, built in Intel/VIA, etc).
_________________
Gentoo Hardened Linux 2.6.21 + svorak (Swedish dvorak)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Sep 05, 2006 12:58 pm    Post subject: Reply with quote

For help with sound please post the following information.

The multimedia line(s) from lspci.
The output of
Code:
ls-l /dev/snd
and
Code:
 ls -l /dev/sound

The output of
Code:
uname -a
and the approxomate build date/time of your last kernel build.
The output of
Code:
modprobe -l -t sound

The output of
Code:
lsmod


With all that we can see if your kernel is right for you. If so, your problems are related to your setup.
You need much more than just the kernel. Follow this guide with the exception I reccomend that you make the in kernel ALSA as modules and not use emerge alsa-driver.

Note that as there are a number of choices you need to make related to sound, genkernel does not configure your kernel for sound beyond the single option that all your sound choices will require.
_________________
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
avnielknight
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2006
Posts: 102
Location: USA

PostPosted: Tue Sep 05, 2006 2:17 pm    Post subject: Reply with quote

I have the cheapo Audigy LS that uses ca0106. I've gotten it to work by emerging alsa-drivers and then running alsaconf.

Of course this card is terrible all around.....
_________________
Regards,
-Mark Austin
http://www.avnielknight.org
http://www.myspace.com/avnielknight
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Tue Sep 05, 2006 4:37 pm    Post subject: Reply with quote

padoor wrote:
playing of aplay works means what ? how i can make my other players work?


Means that your alsa is working and the issue is somewhere else. For example I had real issues trying to hear sounds
from console-launched mplayer while arts was enabled, cause arts gets the exclusive of the soundcard.
Other similar issues may be caused by the use of oss application. But if you configure your apps to use alsa
(or wrap them with aoss , if these try to run with oss) they should work fine....
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Tue Sep 05, 2006 6:15 pm    Post subject: Reply with quote

i changed the profile to 2006.1/desktop and emerged mplayer again. it emerge 4 more files and now it works and so the kmplayer.
now emerging vlc and xmms they also may work now.
i am not able to set use flags correctly.
the change of profile has now solved the audio.
i hope i dont have to emerge everything of kde 3.4 and 3.5
the system seems to be morestable than profile 2006.0 updated to today..
it means to me arts is not necessary to make sound work. i think.
will get back if more problems come up.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
agent_jdh
Veteran
Veteran


Joined: 08 Aug 2002
Posts: 1783
Location: Scotland

PostPosted: Wed Sep 06, 2006 12:51 am    Post subject: Reply with quote

Matteo Azzali wrote:
padoor wrote:
playing of aplay works means what ? how i can make my other players work?


Means that your alsa is working and the issue is somewhere else. For example I had real issues trying to hear sounds
from console-launched mplayer while arts was enabled, cause arts gets the exclusive of the soundcard.
Other similar issues may be caused by the use of oss application. But if you configure your apps to use alsa
(or wrap them with aoss , if these try to run with oss) they should work fine....


There's a timeout setting in the KDE control centre for telling arts how long to wait before releasing your card, if that's the blocker for you. I set it to 10 secs and have all my other apps use alsa natively or aoss.

It's been discussed in other threads, but you can disable arts (but keep the USE flag, because other KDE stuff still picks up on it) and use a.n.other sound playback utility - i.e. one that uses, or can be configured to use, native alsa, instead of the arts server.

EDIT - This is getting a little o/t, we still don't know if the o/p managed to get something other than white noise from the soundblaster. I'd like to know if any of the specific alsa playback tests worked, which would indicate it's just an application level problem, as opposed to something fundamentally wrong with his alsa configuration.
_________________
Jingle Jangle Jewellery
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