<div dir="ltr"><div><div>Package: alsa-base<br>Version: 1.0.27+1<br>Severity: normal<br><br>So I've been trying to fix this problem for a while now, but I can't seem to set up ALSA in a way to enable multiple sound sources at once (2 or more apps/programs to use the soundcard simultaneously). Despite having a dmix entry in /etc/asound.conf, it still refuses to work the way I intend it to.<br>And speaking of which, here's how my asound.conf looked like:<br><br>_____________________________________________________________________________<br><br>    pcm.!default {<br>        type hw<br>        card PCH<br>    }<br><br>    ctl.!default {<br>        type hw<br>        card PCH<br>    }<br><br>    pcm.dsp {<br>        type plug<br>        slave.pcm "dmix"<br>    }<br><br>defaults.pcm.rate_converter "speexrate_medium"<br><br>____________________________________________________________________________<br><br>And here's what 'aplay -l' gives me:<br><br>____________________________________________________________________________<br><br>    **** List of PLAYBACK Hardware Devices ****<br>    card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]<br>      Subdevices: 1/1<br>      Subdevice #0: subdevice #0<br>    card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]<br>      Subdevices: 1/1<br>      Subdevice #0: subdevice #0<br>    card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]<br>      Subdevices: 1/1<br>      Subdevice #0: subdevice #0<br>    card 1: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]<br>      Subdevices: 1/1<br>      Subdevice #0: subdevice #0<br><br>____________________________________________________________________________<br><br>As you probably guessed, I'm using an integrated soundcard (that's on a Intel B85 chipset), and I've set it to use the jack plug output instead of the HDMI one.<br><br>Another issue that I'm having is that the sounds/music/etc that are supposed to be outputted by Firefox, don't get played at all (like for example add-ons that notify me when I get an e-mail, or HTML5 audio and/or video players, or other such stuff). Curiously the flash player seems to be unaffected by this issue, probably because it's stand-alone to the browser itself.<br><br>Before attempting to submit this bug request, I tried asking for help on the alsa user mailing list (<a href="http://thread.gmane.org/gmane.linux.alsa.user/39409">http://thread.gmane.org/gmane.linux.alsa.user/39409</a>), and out of that I tried those asound.conf configurations:<br><br>#1:<br>____________________________________________________________________________<br>pcm.PCH {<br>  type asym<br>  playback.pcm {<br>    type plug<br>    slave {<br>          pcm {<br>            type dmix<br>            ipc_key 9175930<br>            ipc_key_add_uid true<br>            slave {<br>              pcm "hw:PCH"<br>            }<br>          }<br>      }<br>  }<br>  capture.pcm "hw:PCH"<br>}<br>____________________________________________________________________________<br><br><br>Which doesn't change anything, still can't use multiple sound sources, and the FF issue isn't fixed. 'aplay', however works, and plays files nicely. If I pass it the -Dplug:dmix parameter, it gives me an error (see below)<br><br>#2:<br>____________________________________________________________________________<br><br><pre>defaults.pcm.card PCH
defaults.ctl.card PCH<br><br>____________________________________________________________________________<br><br></pre><pre>This one causes sound to no longer work, and none of the soundcards get listed at all, either in the mixer, or in 'aplay -l'<br><br><br>#3:<br><br>____________________________________________________________________________<br><br>pcm.!default {
     type plug
     slave.pcm "dmix"
}
ctl.!default {
     type hw
     card 1
}<br><br>_____________________________________________________________________________<br></pre>Which again, unfortunately doesn't fix anything, but instead whether I use aplay stand-alone, or with '-Dplug:dmix', I get this same message:<br><br>ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave<br>aplay: main:722: audio open error: No such file or directory<br><br></div>Which leads me to think this might be a bug, as the package I got might be missing components. I apologise in advance in case this is actually not a bug, but rather a configuration issue. All I remember is that I didn't have this much trouble setting up dmix on any other previous PCs I owned.<br></div>Also, just in case someone might suggest a PulseAudio fix, I'm not using it. Just straight-up ALSA.<br><div><div><div><br><br>-- System Information:<br>Debian Release: stretch/sid<br>  APT prefers unstable<br>  APT policy: (500, 'unstable')<br>Architecture: amd64 (x86_64)<br>Foreign Architectures: i386<br><br>Kernel: Linux 4.4-1.dmz.1-liquorix-amd64 (SMP w/4 CPU cores; PREEMPT)<br>Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)<br>Shell: /bin/sh linked to /bin/dash<br>Init: systemd (via /run/systemd/system)<br><br>Versions of packages alsa-base depends on:<br>ii  dpkg  1.18.4<br>ii  kmod  22-1<br><br>alsa-base recommends no packages.<br><br>alsa-base suggests no packages.<br><br>-- no debconf information<br><br><br><br></div></div></div></div>