<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/20 James Board <span dir="ltr"><<a href="mailto:jpboard2@yahoo.com" target="_blank">jpboard2@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I want to do something simple.  Play the audio that 's coming into my (CentOS)<br>
PC on Line-IN on my PC speakers.  How can I do this?  I tried the following<br>
command<br>
<br>
    load-module module-loopback latency_msec=1<br>
<br>
Which seems to work sometimes, but everytime I disconnect the input,<br>
I have to do the above command again.  And after a few times, when I<br>
run the above command, it crashes pulseaudio.  What's the correct<br>
way to play audio from the LineIN to the PC Speakers?  If this is<br>
possible outside pulseaudio, that is okay.<br></blockquote></div><br></div><div class="gmail_extra">Assuming your PC have one blue line in jack <br></div><div class="gmail_extra"><br></div><div class="gmail_extra">unmute "Line Playback Switch" and set "Line Playback Volume" using amixer -c0 or alsamixer<br>
<br></div><div class="gmail_extra">some HDA codec may have a "Loopback mixing" switch which can enable/disable the loopback mixer for power saving<br><br></div><div class="gmail_extra">you may also need to set "Line Boost" to 0dB for some HDA codec<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">for motherboard with three audio jacks at rear panel, you have to set "channel mode" to "2ch" ,   since line in jack is retasked to output for "4ch" and "6ch" <br>
<br></div><div class="gmail_extra">for motherboard with five audio jacks at rear panel, you need to set "channel mode" to "6ch" since line in jack is retasked to output for "8ch" to support 7.1<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">on some notebook with HDA codec and mic jack but no line in jack , you may also retasked the mic jack to line in jack by switching "Mic jack Mode" to "Line in" after you specify hint add_jack_modes = 1 by early patching <br>
<br><a href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio-Controls.txt">https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio-Controls.txt</a><br>
<br><a href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt">https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt</a><br>
</div></div>