Nieuws:

Ubuntu-NL weer online!

Na een periode van technische problemen en een overbelaste server zijn we eindelijk weer bereikbaar.
Samen met Hobbynet, onze sponsor en hostingpartner, hebben we een oplossing gevonden zodat alles weer soepel draait.

Bedankt voor jullie geduld en begrip. We hopen nu weer verder te gaan waar we gebleven waren.

Het team van Ubuntu-NL

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Almost there - ALSA - dmix + surround combo  (gelezen 1940 keer)

Gast

  • Gast
Almost there - ALSA - dmix + surround combo
« Gepost op: 2006/06/10, 18:54:43 »
Hi all, I have an Audigy 2 SE soundcard, which uses the ca0106 driver. I've been experimenting a bit with it today, and I can get either dmix working, or surround. However, I fail to get them both working at the same time :(.
I found a solution that is supposed to work from http://alsa.opensrc.org/index.php?page=DMixPlugin, but it failed for me (error listed below).

Does anyone have anymore suggestions I could try out? :)

working surround:
pcm.snd_card {
   type hw
   card 0
}

ctl.snd_card {
   type hw
   card 0
}

pcm.duppy {
    type route
    slave.pcm "surround51"
    slave.channels 6
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
    ttable.0.4 0.5
    ttable.1.4 0.5
    ttable.2.5 1
}

pcm.!default {
   type plug
   slave.pcm "duppy"
}
working dmix:
pcm.snd_card {
   type hw
   card 0
}

ctl.snd_card {
   type hw
   card 0
}

pcm.dmix6 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false # let multiple users share
        ipc_perm 0660 # IPC permissions (octal, default 0600)
        slave {
                pcm snd_card # see below
                rate 48000
                channels 6
                period_time 0
                period_size 1024 # try 2048 against skipping
                buffer_time 0
                buffer_size 8192
        }
}

pcm.!default {
   type plug
   slave.pcm "dmix6"
}
not-working surround+dmix:
pcm.snd_card {
   type hw
   card 0
}

ctl.snd_card {
   type hw
   card 0
}

pcm.dmix6 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false # let multiple users share
        ipc_perm 0660 # IPC permissions (octal, default 0600)
        slave {
                pcm snd_card # see below
                rate 48000
                channels 6
                period_time 0
                period_size 1024 # try 2048 against skipping
                buffer_time 0
                buffer_size 8192
        }
}

pcm.ch51dup {
    type route
    slave.pcm "dmix6"
    slave.channels 6
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
    ttable.0.4 0.5
    ttable.1.4 0.5
    ttable.2.5 1
}

pcm.!default {
   type plug
   slave.pcm "ch51dup"
}
the error I get:
ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:874: Broken configuration for this PCM: no configurations available

Firebird

  • Gast
Almost there - ALSA - dmix + surround combo
« Reactie #1 Gepost op: 2006/06/10, 18:56:37 »
Sorry voor m'n engels btw, ben al de hele tijd aan het zoeken op engelstalige fora en sites, ff vergeten.

Ik gebruik Ubuntu 6.06 LTS, uname -a: 2.6.15-23-k7 #1 SMP PREEMPT Tue May 23 14:20:54 UTC 2006 i686 GNU/Linux. Alsa-base is de standaard ge