PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Surround 5.1 mit ALSA



hanfgeist
20.02.09, 18:30
Ich versuche seit einiger Zeit mit ALSA einen Stereo Sound über 6 Känle Wiederzugeben. Ich Bastel schon eine ganze Weile an ALSA herum und bekomme es einfach nicht hin.:confused:

Mit "speaker-test -c6 -twav -D surround51" werden alle Kanäle richtig angesprochen.

Zu meinem System:

OpenSUSE 11.1, Meine Sounkarte ist "CMI8738/C3DX" und auch richtig erkannt.

Das ist meine .asoundrc, an der ich schon länger herum schraube.:eek:

pcm.a52encode {
type a52
}

#pcm.lowpass {
# type ladspa
#
# slave.pcm ...
# path "/usr/lib/ladspa"
# plugins [ {
# label lpf
# input {
# controls [ 50 ]
# }
# } ]
#}

# move channel 0 to channel 2

pcm.move0to2 {
type route

slave.pcm 3to6
slave.channels 3
ttable.0.2 1
}

# 3to6 has 3 input and 6 output channels
# the stereo signal is on ch. 0 and 1
# ch.0 is copied to 0 and 2 (front and rear)
# ch.1 is copied to 1 and 3 (front and rear)
# ch.0 and ch.1 will is mixed to ch.4 (center)
# ch.2 is routed to ch.5 (subwoofer)

pcm.3to6 {
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.ice2_21cutoffsub {
# type ladspa
#
# slave.pcm ice_plug
# path "/usr/lib/ladspa"
# plugins {
# 0 {
# label lp4pole_fcrcia_oa
# policy none
# input.bindings.2 "Input";
# output.bindings.2 "Output";
# input {
# controls [ 300 0 ]
# }
# }
# 1 {
# label delay_0.01s
# input.bindings.0 "Input";
# output.bindings.0 "Output";
# input {
# controls [ 0 1 ]
# }
# }
# }
#}


#pcm.ch40dup {
# type route
#
# slave.pcm surround40
# slave.channels 4
# ttable.0.0 1
# ttable.1.1 1
# ttable.0.2 1
# ttable.1.3 1
#}

#pcm.ch51dup {
# 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
#}

#pcm.stereoupmix {
# type route
#
# slave.pcm "a52encode"
# 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.0.5 0.5
# ttable.1.5 0.5
#}

#pcm.stereoupmix {
# type upmix

# slave.pcm "a52encode"
# channels 6
#}

#pcm.!default {
# type pulse

#}

#ctl.!default {
# type pulse

#}

#pcm.pulseaudio a52encode

#ctl.pulseaudio {
# type hw

# card 0
#}


Ich hoffe, das mir jemand helfen kann und bendanke mich schon mal im Vorraus.

unaufana
25.02.09, 22:25
Hi!


Ich bin gerade hier, weil ich debian lenny installiert habe und nicht mehr genau wusste, wie ich das 5.1-Problem das letzte mal gelöst hatte (ich hatte damals zwischendurch auch "Monster-Configs" gebastelt und das hat alles nie geklappt).

Alter Thread: http://www.linuxforen.de/forums/showthread.php?t=257397

Hat zumindest bei mir wieder funktioniert, diesmal sogar einfacher, weil alles von Haus aus schon auf Lenny ("damals" testing) ist...

Probier mal:
- Die Zeile "load-module module-alsa-sink device=surround51:0 channels=6" in "/etc/pulse/default.pa" hinzufügen (irgendwo stehen auch schon auskommentierte Muster)
- Ich hab auch noch die Zeilen mit dem "hal-detekt-zeug" rauskommentiert, das muss aber denke ich nicht sein.


Viel Glück.

hanfgeist
25.02.09, 23:07
HI zurück

Ja, deinen Beitrag hatte ich ich schon gelesen, doch es hat leider nicht Funktioniert.
Trotzdem vielen Dank.

Kaffeine spuckt mit Pulseaudio immer Folgendes aus:


Fehler: Audiotreiber pulseaudio kann nicht eingerichtet werden - auto wird benutzt!

Details:

00:00:08: >>> Überprüfen Sie, ob ein anderen Programm bereis PCM benutzt <<<
00:00:08: snd_pcm_open() schlug fehl:-16: Das Gerät oder die Ressource ist belegt
00:00:04: xine: Demultiplexer-Plugin gefunden: image demux plugin
00:00:04: xine: Inputplugin gefunden: Datei Plugin


Bis dann ;)

hanfgeist
25.02.09, 23:18
Was ich gerade gemerkt habe, ist das "aplay -L" Folgendes bringt:



default:CARD=CMI8738
C-Media CMI8738, C-Media PCI DAC/ADC
Default Audio Device
front:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
Front speakers
iec958:CARD=CMI8738,DEV=0
C-Media CMI8738, C-Media PCI DAC/ADC
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)


Ich sehe gar kein 5.1 Wiedergabegerät, obwohl die Soundkarte das eigentlich können sollte. Woran kann das liegen(Die Soundkarte hat eine Mic-In, eine Line-In, eine Front-Out, eine Surround-Out und eine Center/LFE-Out Buchse)?