Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468954 - media-plugins/alsa-plugins: deal with wine and pulseaudio
Summary: media-plugins/alsa-plugins: deal with wine and pulseaudio
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
Depends on:
Reported: 2013-05-07 22:11 UTC by PM
Modified: 2014-06-12 17:48 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description PM 2013-05-07 22:11:19 UTC
I just noticed that there's no sound in all my wine apps (it used to work), even in the sound test in winecfg. I noticed the following errors in the console:

ALSA lib conf.c:3314:(snd_config_hooks_call) Cannot open shared library /usr/lib64/alsa-lib/
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM default 

I'm not really versed in wine internals or ALSA / pulse, so I'm not sure where to go from here. From what I can tell, there's nothing wrong with the .so mentioned above. I'll be happy to provide more info on request.

Reproducible: Always

Portage 2.2.0_alpha174 (default/linux/amd64/13.0/desktop, gcc-4.8.0, glibc-2.17, 3.8.2-pf x86_64)
System uname: Linux-3.8.2-pf-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.2
KiB Mem:     4044688 total,    309968 free
KiB Swap:    4095996 total,   4027236 free
Timestamp of tree: Mon, 06 May 2013 18:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.11_rc3::kde
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.2-r1, 4.8.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo multimedia sunrise steam-overlay kde roslin dupa
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -march=native -pipe -ggdb"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -ggdb"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build=n"
FCFLAGS="-O2 -march=native -pipe -ggdb"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=native -pipe -ggdb"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/usr/local/portage/layman/multimedia /usr/local/portage/layman/sunrise /usr/local/portage/layman/steam /usr/local/portage/layman/kde /usr/local/portage/layman/roslin /usr/local/portage/moje"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb apng async audiofile automount avahi avresample bash-completion berkdb bfq bineditor bluetooth bluray branding bzip2 c++0x cairo cdda cddb cdparanoia cdr chdir clang cli consolekit cracklib crypt css cuda cups curl cxx dbus dirac disk-partition divx djvu dri dts dvd dvdr ebook editor emboss emovix enca encode exchange exif faac faad fam fat ffmpeg fftw firefox firefox3 flac fontconfig fortran g3dvl gd gdbm geoip gif glitz gmedia gnuplot gphoto2 gpm gtk hddtemp iconv id3 id3tag imagemagick inotify iostats ipod jpeg kde kde4 kdehiddenvisibility kipi kompare kpathsea kqemu ladspa lame laptop lastfm latex lcms libass libcaca libnotify libsamplerate lm_sensors lzma lzo mad matroska midi mjpeg mmap mmx mmxext mng modules moodbar mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musicbrainz ncurses networkmanager nls nptl nsplugin ntfs nvidia ogg okteta openal opencl opencore-amr opengl openmp optimized-qmake pam pango pch pcre pdf plasma png policykit portage ppds private-headers pulseaudio qt3 qt3support qt4 qthelp raster readline realmedia roe scanner schroedinger sdl secure-delete semantic-desktop sensord session shaders slang sndfile solver soundtouch sourceview sparse spell sse sse2 sse3 sse4 sse41 sse4_1 sse4a ssl ssse3 startup-notification steamruntime suid svg swat symlink syslog tcpd theora threads tiff truetype udev udisks unicode upnp upower usb vaapi vamp vcd vdpau vorbis wifi wmf wmp wxwidgets wxwindows x264 xcb xcomposite xml xscreensaver xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 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="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
Comment 1 PM 2013-05-07 22:26:23 UTC
I also noticed that in winecfg's audio output device selection there's only a digital output, while there should be an analog output.
Comment 2 PM 2013-05-07 22:43:57 UTC
Ok, this is weird. If I log out (of KDE) and back in, the sound in wine starts working again (and the analog output device appears in winecfg), but only until I start any sound-playing application. After that, even if I then close said application, audio in wine stops working again until I log out.
Comment 3 PM 2013-05-07 22:45:25 UTC
I forgot to add, the ALSA error appears even when sound is working, so it's probably unrelated.
Comment 4 Rafał Mużyło 2013-05-08 00:44:14 UTC
That's alsa only in part - it's more of alsa in multilib environment.

I don't have wine on mmy amd64 machine, but I've seen on the forum hints, that 
dropping /usr/lib/alsa-lib/ from /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf helps.
Comment 5 Reinis Danne 2013-10-01 17:08:20 UTC
I have the same error messages in Steam, but there sound  is blocked on Steam or another app (Firefox HTML5 video or VLC) depending who started to play first. The first grabs it and there is no sound in another.

It looks a bit weird since it tries to open 64bit library, but it is 32bit application. I'm using new multilib packages, by setting ABI_X86=32 for emuil-* packages.
Comment 6 Reinis Danne 2013-10-15 14:06:26 UTC
This is related to bug #410261. Dropping /usr/lib/alsa-lib/ from /usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf helps, the original message is no more.

But at least in the case of Steam, flash (both 32bit) grabs sound device blocking access for other apps or it fails to grab it if other app is playing and then there is no sound in Steam. Flash in firefox (both 64bit) works fine and can play simultaneously with VLC.

VLC seams to change sound volume when flash in Steam starts to play, but there is sound only from Steam as it fails to grab the sound device:
ALSA lib /var/tmp/portage/media-libs/alsa-lib- unable to open slave
Comment 7 Reinis Danne 2013-10-15 14:16:19 UTC
s/sound only/no sound/
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-12-18 04:42:20 UTC
This should be fixed by pulseaudio-4.0-r1 which properly supports multilib. Install it with ABI_X86="32 64" and see if that solves the problem.
Comment 9 Pacho Ramos gentoo-dev 2014-06-12 17:48:59 UTC
(In reply to Alexandre Rostovtsev from comment #8)
> This should be fixed by pulseaudio-4.0-r1 which properly supports multilib.
> Install it with ABI_X86="32 64" and see if that solves the problem.