[SOLVED] How to mix S/PDIF input and PCM Out
Posted: Sat Jul 14, 2012 8:46 pm
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.
hw:0,0 is my analog stereo output.
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 knows what else to try, please help.
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, but could not get it to work, even after reading ALSA documentation.
Here is my not working asound.conf in case somebody can help to fix it: 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 and output from: amixer, aplay -l, cat /proc/asound/devices.
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.
hw:0,0 is my analog stereo output.
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 knows what else to try, please help.
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, but could not get it to work, even after reading ALSA documentation.
Here is my not working asound.conf in case somebody can help to fix it: 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 and output from: amixer, aplay -l, cat /proc/asound/devices.
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)