Reconfigure o line-in como saída analógica

2

Estou tentando reconfigurar minha "linha" como outra "saída analógica" e usá-la junto com a porta de saída analógica padrão.

Estou usando uma placa de som onboard realtek. É muito simples fazer isso no windows com o driver gui, mas não há como fazê-lo no linux aparentemente.

Linux localhost 3.9.9-1-ARCH # 1 SMP PREPARO Qua Jul 3 22:45:16 CEST 2013 x86_64 GNU / Linux

    
por Etherealone 26.05.2013 / 13:18

2 respostas

0

É descrito aqui em AskUbuntu .

Existem alguns problemas com o pygtk no script (pelo menos no Arch).

Eu resolvi isso executando o script principal com python2 e os outros scripts que ele instala com python.

I managed to do it, but changes revert after rebooting. (Update: This can be worked around; see the bottom of this post.)

I did it via a GUI in python called HDA Analyzer that can be fetched and used from the ALSA website like the following:

wget -O run.py http://www.alsa-project.org/hda-analyzer.py

sudo python run.py (Their page doesn't say sudo, but if you don't do
it with sudo, it will download the scripts but fail to run them and
complain about privileges.)

Now this will make the GUI start, but its usage is not explained, and it's not exactly newbie-friendly. So to make life easier I'll explain how I did it. In my case, it was a matter of two clicks; the tricky part was locating exactly what needs to be clicked.

(Note: You may explore all the nodes one by one, but don't modify anything you don't understand. Any modification (e.g. ticking a checkbox) becomes effective immediately; there's no apply button.)

The list contains many nodes called Node[0x##] followed by any of AUD_OUT, AUD_IN, AUD_MIX, PIN and VENDOR. The only ones you have to look in are the PIN ones.

There are multiple types of PIN nodes; the type we want will fill the whole window with panels/control groups (It helps to stretch or maximize the window), as in this screenshot. (The site prevented me from inserting the image inline, sorry.)

Inside the Config Default field, some nodes will have in the first line Jack Connection: N/A; we need the ones that say Jack Connection: Jack as in the screenshot.

To change a Line-In to an output jack, look until you find the node that says Jack Type: Line In. (And notice the Jack Location2: Rear and Jack Color: Blue.)

Then, in the three checkboxes in the Widget Control group below, uncheck IN and check OUT.

Using the same way, you can assign any of the front or rear jacks to either input or output.

Now if you close the window, it will ask whether you want to revert changes. Saying yes reverts them immediately; saying no keeps them but only for this session.

If you want to keep your changes permanently, don't close HDA Analyzer yet. Instead, click "Exp" (Export) at the bottom-left and use Save As to write the python script to a file. Now copy that file to something like /etc/hda-mods.py and edit /etc/rc.local as root (e.g. using gksudo gedit /etc/rc.local) and append python /etc/hda-mods.py right before exit 0, then save it and reboot. Your changes should survive.

    
por 10.07.2013 / 20:00
0

O que eu descrevi neste livro sobre Q & A intitulado: como canalizar a saída de áudio para a entrada de microfone fornecer a você uma solução adequada?

O artigo original que descreveu este método é intitulado: Redirect Saída de áudio para Mic In (Linux) .

Etapas gerais

  1. Execute o aplicativo pavucontrol .

  2. Vá até a guia "Dispositivos de entrada" e selecione "Mostrar: monitores" na parte inferior da janela. Se o seu computador estiver reproduzindo áudio, você deverá ver uma barra mostrando o volume da saída:

  3. Agora, inicie um aplicativo que possa gravar áudio, como audacity .

  4. Clique no botão do dispositivo de entrada ("ALSA Capture from") e escolha "Monitor de estéreo analógico de áudio interno")

por 06.07.2013 / 15:09