Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472796 - www-client/firefox-17.0.6 no sound when alsa plugins used
Summary: www-client/firefox-17.0.6 no sound when alsa plugins used
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-09 22:39 UTC by Francisco Blas Izquierdo Riera
Modified: 2015-01-06 14:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info firefox (emergeinfo,6.40 KB, text/plain)
2013-06-09 22:39 UTC, Francisco Blas Izquierdo Riera (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2013-06-09 22:39:35 UTC
Created attachment 350592 [details]
emerge --info firefox

Firefox refuses to play sounds (i.e. HTML5 without flash) when a .asoundrc using plugins is used. All the other applications and the flash plugin work as expected.

The following .asoundrc works:
pcm.!default {
    type plug
    slave {
       pcm "hw:0,0"
    }
}

But if we use an alsa plugin like dmix it won't work, for example:
pcm.!default {
    type plug
    slave {
       pcm "dmixer"
    }
}
pcm.dmixer {
    type dmix
    ipc_key 1037
    ipc_key_add_uid false
    ipc_perm 0666
    slave {
       pcm "hw:0,0"
    }
}
Comment 1 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2013-06-09 23:01:48 UTC
Ok delving a little bit more in it it seems that the issue only arises when pcm.dmixer contains:
pcm.dmixer {
    type dmix
    ipc_key 1037 # must be unique!
    ipc_key_add_uid false   # let multiple users share
    ipc_perm 0666           # IPC permissions for multi-user sharing (octal, default 0600)
    slave {
       pcm "hw:0,0"      # you cannot use a "plug" device here, darn.
       # period_time 0
       #period_size 2048 # must be power of 2
       # buffer_size 8192  # dito. It
       format "S32_LE"
       # periods 128 # dito.
       #rate 192000 # with rate 8000 you *will* hear,
       rate 48000 # with rate 8000 you *will* hear,
       # if ossmix is used :)
    }
    # bindings are cool. This says, that only the first
    # two channels are to be used by dmix, which is
    # enough for (most) oss apps and also lets 
    # multichannel chios work much faster:
    bindings {
        0 0 # from 0 => to 0
        1 1 # from 1 => to 1
    }
}

Changing format "S32_LE" to format "S16_LE" fixes the issue. The thing is that only firefox has issues with this output format.
Comment 2 Jory A. Pratt gentoo-dev 2015-01-06 14:00:26 UTC
User reports problem is resolved for the moment.