Best way to route System audio and a hardware input too system audio output?

Hi, I have a radio on my desk next to my machine, and since I’ve started wearing headphones more recently, I need to route the audio from the radio into my headphones (which are Bluetooth) at the same time as my system audio. Bonus points if it is routed to the ‘default’ audio device and not specifically my headphones, that way I can take off my headphones without switching my radio to it’s internal speaker. The radio is just connected via 3.5mm analog to the front audio connection on my case. I found examples of people using the pulseaudio loopback module(?) in an archived topic called “voicemeter equivalent for linux” to do something similar, but i’m not sure how to modify those or where to get the names of my audio devices. I tried jack with both cadence and qjackctl, but It crashes itself and pulseaudio which I then have to manually restart. I do this in my windows partition with voicemeter, but I prefer a command line tool.

Any help is much appreciated.

Welcome to Manjaro

I found examples of people using the pulseaudio loopback module(?) in an archived topic called “voicemeter equivalent for linux”

I am mostly to blame for those discussions, and it was probably my comments that led you into the first circle of JACK hell

If you wanted a voicemeeter equivalent for mixing to a live stream (or similar) I would be happy to help you get JACK working and setting up a mixer
But that can be a long and complicated process that is not worthwhile for your use-case
You still need PulseAudio to connect to Bluetooth headphones

To convert the radio input (source) to an output (sink) requires a loopback module

Please post response to this command to show the names needed to configure the module

pacmd dump | grep -v module

The front microphone jack is not the best option for line-level audio from the radio, it would be better if you could use the blue line-in socket on rear

But if that is not a practical option, the audio jacks can be re-tasked to change the front microphone to a line-in jack
If you install alsa-tools that has tool hdajackretask for changing jack functions

[lucag@lucag-manjaro rungen]$ pacmd dump | grep -v module

Configuration dump generated at Sun Feb 7 18:08:20 2021

set-sink-volume alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3 0x10000
set-sink-mute alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3 yes
suspend-sink alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3 yes
set-sink-volume alsa_output.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo 0x7a07
set-sink-mute alsa_output.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo no
suspend-sink alsa_output.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo yes
set-sink-volume bluez_sink.03_30_20_19_37_FD.a2dp_sink 0x6664
set-sink-mute bluez_sink.03_30_20_19_37_FD.a2dp_sink no
suspend-sink bluez_sink.03_30_20_19_37_FD.a2dp_sink yes
set-sink-volume alsa_output.pci-0000_07_00.6.analog-stereo 0xa665
set-sink-mute alsa_output.pci-0000_07_00.6.analog-stereo yes
suspend-sink alsa_output.pci-0000_07_00.6.analog-stereo yes

set-source-volume alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3.monitor 0x10000
set-source-mute alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3.monitor no
suspend-source alsa_output.pci-0000_01_00.1.hdmi-stereo-extra3.monitor yes
set-source-volume alsa_output.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo.monitor 0x10000
set-source-mute alsa_output.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo.monitor no
suspend-source alsa_output.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo.monitor yes
set-source-volume alsa_input.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo 0xfafa
set-source-mute alsa_input.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo no
suspend-source alsa_input.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo yes
set-source-volume alsa_input.usb-HD_Web_Camera_HD_Web_Camera_Ucamera001-02.mono-fallback 0xf4f5
set-source-mute alsa_input.usb-HD_Web_Camera_HD_Web_Camera_Ucamera001-02.mono-fallback no
suspend-source alsa_input.usb-HD_Web_Camera_HD_Web_Camera_Ucamera001-02.mono-fallback yes
set-source-volume bluez_sink.03_30_20_19_37_FD.a2dp_sink.monitor 0x10000
set-source-mute bluez_sink.03_30_20_19_37_FD.a2dp_sink.monitor no
suspend-source bluez_sink.03_30_20_19_37_FD.a2dp_sink.monitor yes
set-source-volume alsa_output.pci-0000_07_00.6.analog-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_07_00.6.analog-stereo.monitor no
suspend-source alsa_output.pci-0000_07_00.6.analog-stereo.monitor yes
set-source-volume alsa_input.pci-0000_07_00.6.analog-stereo 0x2893
set-source-mute alsa_input.pci-0000_07_00.6.analog-stereo no
suspend-source alsa_input.pci-0000_07_00.6.analog-stereo yes

set-card-profile alsa_card.pci-0000_01_00.1 output:hdmi-stereo-extra3
set-card-profile alsa_card.pci-0000_07_00.6 output:analog-stereo+input:analog-stereo
set-card-profile alsa_card.usb-Audio-Technica_ATR_USB_microphone-00 output:analog-stereo+input:analog-stereo
set-card-profile alsa_card.usb-HD_Web_Camera_HD_Web_Camera_Ucamera001-02 input:mono-fallback
set-card-profile bluez_card.03_30_20_19_37_FD a2dp_sink

set-default-sink bluez_sink.03_30_20_19_37_FD.a2dp_sink
set-default-source alsa_input.usb-Audio-Technica_ATR_USB_microphone-00.analog-stereo

EOF

I wasn’t sure how to format this, so you get a big ugly dump.
I just switched it over to the rear jack, so I think its called “alsa_input.pci-0000_07_00.6.analog-stereo” because that was not present in the first dump I did with the radio on the front mic jack.

I never realized there was a technical difference between line-in and mic, do you know if it is just a bus labeling thing, or is there some sample rate or bit difference?