[pulseaudio-discuss] Two outputs
Colin Guthrie
gmane at colin.guthr.ie
Tue Dec 22 12:34:38 PST 2009
'Twas brillig, and Josu Lazkano at 22/12/09 16:41 did gyre and gimble:
> Hello everybody! I have a HTPC connected to the TV and to an sound
> amplifier, I have configured the output from optical. But I need to hear
> too on the headphones, is it possible?
Yes and no :)
By default, during PA startup we will probe your h/w to see what devices
can be accessed at the same time - this typically relates to
output+input at the same time as some hardware will allow e.g. 5.1
output but only when stereo input is disabled (as the chip's logic - and
often the physical 3.5mm connectors - are shared).
What we do not currently do is probe to see if we can open a given cards
different outputs at the same time. Again much hardware out there only
allows one output to be used at a time - either analog or digital - but
not both. A lot of hardware does allow both to be used and I'm guessing
yours is capable of this?
So, with the above explanation in mind you can presumably switch your
profile of your card in PA to use some form of "Digital Output" profile
(typically you'd use pavucontrol or gnome-sound-preferences to adjust
this but you can also use the pacmd on the command line - I presume
you've done this already as you said you've configured the output from
optical).
Now as PA will not add individual sinks for both the digital and analog,
you'll have to load a separate module-alsa-sink for the other one you
want - e.g. if auto-detection will load digital, you should add a
separate sink for analog.
Once you have both sinks loaded, you can use module-combine to create a
virtual output that will allow you to output to both analog and digital
at the same time.
I hope this helps.
Col
> This is my configuration:
>
> $ cat /proc/asound/cards
> 0 [NVidia ]: HDA-Intel - HDA NVidia
> HDA NVidia at 0xfae78000 irq 22
>
> $ cat /proc/asound/pcm
> 00-00: ALC662 rev1 Analog : ALC662 rev1 Analog : playback 1 : capture 1
>
> 00-01: ALC662 rev1 Digital : ALC662 rev1 Digital : playback 1
> 00-03: NVIDIA HDMI : NVIDIA HDMI : playback 1
>
> $ aplay -l
> **** Lista de PLAYBACK Dispositivos Hardware ****
> tarjeta 0: NVidia [HDA NVidia], dispositivo 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
>
> Subdispositivos: 1/1
> Subdispositivo #0: subdevice #0
> tarjeta 0: NVidia [HDA NVidia], dispositivo 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
> Subdispositivos: 1/1
> Subdispositivo #0: subdevice #0
> tarjeta 0: NVidia [HDA NVidia], dispositivo 3: NVIDIA HDMI [NVIDIA HDMI]
>
> Subdispositivos: 1/1
> Subdispositivo #0: subdevice #0
>
>
> I must configured from command line? Thanks for all.
>
> --
> Josu Lazkano
>
>
>
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at mail.0pointer.de
> https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the pulseaudio-discuss
mailing list