Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Flash/npviewer.bin breaks ALSA sound (not Flash)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
octanez
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2004
Posts: 149
Location: Woods Hole, MA, USA, Earth

PostPosted: Mon May 19, 2008 5:51 pm    Post subject: [SOLVED] Flash/npviewer.bin breaks ALSA sound (not Flash) Reply with quote

After viewing a website with flash, YouTube, etc; mpd would hang. Killing firefox would fix this, more specifically, just killing npviewer.bin would restore sound.
When trying to play something with mpg321 it would just hang with no output, playing something with mplayer resulted in:
Code:
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:996:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
mcop warning: user defined signal handler found for SIG_PIPE, overriding


I am using:
Code:
www-client/mozilla-firefox-2.0.0.14
net-www/netscape-flash-9.0.124.0
net-www/nspluginwrapper-0.9.91.5-r1
media-libs/alsa-lib-1.0.16
media-sound/alsa-headers-1.0.16
media-sound/alsa-tools-1.0.16
media-sound/alsa-utils-1.0.16


Solution: upgrading to app-emulation/emul-linux-x86-soundlibs-20080418 fixed the sound issue.
_________________
Adopt an orphan


Last edited by octanez on Mon May 19, 2008 7:58 pm; edited 2 times in total
Back to top
View user's profile Send private message
YetiBarBar
Guru
Guru


Joined: 23 Dec 2005
Posts: 488

PostPosted: Mon May 19, 2008 7:44 pm    Post subject: Reply with quote

Hi!

Which version of emul-linux-x86-soundlib are you using at the time?

I means only 20080418 and perhaps (but not sure) 20080316 are based on alsa-lib 1.0.16 and only those will work properly with flash but they are ~amd64 and alsa-lib-1.0.16.
Back to top
View user's profile Send private message
octanez
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2004
Posts: 149
Location: Woods Hole, MA, USA, Earth

PostPosted: Mon May 19, 2008 7:49 pm    Post subject: Reply with quote

YetiBarBar wrote:
Which version of emul-linux-x86-soundlib are you using at the time?


Code:
app-emulation/emul-linux-x86-soundlibs-20071125


YetiBarBar wrote:
I means only 20080418 and perhaps (but not sure) 20080316 are based on alsa-lib 1.0.16 and only those will work properly with flash but they are ~amd64 and alsa-lib-1.0.16.


Thanks, I will try upgrading to ~20080418!
_________________
Adopt an orphan
Back to top
View user's profile Send private message
chacha
n00b
n00b


Joined: 21 Apr 2008
Posts: 5

PostPosted: Tue May 20, 2008 12:58 pm    Post subject: Problem with alsa Reply with quote

Hey guys,
I am currently experiencing a problem I don't how to solve at all.
For one week, I haven't been able to use (mplayer or amarok) WITH flash.
If I first play music with amarok, then no sound comes from the flash video (but it is properly playing)
If I first play the flash video, then mplayer tells me
[AO_ALSA] alsa-lib: pcm_dmix.c:996:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Erreur ouverture de lecture : Device or resource busy
An other issue is that skype tells me there is a problem with audio playback. However Everything was perfectly working before.
And I can have amarok and mplayer playing music at the same time.

I tried to update to a new kernel, supress oss support, but the problem is I don't even know where it can come from.
Right now I am hesitating of reinstalling a new gentoo....
Thanks
_________________
Hicham Tahiri
Back to top
View user's profile Send private message
aidy
l33t
l33t


Joined: 07 Apr 2005
Posts: 915

PostPosted: Tue May 20, 2008 12:59 pm    Post subject: Reply with quote

<3<3<3<3<3!
thanks a lot for the suggestion :)
Back to top
View user's profile Send private message
octanez
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2004
Posts: 149
Location: Woods Hole, MA, USA, Earth

PostPosted: Tue May 20, 2008 2:37 pm    Post subject: Reply with quote

Are you on AMD64 and using nspluginwrapper? If so check out this solution.
_________________
Adopt an orphan
Back to top
View user's profile Send private message
chacha
n00b
n00b


Joined: 21 Apr 2008
Posts: 5

PostPosted: Tue May 20, 2008 5:20 pm    Post subject: Reply with quote

Thanks so much! I have been looking for a solution for days, and everything solved within 2 steps!
Thanks again!
_________________
Hicham Tahiri
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Tue May 20, 2008 5:31 pm    Post subject: Reply with quote

merged some posts.
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
hcintra
n00b
n00b


Joined: 27 Jan 2005
Posts: 51

PostPosted: Tue May 20, 2008 5:44 pm    Post subject: Reply with quote

Great... This is right on the mark. Pity I didn't find it before going through the hurdle of re-compiling the kernel, re-running alsaconf and the works...

Though the fact that killing npviewer.bin returns sound immediately, it is a funny thing that my alsasound initscript got lost. What could have eliminated the entry from my rc-update db appears to be beyond the solution, which nevertheless works.
Back to top
View user's profile Send private message
robnotts
Guru
Guru


Joined: 15 Mar 2004
Posts: 405
Location: Nottingham, UK

PostPosted: Wed May 21, 2008 12:19 pm    Post subject: Reply with quote

Thanks for the fix... all working wonderfully again :lol:
_________________
---

Gentoo Phenom][ X4 955 on AMD790 + Geforce 220GT 8GB/1.75TB (Desktop)
+ MythTV (3xFreeview,1xFreesat HD) on 1080p
Gentoo Turion64 X2 Geforce 6150 2GB/120GB (Laptop)
Back to top
View user's profile Send private message
zAfi
Apprentice
Apprentice


Joined: 08 Aug 2006
Posts: 220
Location: Austria

PostPosted: Sat May 31, 2008 7:50 pm    Post subject: Reply with quote

thank you! fixed it for me as well. ;)
_________________
Gentoo 2008.0/desktop | Kernel: 2.6.27-tuxonice | Arch: amd64 | KDE 3.5.9 | WU Wien |
----------
Share your kernel information @ http://klive.cpushare.com/
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Mon Jun 09, 2008 8:01 am    Post subject: Reply with quote

cheers. Upgrading emul-linux-x86-soundlibs worked on my amd64 box.
Back to top
View user's profile Send private message
gentunian
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2006
Posts: 118
Location: Río Cuarto, Argentina

PostPosted: Sun Jun 22, 2008 10:47 pm    Post subject: Reply with quote

regomodo wrote:
cheers. Upgrading emul-linux-x86-soundlibs worked on my amd64 box.


I have the same problem and I started a new thread in:

https://forums.gentoo.org/viewtopic.php?p=5129563#5129563

I updated the soundlibs:
Code:

 app-emulation/emul-linux-x86-soundlibs
    selected: 20071125
   protected: 20080418
     omitted: none


I restarted alsasound but the problem arises again when I for example ran 2 mplayer in 2 consoles. The first one start playing music while the second one (i mean first and second in the order of time) still gives me this error:

Code:
[AO OSS] audio_setup: Imposible abrir dispositivo de audio /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:996:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Error de apertura en la reproducción: Device or resource busy
[AO SDL] Samplerate: 44100Hz Canales: Stereo Formato s16le
[AO_ALSA] alsa-lib: pcm_dmix.c:996:(snd_pcm_dmix_open) unable to open slave
[AO SDL] Imposible abrir audio: No available audio device


Any other way to solve this?
_________________
Si un pueblo tiene hambre, no le des un pez. Enséñale a pescar.
http://labombiya.com.ar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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