Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa+Firefox sound spikes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
unkulunkulu
n00b
n00b


Joined: 09 Oct 2007
Posts: 56
Location: Russia

PostPosted: Thu Dec 11, 2014 10:13 am    Post subject: Alsa+Firefox sound spikes Reply with quote

Hi, I'm completely at a loss here, cannot find a solution to a very annoying problem!

It's reproducible on two installations with different audio cards. The system I use now has intel integrated audio, the other one is some version of sound blaster audigy.

The problem is: sounds on some websites are playing with an annoying hissing sound at the start, like some kind of sound spike.

Otherwise music and audio is playing well, like youtube mpd or whatnot. Only some short notification sounds have a problem. As an example there is a chess website lichess.org, if I enable the sound and start a game, every move is accompanied with an annoying spike. Can someone provide me with any ideas on investigating the issue?

I use plain alsa with kernel drivers.

Code:

00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
        Subsystem: ASUSTeK Computer Inc. Device 83bc
        Flags: bus master, fast devsel, latency 0, IRQ 43
        Memory at f9ffc000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel


Code:

Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.12.21-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.12.21-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     4046448 total,    135380 free
KiB Swap:    4000180 total,   3927856 free
Timestamp of tree: Mon, 08 Dec 2014 11:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.5.4, 4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo fritteli
Installed sets: @cuesplit
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/python2.7/site-packages/buildbot/status/web /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/fritteli"
USE="X a52 aac aalib acpi alsa amd64 audiofile bcmath berkdb blas branding bzip2 cairo ccache cdda cddb cdparanoia cdr cgi cli cracklib crypt cscope ctype cups curl cvs cxx dbus djvu dri dts dv dvd dvdr emboss emf encode exif extra fbcon ffmpeg fftw firefox flac fontconfig fortran ftp geoip gif ginac glamor glib gnutls gpm gs gsl gtk hddtemp iconv icu idn imap ipod ipv6 jabber java java6 javascript jingle jpeg jpeg2k ladspa lame lapack latex lcms libcaca libnotify lm_sensors lzo mad matroska matrox mercurial mime mmap mmx mng modules mono motif mouse mp3 mp4 mpeg mpi mplayer multilib musepack ncurses nis nls nocd nptl nsplugin nvidia offensive ogg opengl openmp pam pango pch pcntl pcre pda pdf plotutils png ppds python qt3support qt4 raw rdesktop readline resolvconf rss samba sdl session slp smp sockets speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink syslog system-sqlite sysvipc tcpd theora threads tiff truetype udev udisks unicode upower usb utils vcd videos vim-syntax vnc vorbis wmf wxwidgets x264 xcb xface xft xine xinerama xinetd xml xscreensaver xulrunner xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



Code:

Module                  Size  Used by
udp_diag                2221  0
tcp_diag                1032  0
inet_diag               9556  2 tcp_diag,udp_diag
md4                     3385  0
cifs                  272189  6
ipv6                  273583  43 udp_diag
ext4                  324408  1
crc16                   1279  1 ext4
jbd2                   59459  1 ext4
mbcache                 5770  1 ext4
ext2                   49393  1
usbhid                 25302  0
snd_hda_codec_realtek    39754  1
snd_hda_intel          28314  2
coretemp                6374  0
snd_hda_codec         122142  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               5836  1 snd_hda_codec
kvm_intel             125046  0
snd_pcm                68151  2 snd_hda_codec,snd_hda_intel
uhci_hcd               22652  0
ehci_pci                3328  0
snd_page_alloc          6770  2 snd_pcm,snd_hda_intel
ehci_hcd               38848  1 ehci_pci
kvm                   268754  1 kvm_intel
snd_timer              17894  1 snd_pcm
usbcore               146218  4 uhci_hcd,ehci_hcd,ehci_pci,usbhid
atl1e                  28129  0
snd                    54764  10 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
usb_common              1536  1 usbcore
evdev                  10273  7


Last edited by unkulunkulu on Thu Dec 11, 2014 11:41 am; edited 1 time in total
Back to top
View user's profile Send private message
unkulunkulu
n00b
n00b


Joined: 09 Oct 2007
Posts: 56
Location: Russia

PostPosted: Thu Dec 11, 2014 10:49 am    Post subject: Reply with quote

I tried downloading the sound files from lichess.com and testing them locally with cvlc, no problem. It appears that this is somehow connected to the way firefox outputs sound.

These files: svn export https://github.com/ornicar/lila/trunk/public/sound
Back to top
View user's profile Send private message
unkulunkulu
n00b
n00b


Joined: 09 Oct 2007
Posts: 56
Location: Russia

PostPosted: Thu Dec 11, 2014 10:50 am    Post subject: Reply with quote

Also, looks like the spikes are not always there, but more likely to appear when the app is trying to output many sounds simultaneously.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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