D
*Dark Dragon*
Guest
I want to hear PCM Out and S/PDIF In simultaneously from my analog speakers.
In other words what I want is this:
PCM Out + plughw:0,1 -> hw:0,0
plughw:0,1 is my S/PDIF stereo input (sound from external device).
hw:0,0 is my analog stereo output (my speakers).
PCM Out represents stereo sounds from all programs in my computer.
At first I thought mixing sounds from external device with sounds from my computer and listening to the result on my speakers will be easy, it seems pretty natural thing to do... but I can't find a solution. If somebody can suggest something, I will really appreciate it.
My sound card is M-Audio Audiophile 192 and I use Debian Linux.
Summary of what I actually achieved at the moment
With ALSA and OSS (without pulseaudio) I can get:
plughw:0,1 -> hw:0,0
or
PCM Out -> hw:0,0
With pulseaudio and jack I'm able to get only this at the moment:
PCM Out -> hw:0,0
What I have tried to achieve the goal with ALSA
Hypothetically, by writing special asound.conf it may be possible to get what I want with ALSA. I tried to write one based on the example (forum.xbmc.org/showthread.php?tid=96138), but could not get it to work, even after reading ALSA documentation (alsa-project.org/main/index.php/Asoundrc).
Here is my not working asound.conf in case somebody can help to fix it: (science.su/stuff/log/asound.conf) - instead of mixing S/PDIF In and PCM Out it just "mutes" PCM Out and that's it. Here are also sreenshot of alsamixer -V all (science.su/stuff/sreenshot/alsamixer_-V_all.jpg) and output from amixer (science.su/stuff/log/amixer.txt) aplay -l (science.su/stuff/log/aplay.txt), cat /proc/asound/devices (science.su/stuff/log/devices.txt).
Note: I need stereo sound, so selecting S/PDIF In (in alsamixer called "IEC958 In") for one channel, and PCM Out for the other is not an option.
What I have tried to achieve the goal with JACK
At this moment I think JACK may help to achieve my goal, but unfortunately when I run qjackctl I see only analog inputs/outputs:
capture_1, capture_2 (that's plughw:0,0)
playback_1, playback_2 (that's hw:0,0)
...and do not see controls for plughw:0,1 (S/PDIF stereo input) and hw:0,1 (S/PDIF stereo output). PCM Out is missing too. I have no idea how to add missing inputs/outputs to JACK, reading the documentation and googling did not help. Tab "MIDI" in qjackctl is empty, and tab "ALSA" contains only MIDI devices.
(I omit what I have tried with OSS4 and PulseAudio because I see no potential way to achieve what I want with them - please correct me if I'm wrong)
In other words what I want is this:
PCM Out + plughw:0,1 -> hw:0,0
plughw:0,1 is my S/PDIF stereo input (sound from external device).
hw:0,0 is my analog stereo output (my speakers).
PCM Out represents stereo sounds from all programs in my computer.
At first I thought mixing sounds from external device with sounds from my computer and listening to the result on my speakers will be easy, it seems pretty natural thing to do... but I can't find a solution. If somebody can suggest something, I will really appreciate it.
My sound card is M-Audio Audiophile 192 and I use Debian Linux.
Summary of what I actually achieved at the moment
With ALSA and OSS (without pulseaudio) I can get:
plughw:0,1 -> hw:0,0
or
PCM Out -> hw:0,0
With pulseaudio and jack I'm able to get only this at the moment:
PCM Out -> hw:0,0
What I have tried to achieve the goal with ALSA
Hypothetically, by writing special asound.conf it may be possible to get what I want with ALSA. I tried to write one based on the example (forum.xbmc.org/showthread.php?tid=96138), but could not get it to work, even after reading ALSA documentation (alsa-project.org/main/index.php/Asoundrc).
Here is my not working asound.conf in case somebody can help to fix it: (science.su/stuff/log/asound.conf) - instead of mixing S/PDIF In and PCM Out it just "mutes" PCM Out and that's it. Here are also sreenshot of alsamixer -V all (science.su/stuff/sreenshot/alsamixer_-V_all.jpg) and output from amixer (science.su/stuff/log/amixer.txt) aplay -l (science.su/stuff/log/aplay.txt), cat /proc/asound/devices (science.su/stuff/log/devices.txt).
Note: I need stereo sound, so selecting S/PDIF In (in alsamixer called "IEC958 In") for one channel, and PCM Out for the other is not an option.
What I have tried to achieve the goal with JACK
At this moment I think JACK may help to achieve my goal, but unfortunately when I run qjackctl I see only analog inputs/outputs:
capture_1, capture_2 (that's plughw:0,0)
playback_1, playback_2 (that's hw:0,0)
...and do not see controls for plughw:0,1 (S/PDIF stereo input) and hw:0,1 (S/PDIF stereo output). PCM Out is missing too. I have no idea how to add missing inputs/outputs to JACK, reading the documentation and googling did not help. Tab "MIDI" in qjackctl is empty, and tab "ALSA" contains only MIDI devices.
(I omit what I have tried with OSS4 and PulseAudio because I see no potential way to achieve what I want with them - please correct me if I'm wrong)