--- Log opened Mon Jun 23 18:15:46 2008 18:15 ::: rolle [i=rolle@oon.tosiguru.com] has joined #alsa 18:15 ::: Topic for #alsa: Advanced Linux Sound Architecture, WIKI: http://www.alsa-project.org/ || Unprofessional, unofficial support, see WIKI at http://alsa.opensrc.org/ 18:15 ::: Topic set by jcdutton Sat Aug 11 18:13:30 2007 18:15 [Users #alsa] 63 total 18:15 [@ChanServ ] [ chrisq ] [ foo ] [ Milo- ] [ rolle ] [ triak ] 18:15 [ aestetix ] [ clintc_home] [ gnubien ] [ MistaGee ] [ Sanitoeter ] [ udovdh ] 18:15 [ aLiEnTxC_ ] [ cra ] [ hark ] [ mranostay_work] [ sebash_ ] [ Vudentz ] 18:15 [ Azoff ] [ crimsun_ ] [ Holborn ] [ mrec ] [ Sergeant_Pony] [ wishie ] 18:15 [ b0ef ] [ deever ] [ intelinsider] [ MrNaz ] [ SinII ] [ wiza ] 18:15 [ baard ] [ dodo1122 ] [ jack__ ] [ natanoj ] [ soa2ii ] [ xarragon] 18:15 [ blinx ] [ egn ] [ jcdutton ] [ nigel_c ] [ stillunknown ] [ Zider ] 18:15 [ blq ] [ Eidolons ] [ k1lumin4t1 ] [ Paavi2_0 ] [ stragerLN ] [ ZzMVzZ ] 18:15 [ bobgill ] [ elmarco ] [ Keukpa ] [ polvi ] [ SwedeMike ] 18:15 [ bobgill_ ] [ eSa| ] [ maligor ] [ Radiance ] [ th1 ] 18:15 [ chalcedony] [ evo_ ] [ mikeones_ ] [ redondos ] [ Thingol ] 18:15 ::: #alsa: Total of 63 nicks 1 ops, 0 halfops, 0 voices, 62 normal 18:15 ::: Channel #alsa created Sun Feb 15 07:08:32 2004 18:15 ::: Join to #alsa was synced in 1 secs 18:15 < rolle> Hello 18:16 < rolle> I suppose this is some kind of help-desk channel but I ask anyway: Do any of you guys have experience with 5.1 sound system in SUSE? 18:16 #alsa [freenode-info] if you need to send private messages, please register: http://freenode.net/faq.shtml#privmsg 18:17 < wishie> well, i have 5.1 sound system experience in ALSA 18:18 < rolle> I have alsa installed 18:18 < rolle> speaker-test -Dsurround51 -c 6 outputs noise in every speaker one by one like it should. 18:19 < wishie> so what is the problem you are having ? 18:19 < rolle> And I have tested various .asoundrc -files but in fact I do not understand much of them.. 18:19 < rolle> The problem is 18:19 < rolle> I don't have 5.1 sounds in amarok or media players. 18:19 < rolle> Only 2.1 18:19 < rolle> Even if the test outputs 5.1. 18:20 < wishie> with a stereo input file ? (ie mp3) 18:20 < rolle> Yes mp3s and avis. 18:20 < rolle> I only have mp3s and avis. 18:20 < wishie> ok 18:20 < wishie> what sound card 18:20 < rolle> I don't have a soundcard, but my motherboard is Asus P5LD2 SE 18:20 < wishie> cat /proc/asound/cards 18:21 < rolle> It has integrated sound in it 18:22 < wishie> please run 'cat /proc/asound/cards' 18:22 < rolle> rolle@peikko:~> cat /proc/asound/cards 18:22 < rolle> 0 [Intel ]: HDA-Intel - HDA Intel 18:22 < rolle> HDA Intel at 0xddcf8000 irq 19 18:22 < wishie> ok 18:22 < rolle> Sorry, I was afk a min. 18:22 < wishie> brb 18:24 ::: MrNaz [n=naz@ppp59-167-142-211.lns3.mel6.internode.on.net] has quit ("Leaving") 18:26 < wishie> im just making you a config to test 18:26 < wishie> in the meantime.. 18:26 < wishie> !give rolle alsa-info 18:26 < wishie> damn, no bot. 18:26 < wishie> download and run alsa-info.sh with this command, please. 18:27 < wishie> wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && bash alsa-info.sh 18:28 ::: V|r [n=konversa@kde/mkretz] has joined #alsa 18:30 < rolle> wishie: :') 18:30 < rolle> Thanks for being so nice. 18:30 < rolle> Testing .. 18:30 ::: alsa-helper [n=supybot@202-137-99-216.dial.usertools.net] has joined #alsa 18:31 < rolle> Humm wishie 18:31 < rolle> I did that earlier 18:31 < rolle> But I suppose I could do it again 18:31 < wishie> yes, please. 18:31 ::: V|r is now known as Vir 18:31 < rolle> Because I have tried to make some change in between 18:31 < rolle> brb 18:31 < wishie> i have a config made for you, but want to see your current setup before finalising 18:31 < rolle> Yes, of course. 18:32 < rolle> Running alsa-info.sh 18:33 < rolle> http://pastebin.ca/1053325 18:33 < rolle> Here 18:35 ::: fuffa [i=bip@ip-87-238-2-45.static.adsl.cheapnet.it] has joined #alsa 18:35 < wishie> ok, so.. 18:36 < wishie> wget -O /etc/asound.conf http://pastebin.ca/raw/1053321 && speaker-test -c2 -Ddefault -twav 18:37 ::: MrNaz [n=naz@ppp59-167-142-211.lns3.mel6.internode.on.net] has joined #alsa 18:38 ::: bluesceada_ [n=itsjustm@unaffiliated/bluesceada] has joined #alsa 18:42 ::: FReeZ [n=_FReeZ_@pool120.tetanet.cz] has joined #alsa 18:44 < FReeZ> Hello, I have ICE 1724HT (Esi Juli@) also known as Envy24HT, and when I play the music with XMMS and then try to play it with javazoom (java component) system hangs up, because mixer is not working properly. What I want to do is some debugging, but it's pretty hard, when it totally hangs up and not even SysRq works... Any suggestions? 18:45 < gnubien> FReeZ make sure all sound apps use the device name alsa or default and NOT hw or OSS or plughw:0,0 because these do NOT allow mixing 18:46 < FReeZ> ok, I think that javazoom uses plughw:0,0 and xmms uses oss 18:47 < gnubien> FReeZ: ok, see if you can confirm that about javazoom, and see if it can use alsa 18:47 < FReeZ> gnubien, Is there a way to debug that hang-up ? I'd like to found what did it and why. 18:47 < gnubien> FReeZ: xmms may be set to use device alsa or default 18:48 < rolle> wishie: Where do I see which application is using the sound device? (Playback open error: -16,Laite tai resurssi varattu = device or resource is in use) 18:48 < wishie> lsof /dev/snd/* /dev/dsp* 18:48 < FReeZ> I checked my configuration of xmms, it now uses ALSA 1.2.11 (libALSA.so) 18:48 < gnubien> FReeZ run this command: lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/* # lists all apps using soundcard #OSS uses /dev/dsp* alsa uses /dev/snd/* OSS does not allow mixing so you get this error: Device or resource busy 18:49 < gnubien> FReeZ: run that lsof command when javazoom is playing 18:49 < FReeZ> Please stand by, I'm emerging lsof 18:50 < FReeZ> emerged, hold on, just a minute 18:51 < FReeZ> java 9099 user 13w CHR 14,3 6643 /dev/sound/dsp 18:51 < wishie> rolle: see what i said ? 18:52 < gnubien> OSS uses /dev/dsp* 18:52 < gnubien> FReeZ: close the java app and run xmms and run the lsof command again while xmms plays a tune 18:52 < FReeZ> gnubien, yes, thank you, but now when I play a song with xmms lsof doesn't output anything (lsof /dev/dsp* /dev/audio* /dev/snd* /dev/mixer* /dev/audio) 18:52 < rolle> wishie: Yep 18:53 < rolle> Wait a moment :P 18:53 ::: eSa| [i=bip@62.123.8.166] has quit (No route to host) 18:53 < FReeZ> gnubien, and xmms outputs "** WARNING **: alsa_setup_mixer(): Failed to find mixer element: PCM" to shell 18:54 < gnubien> FReeZ: xmms or xmms2? 18:54 < FReeZ> My soundcard does not have PCM, but DSP0 and DSP1 (left, right). (xmms) 18:54 < gnubien> FReeZ ONLY report no sound or errors after you run this command: speaker-test -c2 -Ddefault -t wav -l1 18:56 < FReeZ> speaker-test works, no problem. Xmms must be trying to use PCM as a master volume control. However the problem I'd like to debug and solve is hang-up 18:57 < gnubien> FReeZ: i'd bet its the java app 18:58 < gnubien> FReeZ: try playing xmms in 2 terminals and play a sound with each, look for errors 18:58 < FReeZ> More precisely it's a hang-up which can be solved only with hard-reset, because everything stops (including num-lock) and it happens when I play the music with alsa + try to play using OSS emulation layer (javazoom) 18:59 < FReeZ> Only 1 instance of xmms can run, it's checking for it before creating another 18:59 < gnubien> FReeZ: if the 2 xmms's play ok or just give an error then its the java app 19:00 < FReeZ> I tested with xmms + mplayer, they both play well simultaneously. 19:00 < gnubien> FReeZ: xmms setup does NOT allow choosing alsa or default as the device to use? 19:00 < FReeZ> It does, I chosed alsa 19:00 < gnubien> ok 19:01 < rolle> wishie: It says Front left (on front right speaker), Front right (on rear right speaker) 19:01 < gnubien> FReeZ: you used the alsa option when playing mplayer? 19:01 < FReeZ> gnubien, mplayer uses alsa by default I think 19:01 < wishie> rolle: so stop speaker-test, and try an mp3 apps now 19:01 ::: tneo [n=tneo@87.208.245.90] has joined #alsa 19:02 < FReeZ> gnubien, proved, mplayer really uses alsa by default, because lsof doesn't output any open files 19:02 < gnubien> FReeZ: mplayer -channels 2 -ao alsa:device=dmix some.mp3.you.have 19:03 < FReeZ> I don't use dmix, but I can try the command, if you consider it helpful 19:03 < rolle> wishie: When starting amarok it says "xine could not initialize sound controls" 19:03 < FReeZ> gnubien, [AO_ALSA] Unable to set format: Invalid argument 19:03 < rolle> Not even when I put rcalsasound restart 19:04 < wishie> rolle: please re-run alsa-info 19:04 < FReeZ> gnubien, It works with device=default 19:04 < gnubien> ok 19:05 < rolle> wishie: http://pastebin.ca/1053336 19:05 < gnubien> FReeZ: the problem is the java app, dunno howto debug a java app 19:06 < FReeZ> gnubien, okay, is it normal for java apps to cause such a hang-up of kernel? 19:07 < wishie> rolle: amixer set 'Stereo Downmix',0 off 19:07 < wishie> rolle: speaker-test -c2 -Ddefault -twav 19:07 < wishie> rolle: basically "front left" should be heard via the front AND rear LEFT speakers 19:07 < FReeZ> Note that it happens only sometimes, because when I played with it yesterday for the whole day, I had one hang-up and about 100 sucessfull runs, when everything worked although there was no sound from javazoom. 19:07 < gnubien> dunno 19:08 < rolle> wishie: Yes now it does exactly that :) 19:08 < wishie> ok, so.. 19:08 < FReeZ> it never minds, thanks a lot gnubien. Now I finally know all I need is change OSS component for Alsa component =) 19:08 < wishie> rolle: so you need to set amarok etc, to use the ALSA device called 'default' 19:09 ::: FReeZ [n=_FReeZ_@pool120.tetanet.cz] has left #alsa 19:09 < rolle> Okay, I give it a try > 19:09 ::: gnubien [n=e@unaffiliated/gnubien] has quit ("leaving") 19:11 < rolle> wishie: In amarok: ALSA-settings: Mono: default, stereo: default, 4 channels: plug:surround40:0, 6 channels: plug:surround51:0 19:11 < rolle> So I guess I put "default" in 4 and 6 channel? 19:11 < wishie> nah 19:11 < wishie> stereo as "default" is fine 19:11 < wishie> 6 channel as "surround51" should be fine too 19:11 < rolle> Ok 19:12 < rolle> But xine still couldn't initialize 19:12 < wishie> odd 19:12 < wishie> but speaker-test worked ? 19:12 < rolle> Yes. 19:12 < wishie> what is the 'speaker arrangement' set to in xine ? 19:12 < rolle> None, and you can't choose any, it's blank. 19:13 < wishie> hmm 19:13 < wishie> is the audio driver set to "auto" or "alsa" 19:13 < rolle> alsa 19:13 < wishie> interesting 19:13 < wishie> got another program to test with, besides amarok ? 19:14 < rolle> Yes 19:14 < rolle> Trying xmms now 19:14 >>> wishie recommends audacious over xmms 19:14 < rolle> Okay 19:15 < rolle> Hmm, i don't have it, gotta install it > 19:15 < wishie> in any event, did xmms work ? 19:15 < rolle> Didn't test it yet :D 19:15 < rolle> Wait 19:16 < rolle> Something about "please check your audio device is not in use, is plugged and settings are correct" 19:16 < rolle> Let's see 19:16 < wishie> wtf 19:16 < wishie> lsof /dev/snd/* /dev/dsp* 19:17 < rolle> Nothing. 19:18 < rolle> I killed them all before. 19:18 < wishie> hmm 19:18 < wishie> so speaker-test -c2 -Ddefault -twav <-- works ? 19:18 < wishie> speaker-test -c6 -Dsurround51 -twav >-- works ? 19:19 < rolle> Yes, perfectly. 19:19 < wishie> both of those should even work at the same time now 19:20 < wishie> so why the fsck is amarok saying the device it busy ? 19:20 < wishie> got mplayer ? 19:20 < rolle> Yes 19:21 < wishie> mplayer -ao alsa:device=default some.avi 19:21 ::: tara0101 [n=Bob@tdayal.student.iastate.edu] has joined #alsa 19:21 < tara0101> can anyone help? I upgraded the kernel to 2.6.22-15-generic and now my sound is broken. 19:21 < tara0101> but there is no alsa-modules-2.6.22-15-generic in the repo.... 19:21 < tara0101> not sure what to do 19:22 < wishie> ubuntu ? 19:22 < tara0101> yeah, Gutsy 19:22 < wishie> you dont have any sound modules ? 19:22 < rolle> wishie: Works! 19:22 < wishie> rolle: of course it works :P but why the hell wont xine play along 19:22 < tara0101> i have modules from the previous kernel 19:23 < rolle> wishie: I'm also wondering why 19:23 < wishie> tara0101: ok, you can build modules with.. apt-get alsa-source && m-a a-i alsa 19:23 < wishie> oops 19:23 < wishie> apt-get install alsa-source && m-a a-i alsa 19:23 < wishie> rolle: hmm.. please pastebin your xine config file 19:23 < tara0101> wishie, great thanks. I'll give that a try 19:24 < wishie> rolle: also, try audacious for me, not XMMS 19:24 < rolle> Okay. 19:24 < rolle> Wait, 19:24 < tara0101> oh wishie: i had pulseaudio running, should that be a problem? 19:24 < tara0101> in the last kernel 19:24 < wishie> !give tara0101 alsa-info 19:24 < rolle> wishie: Is there a difference with users? I have done all these things with su -account on 19:24 < alsa-helper> tara0101: The alsa-info.sh script collects information about your ALSA setup, and uploads it for you. Other users can then check your setup, and help with your problem. The script can be obtained from http://www.alsa-project.org/alsa-info.sh (wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh) 19:25 < rolle> wishie: logged in konsole as root I mean 19:25 < wishie> rolle: you copied my config to /etc/asound.conf, right ? 19:25 < rolle> :D 19:26 < rolle> I guess I missed it :DD 19:26 >>> rolle is scrolling up 19:26 < wishie> didnt you download it to there ? 19:26 < rolle> Oh 19:26 < rolle> You mean this wget -O /etc/asound.conf http://pastebin.ca/raw/1053321 && speaker-test -c2 -Ddefault -twav 19:26 < wishie> yes 19:26 < rolle> Yes I suppose I did that 19:27 < wishie> so, unless the user has a ~/.asoundrc .. 19:27 < rolle> Yeh 19:27 < tara0101> wishie: http://pastebin.ca/1053341 19:28 < rolle> wishie: Downloaded it again, just to be sure. 19:28 < rolle> Tests work fine 19:28 < rolle> Installing audacious ... 19:29 ::: mich [n=kvirc@host99-185.tvk.torun.pl] has joined #alsa 19:30 < wishie> ahh! 19:30 < wishie> tara0101 you have no sound, right ? and you dont use pulseaudio anymore ? 19:30 < tara0101> well i'm not sure. I was using pulseaudio before I upgraded the kernel 19:30 < wishie> oh yuck! 19:30 < rolle> wishie: How do I configure mplayer so it would play videos with 5.1 without making this from command line? because it says "couldn't initalize sound device" when clicking avi (my avis are associated with mplayer) 19:30 < wishie> upgraded from ? 19:31 < wishie> brb all 19:31 < tara0101> 2.6.22-14-generic to 2.6.22-15-generic 19:34 ::: redondos_ [n=redondos@p549542BF.dip.t-dialin.net] has joined #alsa 19:35 < rolle> Humm, audacious doesn't start 19:38 ::: redondos [n=redondos@p5098e4e1.dip0.t-ipconnect.de] has quit (Read error: 110 (Connection timed out)) 19:39 ::: jack__ [n=jack@vodsl-9219.vo.lu] has quit (Read error: 104 (Connection reset by peer)) 19:39 ::: redondos_ is now known as redondos 19:39 < wishie> tara0101: speaker-test -c2 -Dhw:0,0 -twav -l1 19:40 < wishie> tara0101: you have kernel modules, they are loaded, but they are fairly OLD 19:40 < wishie> rolle: any error ? 19:40 < tara0101> wishie: Playback open error: -16,Device or resource busy 19:40 < rolle> wishie: No, nothing 19:40 < wishie> tara0101: sudo /etc/init.d/pulseaudio stop 19:41 < wishie> tara0101: then try speaker-test again 19:41 < wishie> rolle: makes no sense.. copy /etc/asound.conf to ~/.asoundrc for me 19:41 < tara0101> wishie: still getting: Playback open error: -16,Device or resource busy 19:41 < wishie> tara0101: lsof /dev/snd/* /dev/dsp* 19:42 < tara0101> wishie: should I pastebin? 19:42 < wishie> yes please 19:42 < wishie> !pastebin 19:42 < wishie> grr, silly bot 19:42 ::: jack__ [n=jack@vodsl-9219.vo.lu] has joined #alsa 19:43 < tara0101> wishie: http://pastebin.com/dce40520 19:44 < wishie> hmm, that should be fine. 19:44 < wishie> speaker-test -c2 -Ddefault -twav -l1 19:44 ::: sjwalter [n=sjwalter@195.23.220.52] has joined #alsa 19:45 < rolle> wishie: Done. 19:45 < rolle> wishie: No change. 19:45 < rolle> And audacious does not load. 19:45 < wishie> rolle: so, to recap.. speaker-test works, mplayer works, but xmms/audacious/amarok dont ? 19:45 < rolle> wishie: Yes. 19:46 < sjwalter> Good day. All of a sudden my sound stopped working after I did an apt-get upgrade. I'm running Ubuntu Hardy 8.04, running a 2.6.24-16-generic SMP kernel, with a Sony Vaio with an Intel 8201H audio controller. 19:46 < sjwalter> Any ideas what the issue could be? 19:46 < tara0101> wishie: speaker-test: pcm_params.c:2351: sndrv_pcm_hw_params: Assertion `err >= 0' failed. 19:46 < wishie> tara0101: yeah, rm ~/.asoundrc 19:46 < tara0101> aborted (core dumped) 19:47 < wishie> tara0101: thats cause it was setup to use PA 19:47 < rolle> wishie: How do I configure mplayer so it would play videos with 5.1 without making this from command line? because it says "couldn't initalize sound device" when clicking avi (my avis are associated with mplayer) 19:47 < tara0101> wishie, no such file or directory 19:47 < wishie> tara0101: sorry, /etc/asound.conf 19:47 < tara0101> wishie, rm that? 19:47 < wishie> yes 19:48 < tara0101> done 19:48 < wishie> speaker-test -c2 -Ddefault -twav -l1 19:49 < tara0101> wishie: ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave Playback open error: -16,Device or resource busy 19:49 < wishie> that just makes no sense 19:50 < wishie> nothing is using the card, yet, its busy 19:50 < tara0101> yeah that's no good 19:50 < wishie> tara0101: why are you using an 'older' kernel anyway ? 19:50 < tara0101> well, I'm using gutsy because in hardy suspend doesn't work for my particular laptop 19:50 < sjwalter> Hmm. 19:50 < tara0101> is there a way I can try a newer kernel? 19:51 < sjwalter> Is there a place that logs any potential alsa errors? 19:51 < wishie> tara0101: well, its the alsa version im really talking about.. 19:51 < wishie> tara0101: apt-cache policy alsa-source 19:51 < tara0101> oh, i don't know... i didn't make any conscious decisions on kernel versions 19:51 < sjwalter> Cause I'm running speaker-test here and tried doing a sudo alsa reload, and dmesg says nothing, and var/log has nothing. 19:53 < tara0101> wishie: http://pastebin.com/d3dcdc0db 19:55 < wishie> tara0101: ok, did you run 'm-a a-i alsa' ? 19:55 < tara0101> i'm pretty sure I did, i'll try again 19:55 < wishie> tara0101: then you will have to reload all alsa modules.. 19:56 < rolle> wishie: Got it to work! 19:56 ::: bluesceada_ [n=itsjustm@unaffiliated/bluesceada] has quit (Read error: 110 (Connection timed out)) 19:56 < rolle> Now playing on amarok with 5.1 19:56 < rolle> :) 19:56 < wishie> rolle: why was it misbehaving ? 19:56 ::: scant [n=user@24.174.0.137] has joined #alsa 19:57 < rolle> wishie: updated xine, amarok-xine and libs. 19:57 < wishie> hmm, interesting 19:57 < rolle> That solved it. 19:57 < rolle> Don't know what was buggin 19:57 < wishie> ok, some bug in xine then 19:57 < rolle> Yeah 19:57 < wishie> but, that config does what you want it to ? 19:58 < rolle> wishie: Yes! thank you very much :) 19:58 < tara0101> wishie: You are not root and no replacement directory (the -u option) is specified. Unable to continue. 19:58 < wishie> tara0101: sudo m-a a-i alsa 19:58 < rolle> wishie: mplayer also now works like a charm 19:58 < rolle> Many thanks again :) 19:58 >>> rolle is happy now :) 19:58 < wishie> rolle: no worries. You're welcome 20:00 < tara0101> wishie: ok, it's working on it I think --- Log closed Mon Jun 23 20:02:02 2008