PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ALSA - dmix - bindings - Speicherzugriffsfehler



Downlord
25.04.07, 22:31
Hi!

Ich möchte meine Sound Blaster Live! 24-Bit 7.1 (treiber: ca0106) zusammen mit dmix und stereo upmix, sowie softvol und das ganze systemweit nutzen.

Wenn ich den dmix wie im WIKI angegeben verwende, und einfach die Anzahl channels auf 8 einstelle...


pcm.!dmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
channels 8
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
}

so endet das in....


mjung:~ # aplay /usr/share/sounds/alsa/test.wav
Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable
aplay: set_params:882: Broken configuration for this PCM: no configurations available

Wenn ich die config so schreib, dass dmix nicht verwendet werden soll, funktioniert es allerdings! Also MUSS das Problem irgendwo hier liegen.
Nun hab' ich etliche dmix-Vorlagen verwendet, und überall das gleiche, ausser wenn ich noch


bindings
{
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
}


darin verwende:


mjung:~ # aplay /usr/share/sounds/alsa/test.wav
Playing WAVE '/usr/share/sounds/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Speicherzugriffsfehler



Bin echt am verzweifeln :(
Will doch endlich dmix benutzen können :'(



Hier meine alsa.conf:

# upmixing:
pcm.20to71 {
type route
slave.pcm "dmix"
slave.channels 8
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.0.5 0.5
ttable.1.5 0.5
ttable.0.6 1
ttable.1.7 1
}


# volume of all channels
pcm.softvol {
type softvol
slave.pcm "20to71"
control {
name "SoftMaster"
card 0
}
}

pcm.dsp "duplex"
pcm.dsp1 "duplex"

# Das dmix-Plugin wird definiert.

pcm.!dmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
channels 8
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
bindings
{
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
}
}


pcm.dsnooper {
type dsnoop
ipc_key 2048
ipc_perm 0666
slave. pcm "hw:0,0"
slave
{
period_time 0
period_size 1024
buffer_size 4098
}
bindings {
0 0
1 1
}
}

pcm.duplex {
type asym
playback.pcm "softvol"
capture.pcm "dsnooper"
}

pcm.!default {
type plug
slave.pcm "duplex"
slave.channels 8
}



Ich hoffe es kann mir jemand helfen, wäre sehr dankbar dafür!