Takashi Iwai schrieb:
At Thu, 30 Mar 2006 16:47:41 -0500,
Lee Revell wrote:
On Thu, 2006-03-30 at 21:52 +0200, Marcel Witte wrote:
I have searched with google and found a lot of /etc/asoundrc...but noone of 
them worked correctly.
Most of the .asoundrc examples people post on the net are garbage.
Check the list archives for some better examples.

My dream is that i can use 5.1-sound with dmix and automatic upmix from 
2channel-sound to 6channel. Is this possible??
There's still no easy way to do this.  There is some work in progress
(dmix improvements and new upmixing plugins) to make it easier.

For now you'll have to choose between dmix and stereo->5.1 upmixing (I
have never seen a working .asoundrc that does both).

The dmix works fine with 5.1 surround.  The setup of dmix is a bit
complicated and depends on the hardware, but upmixing is easily done
by my new stuff in alsa-plugins package.

Suppose you have ALSA 1.0.11rc4 or better CVS version.
In the case of intel onboard chip (installed as card 0), add the
following to ~/.asoundrc:

        pcm.dmix51 {
                type upmix
                slave.pcm {
                        type dmix
                        ipc_key {
                                @func refer
                                name defaults.pcm.ipc_key
                        }
                        ipc_gid {
                                @func refer
                                name defaults.pcm.ipc_gid
                        }
                        slave {
                                pcm "hw:0,0"
                                period_size 512
                                periods 10
                                channels 6
                                variable_buffer_size true
                        }
                }
        }

The period_size and periods are chosen to suit with 128kb buffer.

Then choose "Channel Mode" to "6ch" on mixer, turn off "Surround Down
Mix" and "Center/LFE Down Mix" (if any).  They could be automatically
set up if you define a hook pcm as found in
/usr/share/alsa/cards/ICH4.conf.  But, here, I don't write it up for
simplicity.

Playing with this PCM will upmix automatically to 5.1.

        % apaly -Dplug:dmix51 foo.wav

For making it to default, define the following in addition:

        pcm.pdmix {
                type plug
                slave.pcm "dmix51"
        }
        pcm.!defalut "pdmix"


In the future version, better pre-configurations for easy use will be
included (hopefully :)


Taksahi

I've installed 1.0.11rc4 and tried this asoundrc, but get this error when starting aplay -Dplug:dmix51 foo.wav:

ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM dmix51
aplay: main:547: audio open error: Datei oder Verzeichnis nicht gefunden

The Test-sound from alsaconf also doesn't comes...

And xine is writing this when starting it:

[...]
snd_pcm_open() schlug fehl:-22:Das Argument ist ungültig
>>> Überprüfen Sie, ob ein anderen Programm bereis PCM benutzt <<<
load_plugins: Audio-Plugin <alsa> konnte nicht geladen werden
main: Teste <alsa> Audio Ausgabe Plugin
snd_pcm_open() schlug fehl:-22:Das Argument ist ungültig
>>> Überprüfen Sie, ob ein anderen Programm bereis PCM benutzt <<<
load_plugins: Audio-Plugin <alsa> konnte nicht geladen werden
main: Teste <oss> Audio Ausgabe Plugin
audio_oss_out: audio.device.oss_device_name = auto, suche Geräte
audio_oss_out: Automatische Suche nach Audiogeräten schlug fehl
load_plugins: Audio-Plugin <oss> konnte nicht geladen werden
main: Teste <arts> Audio Ausgabe Plugin
starting artsd!
load_plugins: Audio-Plugin <arts> konnte nicht geladen werden
main: Teste <esd> Audio Ausgabe Plugin
audio_esd_out: Verbinde ESD Server...

But I didn't start an esd-server, this must be automatically

I hope you can help me!

marcel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to