<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 23.01.2017 10:58, Tanu Kaskinen
      wrote:<br>
      <br>
      Moin Tanu, thanks for your answer.<br>
      <br>
      <br>
    </div>
    <blockquote cite="mid:1485165513.2366.7.camel@iki.fi" type="cite">
      <pre wrap="">On Tue, 2017-01-17 at 11:18 +0100, Michael Renner wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Moin,

my new project seems to be easy, but the setup still does not work. On a
Raspberry Pi (raspbian jessie with backports) runs pulseaudio 7.1.2 on a
USB sound card. On a notebook I installed ubuntu xenial with Pulseaudio 8.
</pre>
      </blockquote>
    </blockquote>
    [...]<br>
    <br>
    <br>
    <blockquote cite="mid:1485165513.2366.7.camel@iki.fi" type="cite">
      <blockquote type="cite">
        <pre wrap="">
At least one piece of the puzzle that you didn't find is module-
loopback. That module can be used to take audio from a source and feed
it into a sink. Pavucontrol can't be used to set up loopbacks, so use
the command line:

pactl load-module module-loopback source=name-of-the-source sink=name-of-the-sink</pre>
      </blockquote>
    </blockquote>
    <br>
    I tried, but the pulseaudioprocess crashed.<br>
    <br>
    <br>
    <blockquote cite="mid:1485165513.2366.7.camel@iki.fi" type="cite">
      <blockquote type="cite">
        <pre wrap="">

You can use "pactl list sinks" and "pactl list sources" to figure out
the sink and source names (the name is a different thing than the
description that you see in pavucontrol).
</pre>
      </blockquote>
    </blockquote>
    <br>
    <br>
    OK, to make thinks easy let us look just to one channel: bringing
    the microphone on the RasPi to the loudspeaker on the notebook.<br>
    <br>
    <br>
    [...]<br>
    <br>
    <br>
    <blockquote cite="mid:1485165513.2366.7.camel@iki.fi" type="cite">
      <blockquote type="cite">
        <pre wrap="">
Arrangement 4 (everything at the notebook end):

tunnel sink for the Pi speakers at the notebook end
tunnel source for the Pi mic at the notebook end
loopback from the tunnel source to the notebook speakers at the notebook end
loopback from the notebook mic to the tunnel sink at the notebook end

</pre>
      </blockquote>
    </blockquote>
    <br>
    This sound good, because the setup is controled from the notebook
    end. So first, <span id="result_box" class="short_text" lang="en"><span
        class="">determine the device name on the RasPi:<br>
        renner@lyra:~$ ssh 192.168.22.84 "pacmd list-sources | grep
        name:"<br>
                name:
<alsa_output.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00-CODEC.analog-stereo.monitor><br>
                name:
<alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00-CODEC.analog-stereo><br>
                name: <alsa_output.0.analog-stereo.monitor><br>
        <br>
        The 1st entry is the monitor channel of the SignaLink card, the
        3rd is the monitor of the build in card and the 2nd entry is the
        microphone channel that I want to redirect. So I start the
        tunnel. This work, but only for 2 or 3 seconds. For these few
        seconds I see an </span></span><br>
    <span id="result_box" class="short_text" lang="en"><span class=""><span
          id="result_box" class="short_text" lang="en"><span class="">additional
            input device in the notebook pavcontrol application: Tunnel
            to 192.168.22.84/alsa_input...... and the blue level meter
            show the audio level from the microphone. It goes up and
            down, just like it should. But only for some seconds, then
            it freeze.<br>
            <br>
            As soon as the loopback module is loaded pulseaudio crash. I
            choosed the "main" soundcard "analog-stereo"<br>
          </span></span></span></span>renner@lyra:~$ pacmd list-sinks |
    grep name:<br>
    <span id="result_box" class="short_text" lang="en"><span class=""></span></span>
    <p>        name: <alsa_output.pci-0000_00_03.0.hdmi-stereo><br>
              name: <alsa_output.pci-0000_00_1b.0.analog-stereo></p>
    <p><br>
    </p>
    <p>$ pactl load-module module-tunnel-source-new server=192.168.22.84
      source_name=ts480rx
source=alsa_input.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00-CODEC.analog-stereo<br>
      $ pactl load-module module-loopback source=ts480rx
      sink=alsa_output.pci-0000_00_1b.0.analog-stereo<br>
    </p>
    <p><br>
    </p>
    <p>It sound like an easy setup, but I'm going nuts :-( For the
      moment I use pacat together with sox to redirect microphone and
      loudspeaker, but because there is the more elegant solution with
      the tunnel modules I want to use this.<br>
    </p>
    <p>I attached the debug output from both sides to this mail, can you
      see what cause the problem?</p>
    <p>Thanks</p>
    <pre class="moz-signature" cols="72">-- 
|Michael Renner      E-mail: <a class="moz-txt-link-abbreviated" href="mailto:michael.renner@gmx.de">michael.renner@gmx.de</a>  |
|81541 Munich        Twitter: @dd0ul                |
|Germany             Don't drink as root!      ESC:wq
</pre>
  </body>
</html>