#1 Le 01/04/2006, à 11:40
- tazman
Sortie analogique et optique en même temps
Bonjour à tous,
j'essaie de faire marcher ma Terratec 7.1 space à la fois en analogique et en optique
pour sortir le son sur mon ampli et sur les enceintes stéréo de mon TFT.
aplay -l
tazman@tazland-ubuntu:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: T71Space [Terratec Aureon 7.1-Space], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: T71Space [Terratec Aureon 7.1-Space], device 1: IEC1724 IEC958 [IEC1724 IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: T71Space [Terratec Aureon 7.1-Space], device 2: ICE1724 Surrounds [ICE1724 Surround PCM]
Subdevices: 3/3
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
voici le contenu de mon asound.conf
# Override the default output used by ALSA.
# If you do not override the default, your default
# device is identical to the (unmixed) analog device
# shown below. If you prefer mixed and/or digital
# output, uncomment the appropriate four lines below
# (only one slave.pcm line).
pcm.!default {
type plug
## Uncomment the following to use mixed analog by default
slave.pcm "dmix-analog"
## Uncomment the following to use mixed digital by default
#slave.pcm "dmix-digital"
}
# Direct software mixing plugin for analog output on
# the nForce2/4 (hw:0,0)
# Do not use this directly--it requires specific rate,
# channels, and format
pcm.dmix-analog {
type dmix
ipc_key 1234
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
periods 128
rate 48000
}
}
# Direct software mixing plugin for digital (S/PDIF) output
# on the nForce2/4 (hw:0,2)
# Do not use this directly--it requires specific rate,
# channels, and format
pcm.dmix-digital {
type dmix
ipc_key 1235
slave {
pcm "hw:0,1"
period_time 0
period_size 2048
buffer_size 32768
periods 128
rate 48000
}
}
pcm.mixin {
type dsnoop
ipc_key 5978293 # must be unique for all dmix plugins!!!!
ipc_key_add_uid yes
slave {
pcm "dmix-digital"
period_time 0
period_size 2048
buffer_size 32768
periods 128
rate 48000
}
bindings {
0 0
0 1
}
}
pcm.duplex {
type asym
playback.pcm "dmix-analog"
capture.pcm "dmix-digital"
}
La sorte analogique marche avec dmix-analog,
la sortie optique marche avec dmix-digital dans le "pcm.!default".
Comment faire pour avoir les 2 sorties en même temps
Hors ligne