LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   No sound with Flash Player in Firefox after adding NVIDIA GT 220 graphics card (https://www.linuxquestions.org/questions/slackware-14/no-sound-with-flash-player-in-firefox-after-adding-nvidia-gt-220-graphics-card-809773/)

Jorek 09-16-2010 11:42 AM

This .asoundrc did the trick! =)
Code:

pcm.dsp0 {
    type plug
    slave.pcm "dmix"
    # A hint is required for listing the device in some GUIs, e.g. Phonon configuration.
    hint {
        show on
        description "My dmix dsp0"
    }
}
# mixer0 can stay unchanged, because
# it isn't used anyway, I guess ;)
ctl.mixer0 {
    type hw
    card 0
}


bogzab 10-29-2010 03:42 AM

Just to add another success story. I had the same problem as OP - both flash plugin and the "play" command failed to produce any sound whereas all other apps (media players, other non-flash streams) seemed to work fine.

In my case this was not caused by an new multimedia card, but upgrades to firefox or the flash plugin - not sure which caused the problem, but almost certainly one of these.

Creating the ~/.asoundrc as suggested by EternalNewbie fixed the problems.

sgrayban 03-20-2011 03:02 AM

If you aren't going to use the HDMI output on the Nvidia GT 210 video card the fix is very easy... at least it is for debian but this should work for any distro.

In debian edit /etc/modprobe.d/alsa-base-blacklist.conf and add this line..

blacklist snd_hda_intel

If you don't have the above file you should have /etc/modprobe.d/blacklist.conf and add the same line from above.

sevs 05-03-2011 03:09 AM

Hi. I've got the same problem.
Editing of ~/.asoundrc gives me nothing.
But after 'lsof | grep /dev/snd' I have following output:
Quote:

mixer_app 2442 sergy 21u CHR 116,7 0t0 3529 /dev/snd/controlC0
mixer_app 2442 sergy 24u CHR 116,7 0t0 3529 /dev/snd/controlC0
pulseaudi 2443 sergy mem CHR 116,4 3524 /dev/snd/pcmC0D0p
pulseaudi 2443 sergy 20u CHR 116,7 0t0 3529 /dev/snd/controlC0
pulseaudi 2443 sergy 21u CHR 116,4 0t0 3524 /dev/snd/pcmC0D0p
pulseaudi 2443 sergy 22u CHR 116,7 0t0 3529 /dev/snd/controlC0
pulseaudi 2443 sergy 29u CHR 116,7 0t0 3529 /dev/snd/controlC0
As I can see pulseadio makes the problem.
But I've did an experiment: 'cat /vmlinuz > /dev/dsp'
And the output is:
Quote:

Device or resource busy
while 'lsof | grep /dev/dsp' gives an empty output.

Maybe there is a way to tell applications to use pulseaudio instead of alsa, or some solution?

UPD: OS is Debian Squeeze 6.0.1a.

Thanks in advance.
Sorry for bad English.

T3slider 05-03-2011 07:49 PM

Quote:

Originally Posted by sevs (Post 4344773)
Hi. I've got the same problem.
Editing of ~/.asoundrc gives me nothing.
But after 'lsof | grep /dev/snd' I have following output:


As I can see pulseadio makes the problem.
But I've did an experiment: 'cat /vmlinuz > /dev/dsp'
And the output is:
while 'lsof | grep /dev/dsp' gives an empty output.

Maybe there is a way to tell applications to use pulseaudio instead of alsa, or some solution?

UPD: OS is Debian Squeeze 6.0.1a.

Thanks in advance.
Sorry for bad English.

It should be noted that this is the Slackware forum, and that Slackware does not, by default, ship with pulseaudio. However, you may try the following in your ~/.asoundrc:
Code:

pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}


pinterd 08-04-2011 11:19 AM

What lead me to this forum is the error message:
Quote:

ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
The fact that this was made at any occurrence the sound card had to be reached, there was no sound at all, that is, until i forced alsa to restart with:
Quote:

# alsa force-reload
I've tried everything from purging alsa to adding ~/.asoundrc with different parameters until finally found what was causing trouble.
What i did is i went through the installed pkg-list and looked at the description and i found that roaraudio made changes to my settings. So after purging it, alsa was reborn.

Thought i'd share it here in case somebody's still having problem after reading all above. I found pretty good clues here on where to look and figured what measures to take.

Thanks everyone!

caduqued 08-31-2011 09:17 PM

Just to say thanks
 
Got same problem.

used solution with asoundrc

everything again back to normal...

You guys rock... hehehe ;)

asenov_18@abv.bg 11-26-2012 05:30 AM

Provide fix that works for me
 
Thanks for proposed fixes.
I'm running OpenSUSE 12.2 x64 and I've tried many configurations inside .asoundrc file, but only one works for me. Inside .asoundrc:
Code:

pcm.pulse {
type pulse
}

ctl.pulse {
type pulse
}

pcm.!default {
type pulse
}

ctl.!default {
type pulse
}

Hope this helps.


All times are GMT -5. The time now is 04:15 PM.