[SOLVED] Sound Not Working in Browser / on the Internet

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read this

[SOLVED] Sound Not Working in Browser / on the Internet

Postby fero4u123 on Sat May 26, 2012 1:58 pm

Okay so my sound works on audio players, video files / anything coming directly from my computer, but it DOES NOT WORK with anything online, or maybe more specifically flash. I've tried a few solutions dealing with it, but I don't think that the problem.

I myself (not being the most experienced with linux) am thinking maybe I have something configured incorrectly with alsa.

When I run firefox through terminal I get this error:
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card

When I run speaker-test:
speaker-test 1.0.25

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -19,No such device
.

I have been trying to figure out for maybe a day or two, how to find the right value for the card or change the right setting so that it works, but usually I end up finding guides to something unrelated.

so can someone help me ? or have any suggestions on how to get this working / articles for me to read to point me in the right direction ?

*Note, Some Background Info:
While Searching on my own I have tried editing my ~/.asoundrc file and currently its like this
pcm.!default {
type hw
card Genric
}

ctl.!default {
type hw
card Generic
}
defaults.pcm.card 1
defaults.pcm.device 1
defaults.ctl.card 1

What I'm Running:
Linux Distro: LMDE 64bit XFCE
Laptop: HP Pavilion dv6 AMD A8 quad core and Radeon (6750M) Dual Graphics
cat /proc/asound/cards:
0 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xf0444000 irq 54
1 [Generic_1 ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xf0440000 irq 16

Any help with be greatly appreciated.
Last edited by fero4u123 on Sun May 27, 2012 3:41 am, edited 1 time in total.
fero4u123
Level 1
Level 1
 
Posts: 2
Joined: Sat May 26, 2012 1:39 pm

Linux Mint is funded by ads and donations.
 

Re: Sound Not Working in Browser / on the Internet

Postby crborga on Sun May 27, 2012 12:16 am

try using this in /etc/asound.conf instead of messing with the user specific audio settings
Code: Select all
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

then run
Code: Select all
sudo /etc/init.d/alsa-utils restart && sudo /etc/init.d/pulseaudio restart

http://www.shcherbyna.com/?p=866
Image
crborga
Level 2
Level 2
 
Posts: 99
Joined: Wed Oct 27, 2010 10:09 am
Location: South Carolina, USA

Re: Sound Not Working in Browser / on the Internet

Postby fero4u123 on Sun May 27, 2012 3:40 am

Wow, that actually works, perfect. Thanks! YOU DA MAN! lol

*Note For anyone else reading this also please visit link that was given as part of the solution for further explanation.

I now understand that I'm the one who kind of messed up my sound after I was having some problems with pulseaudio. I purged all pulse audio then went through a whole bunch of steps to get alsa working alone. Once I got alsa working, I didn't realize that pulseaudio is required for sound on the browser/flash (read article link in solution).
fero4u123
Level 1
Level 1
 
Posts: 2
Joined: Sat May 26, 2012 1:39 pm

Re: Sound Not Working in Browser / on the Internet

Postby crborga on Sun May 27, 2012 7:57 am

fero4u123 wrote:Wow, that actually works, perfect. Thanks! YOU DA MAN! lol

*Note For anyone else reading this also please visit link that was given as part of the solution for further explanation.

I now understand that I'm the one who kind of messed up my sound after I was having some problems with pulseaudio. I purged all pulse audio then went through a whole bunch of steps to get alsa working alone. Once I got alsa working, I didn't realize that pulseaudio is required for sound on the browser/flash (read article link in solution).

no problem, had this issue a while back and I posted the fix but it wasn't stickied
Image
crborga
Level 2
Level 2
 
Posts: 99
Joined: Wed Oct 27, 2010 10:09 am
Location: South Carolina, USA


Return to Sound, Multimedia & Codecs

Who is online

Users browsing this forum: No registered users and 3 guests