You are not logged in.

#1 2008-03-23 16:49:14

Jedimind
Member
Registered: 2008-02-15
Posts: 24

[Solved] Alsa + Multi sound

I got tired of not being able to play multiple sounds so I looked at the wiki:

http://wiki.archlinux.org/index.php/All … nd_at_once

My sound-card wasn't detected with dmix at first so I put this in /etc/asound.conf (as in the wiki:)

#/etc/asound.conf start:
pcm.!default {
    type plug
    slave.pcm "dmixer"
}


pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
        rate 44100   #many new cards are 48000 only
    }
    bindings {
        0 0
        1 1
    }
}

ctl.dmixer {
    type hw
    card 0
}

#end.

So if I have mpd running (as my user) and try to run mpg123 X.mp3 I get:

ALSA lib pcm_dmix.c:866:(snd_pcm_dmix_open) unable to open slave
[alsa.c:146] error: cannot open device default
[audio.c:517] error: failed to open audio device
[mpg123.c:709] error: Failed to initialize output, goodbye.

So obviously there is some problem with the slave, and I have no idea on how to continue. I guess I need to change something in /etc/asound.conf, but I don't know what. lspci gives:

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)

So what do I do now? I'm not sure how to continue, the only file that has dmix in it is /usr/share/alsa/pcm/dmix.conf so I don't know howto. I suppose I'm missing some kind of module(?)

Last edited by Jedimind (2008-03-24 18:16:14)

Offline

#2 2008-03-23 21:34:15

venox
Member
From: Curitiba, Brazil
Registered: 2003-08-23
Posts: 137
Website

Re: [Solved] Alsa + Multi sound

Try updating alsa-lib to 1.0.16, I have an ICH7 based chip and it solved all my problems (I had constant system freezes when playing sound with mpd and youtube at the same time). Strangely, alsa-lib on extra hasn't been updated yet, so you'll have to build 1.0.16 by yourself:

pkgname=alsa-lib
pkgver=1.0.16
pkgrel=0
pkgdesc="An alternative implementation of Linux sound support"
arch=(i686 x86_64)
url="http://www.alsa-project.org"
depends=('glibc')
makedepends=('python')
license=('GPL')
options=(!libtool)
source=(ftp://ftp.alsa-project.org/pub/lib/$pkgname-1.0.16.tar.bz2)
md5sums=('73b0986758bb762648a5fafc93e287c1')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

#3 2008-03-24 18:15:47

Jedimind
Member
Registered: 2008-02-15
Posts: 24

Re: [Solved] Alsa + Multi sound

venox wrote:

Try updating alsa-lib to 1.0.16, I have an ICH7 based chip and it solved all my problems (I had constant system freezes when playing sound with mpd and youtube at the same time). Strangely, alsa-lib on extra hasn't been updated yet, so you'll have to build 1.0.16 by yourself:

Thank you very much! This solves my problem, I didn't have lock ups and things like you did but I was having problems. Now it's solved! smile

Offline

#4 2008-03-27 15:09:41

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: [Solved] Alsa + Multi sound

I used to have this working, but did a fresh install for various reasons. I'm having the same problem as the OP and alsa-lib got upgraded to 1.0.16 and it still isn't working. What else would cause it?

Offline

#5 2008-05-22 09:28:21

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: [Solved] Alsa + Multi sound

I'm in the same boat as Reasons. Fresh install, and no multisound.

Offline

#6 2008-05-29 05:36:10

droog
Member
Registered: 2004-11-18
Posts: 877

Re: [Solved] Alsa + Multi sound

just did a fresh install and had the same problem with mpd mainly. After messing around got a working asound.conf

edit

well working with the asound.conf found in the wiki so guess im no help, all i needed was to put dmixer in the device section of mpd.conf

Last edited by droog (2008-05-29 05:58:10)

Offline

Board footer

Powered by FluxBB