Hi

I have forgotten to uninstall the alsa-rpm-packages from version 1.0.10...
Now I've uninstalled them (yast wasn't happy about this...) and installed alsa-driver, alsa-lib, alsa-plugins, alsa-utils and alsa-firmware from the 1.0.11rc4-sources

Here are my results:

alsaconf:
- found an intel8x0 nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
- sayd:
===============================================================================

    Now ALSA is ready to use.
    For adjustment of volumes, use your favorite mixer.

    Have a lot of fun!

- but played no test-sound

/etc/init.d/alsasound reload:
    Shutting down sound driver: done
    Starting sound driver: snd-intel8x0 done
    /usr/sbin/alsactl: load_state:1236: No soundcards found...

alsamixer:
- anything is unmuted and raised to max.

speaker-test -c6:
- played no sound but is writing fast:
    speaker-test 1.0.11rc4

    Playback device is default
    Stream parameters are 48000Hz, S16_LE, 6 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 2048 to 206157824
    Period size range from 1024 to 1024
    Periods = 4
    Buffer time size 24000
    To choose buffer_size = 206157824
    To choose period_size = 51539456
    was set period_size = 1024
    was set buffer_size = 206157824
     0 - Front Left
     4 - Center
     1 - Front Right
     3 - Rear Right
     2 - Rear Left
     5 - LFE
    Time per period = 0,436713
     0 - Front Left
     4 - Center
     1 - Front Right
     3 - Rear Right
     2 - Rear Left
     5 - LFE
    Time per period = 0,344152
    [...]

- with -Dplug:dmix51 :
    speaker-test 1.0.11rc4

    Playback device is plug:dmix51
    Stream parameters are 48000Hz, S16_LE, 6 channels
    Using 16 octaves of pink noise
ALSA lib pcm.c:6648:(snd_pcm_slave_conf) Unknown field variable_buffer_size
    Playback open error: -22,Das Argument ist ungültig
ALSA lib pcm.c:6648:(snd_pcm_slave_conf) Unknown field variable_buffer_size
    Playback open error: -22,Das Argument ist ungültig
ALSA lib pcm.c:6648:(snd_pcm_slave_conf) Unknown field variable_buffer_size
    Playback open error: -22,Das Argument ist ungültig
    [...]

aplay k3b_error1.wav:
- works, but just the front-speakers:
    Playing WAVE 'k3b_error1.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
- with -Dplug:dmix51 :
    ALSA lib pcm.c:2146:(snd_pcm_open_noupdate) Unknown PCM :plug:dmix51
aplay: main:547: audio open error: Datei oder Verzeichnis nicht gefunden

alsaplayer:
- works fine, is using alsa and is mixing (I've used alsaplayer 5x and it works, but it was awful...), but just the front-speakers.:
    AlsaPlayer 0.99.76
    (C) 1999-2003 Andy Lo A Foe <[EMAIL PROTECTED]> and others.
    Output plugin: ALSA output v1.9.0beta12
    Loading reader plugin: File reader v1.1
    Loading reader plugin: HTTP reader v1.3
    Loading Input plugin: CDDA player v1.2
    Loading Input plugin: MikMod player v1.0
    Loading Input plugin: WAV player v1.01
    Loading Input plugin: Ogg Vorbis player v1.2
    Loading Input plugin: MAD MPEG audio plugin v1.01
    Loading Input plugin: flac player v1.2
    Loading Input plugin: libsndfile plugin v0.1
    Interface plugin: GTK+ interface v1.2

- with -dplug:dmix51 :
    AlsaPlayer 0.99.76
    (C) 1999-2003 Andy Lo A Foe <[EMAIL PROTECTED]> and others.
ALSA lib pcm.c:6648:(snd_pcm_slave_conf) Unknown field variable_buffer_size
    snd_pcm_open: Das Argument ist ungültig (plug:dmix51)
    Failed to initialize plugin!
Failed to register plugin: /usr/local/lib/alsaplayer/output/libalsa_out.so
    Failed to load output plugin "alsa". Trying defaults.
ALSA lib pcm.c:6648:(snd_pcm_slave_conf) Unknown field variable_buffer_size
    snd_pcm_open: Das Argument ist ungültig (plug:dmix51)
    Failed to initialize plugin!
    /usr/local/lib/alsaplayer/output/libalsa_out.so failed to load
    jack: using ports alsa_pcm:playback_1 & alsa_pcm:playback_2 for output
    jack: server not running?
    /usr/local/lib/alsaplayer/output/libjack_out.so failed to load
    error opening /dev/dsp
    Failed to initialize plugin!
    /usr/local/lib/alsaplayer/output/liboss_out.so failed to load
    Output plugin: ESD output v1.0 (broken for mono output)
    ESD: rate fixed at 44100Hz
    ESD: fragments fixed at 256/256, stereo
    Loading reader plugin: File reader v1.1
    Loading reader plugin: HTTP reader v1.3
    Loading Input plugin: CDDA player v1.2
    Loading Input plugin: MikMod player v1.0
    Loading Input plugin: WAV player v1.01
    Loading Input plugin: Ogg Vorbis player v1.2
    Loading Input plugin: MAD MPEG audio plugin v1.01
    Loading Input plugin: flac player v1.2
    Loading Input plugin: libsndfile plugin v0.1
    Interface plugin: GTK+ interface v1.2

xine:
- the same as in the last mail.

Am I too stupid for alsa??? I think so...

Marcel

Marcel Witte schrieb:
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



-------------------------------------------------------
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