<div dir="ltr"><div><div><div><div>Hello,<br><br></div></div>I would like to split my stereo codec into two mono channels (input/output) (hardware restriction, I would like to use this configuration into a embedded system) but using pulse audio.<br></div><div>I could have separated using Alsa , but I will need apply echo-cancelling in each channel.<br></div><div>I'm trying to connect the alsa output to pulseaudio but I didn't have success.<br></div><div><br>Someone has some better idea to split this channels using pulseaudio? My configuration using alsa is above.<br></div><br></div><div>The basic configuration in my .asounrd is:<br><br></div>cat ~/.asoundrc<br><br><div><div>pcm.input_left {<br>    type dsnoop<br>    ipc_key 234884<br>    slave {<br>        pcm "hw:0,0"<br>        channels 2<br>    }<br>    bindings.0  0<br>}<br>pcm.input_right {<br>    type dsnoop<br>    ipc_key 2241234<br>    slave {<br>        pcm "hw:0,0"<br>        channels 2<br>    }    <br>    bindings.0  1<br>}<br><br>pcm.device-separation {<br>   type dmix<br>   ipc_key 1234<br>   slave {<br>      pcm "hw:0,0"<br>      period_time 0<br>      period_size 4096<br>      buffer_size 8192<br>      rate 44100<br>   }<br>}<br><br>pcm.output_left {<br>   type route<br>   slave.pcm device-separation<br>   slave.channels 2<br>   ttable.0.0 0.5<br>   ttable.1.0 0.5<br>   hint.description "Left channel"<br>}<br><br>pcm.output_right {<br>   type route<br>   slave.pcm device-separation<br>   slave.channels 2<br>   ttable.0.1 0.5<br>   ttable.1.1 0.5<br>   hint.description "Right channel"<br>}<br><br><br><br><br><div>After I modify the file to try connect the alsa to pulseaudio<br><br>pcm.input_left {<br>    type dsnoop<br>    ipc_key 234884<br>    slave {<br>        pcm "hw:0,0"<br>        channels 2<br>    }<br>    bindings.0  0<br>}<br>pcm.input_right {<br>    type dsnoop<br>    ipc_key 2241234<br>    slave {<br>        pcm "hw:0,0"<br>        channels 2<br>    }    <br>    bindings.0  1<br>}<br><br>pcm.input_left_pulse {<br>   type pulse<br>   slave.pcm input_left<br>}<br><br>ctl.input_left_pulse {<br>   type pulse<br>}<br><br><br>pcm.intput_right_pulse {<br>  type pulse<br>  slave.pcm input_right<br>}<br><br>ctl.intput_right_pulse {<br>  type pulse<br>}<br><br>pcm.device-separation {<br>   type dmix<br>   ipc_key 1234<br>   slave {<br>      pcm "hw:0,0"<br>      period_time 0<br>      period_size 4096<br>      buffer_size 8192<br>      rate 44100<br>   }<br>}<br><br>pcm.output_left {<br>   type pulse<br>   slave.pcm device-separation<br>   slave.channels 2<br>   ttable.0.0 0.5<br>   ttable.1.0 0.5<br>   hint.description "Left channel"<br>}<br><br>clt.output_left {<br>   type pulse<br>}<br><br>pcm.output_right {<br>   type pulse<br>   slave.pcm device-separation<br>   slave.channels 2<br>   ttable.0.1 0.5<br>   ttable.1.1 0.5<br>   hint.description "Right channel"<br>}<br><br>ctl.output_right {<br>    type pulse<br>}<br><br></div><div>In the /etc/pulse/<a href="http://default.pa">default.pa</a> I added these lines<br><br>load-module module-alsa-sink device=output_right<br>load-module module-alsa-source device=input_right_plug<br><br>load-module module-alsa-sink device=output_left<br>load-module module-alsa-source device=input_left_plug<br><br></div><div>But these configuration it's wrong and doesn't work .<br><br></div><div>Someone have a better idea?<br><br></div><div>Thank you very much!<br></div><div><div><div><div><div><br></div><div>Regards,<br></div><div><br clear="all"><div><br>-- <br><div class="gmail_signature">----------------------------------------------<br>Caio Pereira</div>
</div></div></div></div></div></div></div></div></div>