SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I have found posts from quite a few people who have the same problem as me, Firefox won't play any HTML5 audio at all if I have a .asoundrc. The 'solution' seems to be change the module load order so your main sound card is card0 and delete your .asoundrc.
Flashplayer works fine, it is only HTML5 audio I have the problem with
Has anyone found the real reason yet why Firefox doesn't like .asoundrc? I use 2 soundcards and there is no way I can have them configured properly without using .asoundrc (or setting up every program individually if possible).
Last edited by af7567; 10-11-2014 at 10:01 AM.
Reason: should mentiond flash audio is ok.
Some system motherboards (i.e. Asus Z87-EXPERT) cause Card 0 to be a MID device instead of a PCM device. The same driver module snd_hda_intel is used for both the MID and PCM cards on this motherboard. For some reason Firefox HTML 5 requires Card 0 of the snd_hda_intel no matter how you change it with asoundrc. You can make flash work using the asoundrc file, but HTML 5 audio is silent.
So it's apparently a combination of things. Chromium HTML 5 audio doesn't have that problem. And Firefox's works fine on my laptop with an Ivy Bridge i5 and Intel sound card - the motherboard orders the cards "correctly" for Firefox - but my Haswell Chromebook needs the module load order to be changed.
Does Firefox sound work if you switch the module load order and adjust your .asoundrc to use the "new" sound card names instead of deleting it?
Firefox also works fine on my laptop, and google chrome works on my PC with my asoundrc.
Quote:
For some reason Firefox HTML 5 requires Card 0 of the snd_hda_intel no matter how you change it with asoundrc.
I don't understand what that means. Firefox requires an intel sound card? Actually I guess it doesn't mean that because my card 0 is a sound blaster and Firefox works OK with that as long as I delete my asoundrc (even though the asoundrc sets the default playback to be 0,0 anyway)
I just had a go at playing around with the order of my soundcards and found that Firefox will play through any of them as long as they are card0 and I have no asoundrc, but as soon as I create .asoundrc I get no sound at all. The only thing I did find out is that if I use asoundrc to set the default playback to be an invalid soundcard (like my webcam or HDMI output which has nothing plugged in) then Firefox will freeze when trying to play the video - so it must actually be using the values from the asoundrc for something.
First, are you sure you can't resolve this with module options? You can use slots if the two cards have different drivers, and index if the two cards have the same driver.
Second, could you please post your .asoundrc? An .asoundrc to send audio to card 1, device 3 (for example) should consist only of the following, and it should use the same "inline" syntax:
I use an external USB sound card by default. My complete .asoundrc is a bit bigger, but Firefox also works when I strip it down to this:
Code:
#Define the default device via "aplay -l"
#My CM6206 is hw2:0
pcm.!default {
type hw
card 2
device 0
}
#Define the default control
ctl.!default {
type hw
card 2
device 0
}
Uhm, schmatzler, are you able to play more than one sound a time with that .asoundrc? In my experience, .asoundrc files that are laid out like that override too much, including getting rid of DMix.
I would change it to:
Code:
defaults.pcm.card 2
defaults.ctl.card 2
Which would simply change the default card to #2 and leave every other setting intact.
pcm.!default
{
type asym
playback.pcm "hw:0,0"
capture.pcm "hw:1,0"
}
This is a completely stripped down version to my normal one which was using dmix and dsnoop to make games/teamspeak/desktop recording all work ok together. Everything else was working OK with that, just not firefox.
Last edited by af7567; 10-12-2014 at 09:40 AM.
Reason: I obviously can't read
Sorry for the old thread but I just got bit by this and have spent the past week trying to no avail to fix this until I found this thread.
Slackware 14.1-64 setup. I am trying to connect to my TV through HDMI. Symptoms were: Playing sound files ok, Chrome on youtube ok, Firefox on youtube no sound.
What's the diff between the configs with brackets and the ones without
The config without the brackets overrides only the settings listed. This is what you want and expect.
The config with the brackets overrides the entire section. "defaults.pcm {}" will throw out every setting that /usr/share/alsa/alsa.conf defines for your PCM defaults and replace them, all of them, with what's between the brackets. This is generally not what you want or expect. It's also why you need to manually add a DMix section if you use the brackets syntax.
I do some semi-pro quality audio recording and editing and would prefer a decent compromise audio setup these days as opposed to a special session, since I spend more time doing the usual mundane things than serious work. For the daily usual stuff I very much like having a systemwide Graphic EQ. I am currently using the base asoundrc (see below) from the EQ developer and simply have my own cards info inserted. This works very well except sometimes in Firefox. It baffles me as to why sound comes and goes with Firefox but I can see how the brackets may confine Firefox perhaps depending on Firefox version or other variables. I would like to make Firefox consistent.
My question is if I wish to continue using the EQ systemwide how can I declare it in asoundrc and also make Firefox happy?
Code:
### equalizer $HOME/.asoundrc ###
pcm.plugequal {
type equal;
# Modify the line below if you don't
# want to use sound card 0.
slave.pcm "plughw:0,0";
# or if you want to use with multiple applications output to dmix
# slave.pcm "plug:dmix"
}
pcm.equal {type plug;
slave.pcm plugequal;
}
# Or if you want the equalizer to be your
# default soundcard uncomment the following
# line and comment the above line.
#pcm.!default {
# type hw
# card 0
#}
ctl.!default {
type hw
card 0
}
pcm.ice1724 {
type hw
card 0
}
ctl.ice1724 {
type hw
card 0
}
ctl.equal {
type equal;
}
Any information or link to an appropriate location gratefully accepted. Thank you.
Greetings
The above quoted section was in the original example from the EQ app and I chose to keep it figuring it may affect smooth routing such as when utilizing Jack and possibly even the EQ itself. I tried commenting it out and it did not fix HTML5 audio such as in Firefox > YouTube as it still doesn't work.
I love how Slackware in general never acts like an underfoot butler, letting me change or keep things, doing nothing that I don't expressly call for or deny but that does not extend to areas outside it's purview and that sometimes includes audio which has gotten better but is still rather messy in Linux. For example sometimes KDE is a culprit in that even just bumping the USB cable to my webcam causes KDE Multimedia Settings to popup a "helper" <sigh> window asking me if I want to permanently forget about the USB audio device. However that is merely annoying. Some issues are actually problematic.
Some comm apps don't play nicely with that USB microphone and require restarting the app a few times or reasserting default communication capture device in KDE System Settings > Multimedia > Phonon before it finally recognizes the mic. I only mention this in this thread because such interruptions instigate fussing instead of set it and forget it.
Now I still don't have sound with Firefox on YouTube HTML5 and somewhere along the line my systemwide Alsa EQ stopped working. It still shows up and active with "alsamixer -D equal" but moving the faders has no effect anymore so I have some deeper troubleshooting to do.
I surely would love to get it all right and then just lock it down.
Anyway I was wondering if dumping the bracketed settings for the "defaults - " would fix my Firefox/YouTube sound problems without destroying my EQ but it looks like it will be the weekend before I can devote this larger amount of time now required by the EQ before I can even think about Firefox sound. For that I at least have alternatives.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.