OS Won't Listen to Line-In

Greetings!

When I first installed my current running copy of Manjaro I had issues getting my audio to work. After a long period of troubleshooting I was able to get it to work by disconnecting my USB-MIDI interface as the OS kept wanting to use it as the default audio device for some reason rather than SPDIF.

Now I am attempting to reconnect my USB-MIDI device (Roland UM-ONE Mk2.) so I can use my hardware MIDI synth (Roland JV-1010) with retro games.

While I am able to successfully confirm playback on the midi device using:

aplaymidi -p 28:0 example.mid

Manjaro doesn’t seem to be listening to the Line-In port on my motherboard which my MIDI synth outputs to. I have enabled loopback on the Line port in amixer and verified it is not muted but it doesn’t seem to work. I followed another thread in the forum about listening to line-in to no avail.

Perhaps there is something I am missing? Thanks in advance.

Welcome to Manjaro forum

Please post system information

inxi -Fazy

and ALSA information

sudo alsa-info.sh --upload
2 Likes

System:
Kernel: 5.10.59-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=129719fb-8351-4a1a-95d8-66692d657324 rw quiet apparmor=1
security=apparmor udev.log_priority=3
Desktop: i3 4.19.1 info: i3bar vt: 7 dm: LightDM 1.30.0
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: ROG STRIX X570-E GAMING v: Rev X.0x
serial: UEFI: American Megatrends v: 2812 date: 11/04/2020
CPU:
Info: 12-Core model: AMD Ryzen 9 3900X bits: 64 type: MT MCP arch: Zen 2
family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701021 cache:
L2: 6 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 182133
Speed: 2195 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz):
1: 2195 2: 2196 3: 2204 4: 2196 5: 2194 6: 2195 7: 2194 8: 3593 9: 2048
10: 2047 11: 2192 12: 2194 13: 2196 14: 2195 15: 2194 16: 2195 17: 2194
18: 3592 19: 2053 20: 2052 21: 2201 22: 2196 23: 2195 24: 2195
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:
conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA TU102 [GeForce RTX 2080 Ti Rev. A] vendor: ASUSTeK
driver: nvidia v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 0b:00.0
chip-ID: 10de:1e07 class-ID: 0300
Device-2: AVerMedia Live Streamer CAM 313 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 7-1:2 chip-ID: 07ca:313a
class-ID: 0102 serial:
Device-3: Microsoft LifeCam Cinema type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 7-2:3 chip-ID: 045e:075d class-ID: 0102
Display: x11 server: XOrg 1.20.13 compositor: picom v: git-dac85 driver:
loaded: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 108 s-size: 602x342mm (23.7x13.5")
s-diag: 692mm (27.3")
Monitor-1: DP-0 res: 2560x1440 hz: 60 dpi: 109 size: 598x336mm (23.5x13.2")
diag: 686mm (27")
OpenGL: renderer: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
v: 4.6.0 NVIDIA 470.63.01 direct render: Yes
Audio:
Device-1: NVIDIA TU102 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 0b:00.1 chip-ID: 10de:10f7
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 0d:00.4 chip-ID: 1022:1487
class-ID: 0403
Device-3: C-Media Blue Snowball type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1:2 chip-ID: 0d8c:0005
class-ID: 0300 serial:
Device-4: Roland UM-ONE type: USB driver: snd-usb-audio bus-ID: 3-2:3
chip-ID: 0582:012a class-ID: ff00
Device-5: AVerMedia Live Streamer CAM 313 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 7-1:2 chip-ID: 07ca:313a
class-ID: 0102 serial:
Device-6: Microsoft LifeCam Cinema type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 7-2:3 chip-ID: 045e:075d class-ID: 0102
Sound Server-1: ALSA v: k5.10.59-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Network:
Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 05:00.0
chip-ID: 8086:2723 class-ID: 0280
IF: wlp5s0 state: down mac:
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
port: e000 bus-ID: 06:00.0 chip-ID: 10ec:8125 class-ID: 0200
IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac:
Device-3: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
port: d000 bus-ID: 07:00.0 chip-ID: 8086:1539 class-ID: 0200
IF: enp7s0 state: down mac:
Bluetooth:
Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-6:6
chip-ID: 8087:0029 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
Local Storage: total: 2.73 TiB used: 90.57 GiB (3.2%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Samsung
model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial:
rev: 2B2QEXM7 temp: 48.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung
model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial:
rev: 2B2QEXM7 temp: 50.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10EZEX-08WN4A0
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: rev: 1A02 scheme: GPT
Partition:
ID-1: / raw-size: 196.39 GiB size: 192.25 GiB (97.89%)
used: 90.54 GiB (47.1%) fs: ext4 dev: /dev/nvme1n1p5 maj-min: 259:6
ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.96%)
used: 25.1 MiB (26.4%) fs: vfat dev: /dev/nvme1n1p2 maj-min: 259:3
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 52.6 C mobo: N/A gpu: nvidia temp: 40 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 32%
Info:
Processes: 396 Uptime: 15h 2m wakeups: 2 Memory: 31.33 GiB
used: 4.39 GiB (14.0%) Init: systemd v: 248 tool: systemctl Compilers:
gcc: 11.1.0 Packages: pacman: 1245 lib: 327 Shell: Bash v: 5.1.8
running-in: urxvtd inxi: 3.3.06

And my ALSA upload is: f=38fce58037bfa8478f68623acf59aad4ade6bd42
Sorry, it won’t let me put the full link.

Thank you for your response and welcome. :slight_smile:

Forum anti-spam does not allow new users to post active links, but an inactive link can posted as preformatted text

http://alsa-project.org/db/?f=38fce58037bfa8478f68623acf59aad4ade6bd42

Most of the ALSA controls in !!-------Mixer controls for card Generic are set correctly

  • ‘Input Source’,0 — ‘Line’
  • ‘Loopback Mixing’ — ‘Enabled’
  • ‘Line’,0 — Playback 31 [100%] [12.00dB] [on]

I recommend you turn down the Line playback monitor to 0.0dB to avoid any over-amplified distortion, and so it does not deafen you when it becomes audible

amixer --card=1 sset Line 0.0dB

One control appears to have been missed:

  • ‘Capture’,0 — Capture 0 [0%] [-17.25dB] [off]

If Capture is turned on audio from Line via Capture > Loopback > Mic should be audible in the IEC958 (S/PDIF) output
and if audio level for Capture is turned up to 0.0dB Line audio would also be available in PulseAudio

amixer --card=1 sset Capture 0.0dB cap

This is a bit strange, and not consistent with the data in ALSA

There are only 2 devices detected in **** List of PLAYBACK Hardware Devices **** ( aplay -l )
and only 4 devices in **** List of CAPTURE Hardware Devices **** ( arecord -l )
Card 3 Roland UM-ONE is only detected as a midi device

If you post more information about PulseAudio

pacmd dump

that will show how any sinks (outputs) and sources (inputs) are configured

1 Like

Forum anti-spam does not allow new users to post active links, but an inactive link can posted as preformatted text.

Thanks for the tip! I will keep that in mind for future posts.

I recommend you turn down the Line playback monitor to 0.0dB to avoid any over-amplified distortion, and so it does not deafen you when it becomes audible

Having it set to 100 was a temporary measure. It was just part of the troubleshooting process. Thank you for the reminder though!

One control appears to have been missed:
‘Capture’,0 — Capture 0 [0%] [-17.25dB] [off] If Capture is turned on audio from Line via Capture > Loopback > Mic should be audible in the IEC958 (S/PDIF) output and if audio level for Capture is turned up to 0.0dB Line audio would also be available in PulseAudio

I have rectified the issue per your recommendation. Still no luck hearing the output of the device. I have 100% verified the device is responding as I can hear the output of it fine if I plug into the headphone port as well as the signal LED being illuminated.

This is a bit strange, and not consistent with the data in ALSA

I can assure you that this was the case. I was unable to get audio output from the system on ANYTHING until I unplugged the UM-ONE and rebooted. Afterwards everything worked correctly.

There are only 2 devices detected in **** List of PLAYBACK Hardware Devices **** ( aplay -l )and only 4 devices in **** List of CAPTURE Hardware Devices **** ( arecord -l ) Card 3 Roland UM-ONE is only detected as a midi device

It is, by definition, a midi device. I’m also not certain why the system was attempting to push audio to it.

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
load-module module-udev-detect
load-module module-alsa-card device_id=“2” name=“usb-BLUE_MICROPHONE_Blue_Snowball_201305-00” card_name=“alsa_card.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00” namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties=“module-udev-detect.discovered=1”
load-module module-alsa-card device_id=“0” name=“pci-0000_0b_00.1” card_name=“alsa_card.pci-0000_0b_00.1” namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties=“module-udev-detect.discovered=1”
load-module module-alsa-card device_id=“4” name=“usb-Sunplus_IT_Co_Live_Streamer_CAM_313_20200529002-02” card_name=“alsa_card.usb-Sunplus_IT_Co_Live_Streamer_CAM_313_20200529002-02” namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties=“module-udev-detect.discovered=1”
load-module module-alsa-card device_id=“5” name=“usb-Microsoft_Microsoft___LifeCam_Cinema_TM_-02” card_name=“alsa_card.usb-Microsoft_Microsoft___LifeCam_Cinema_TM_-02” namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties=“module-udev-detect.discovered=1”
load-module module-alsa-card device_id=“1” name=“pci-0000_0d_00.4” card_name=“alsa_card.pci-0000_0d_00.4” namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties=“module-udev-detect.discovered=1”
load-module module-dbus-protocol
load-module module-native-protocol-unix
load-module module-gsettings
load-module module-default-device-restore
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
load-module module-console-kit
load-module module-systemd-login
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
load-module module-cli-protocol-unix
set-sink-volume alsa_output.pci-0000_0b_00.1.hdmi-stereo-extra1 0x10000
set-sink-mute alsa_output.pci-0000_0b_00.1.hdmi-stereo-extra1 no
suspend-sink alsa_output.pci-0000_0b_00.1.hdmi-stereo-extra1 yes
set-sink-volume alsa_output.pci-0000_0d_00.4.iec958-stereo 0x10000
set-sink-mute alsa_output.pci-0000_0d_00.4.iec958-stereo no
suspend-sink alsa_output.pci-0000_0d_00.4.iec958-stereo yes
set-source-volume alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00.analog-stereo 0xe428
set-source-mute alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00.analog-stereo no
suspend-source alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00.analog-stereo yes
set-source-volume alsa_output.pci-0000_0b_00.1.hdmi-stereo-extra1.monitor 0x10000
set-source-mute alsa_output.pci-0000_0b_00.1.hdmi-stereo-extra1.monitor no
suspend-source alsa_output.pci-0000_0b_00.1.hdmi-stereo-extra1.monitor yes
set-source-volume alsa_input.usb-Sunplus_IT_Co_Live_Streamer_CAM_313_20200529002-02.mono-fallback 0x10000
set-source-mute alsa_input.usb-Sunplus_IT_Co_Live_Streamer_CAM_313_20200529002-02.mono-fallback no
suspend-source alsa_input.usb-Sunplus_IT_Co_Live_Streamer_CAM_313_20200529002-02.mono-fallback yes
set-source-volume alsa_input.usb-Microsoft_Microsoft___LifeCam_Cinema_TM_-02.mono-fallback 0xf65d
set-source-mute alsa_input.usb-Microsoft_Microsoft___LifeCam_Cinema_TM_-02.mono-fallback no
suspend-source alsa_input.usb-Microsoft_Microsoft___LifeCam_Cinema_TM_-02.mono-fallback yes
set-source-volume alsa_output.pci-0000_0d_00.4.iec958-stereo.monitor 0x10000
set-source-mute alsa_output.pci-0000_0d_00.4.iec958-stereo.monitor no
suspend-source alsa_output.pci-0000_0d_00.4.iec958-stereo.monitor yes
set-source-volume alsa_input.pci-0000_0d_00.4.analog-stereo 0x199a
set-source-mute alsa_input.pci-0000_0d_00.4.analog-stereo no
suspend-source alsa_input.pci-0000_0d_00.4.analog-stereo yes
set-card-profile alsa_card.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00 input:analog-stereo
set-card-profile alsa_card.pci-0000_0b_00.1 output:hdmi-stereo-extra1
set-card-profile alsa_card.usb-Sunplus_IT_Co_Live_Streamer_CAM_313_20200529002-02 input:mono-fallback
set-card-profile alsa_card.usb-Microsoft_Microsoft___LifeCam_Cinema_TM_-02 input:mono-fallback
set-card-profile alsa_card.pci-0000_0d_00.4 output:iec958-stereo+input:analog-stereo
set-default-sink alsa_output.pci-0000_0d_00.4.iec958-stereo
set-default-source alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201305-00.analog-stereo

My assumption that the ALSA Loopback would work on S/PDIF output similar to analog outputs was incorrect :confounded:

I suggest you turn off the ALSA loopback and use a PulseAudio loopback instead
PulseAudio loopback has additional latency compared to ALSA.
If you ‘cross the streams’ the combined mix of both streams will sound awful

amixer -c1 sset 'Loopback Mixing' Disabled

This command should load the loopback module and connect the input source from Line to S/PDIF

pacmd load-module module-loopback source=alsa_input.pci-0000_0d_00.4.analog-stereo sink=alsa_output.pci-0000_0d_00.4.iec958-stereo

If that works for you, the module can be added to Pulseaudio configuration

cat <<EOT > ~/.config/pulse/default.pa
.include /etc/pulse/default.pa
.nofail
load-module module-loopback source=alsa_input.pci-0000_0d_00.4.analog-stereo sink=alsa_output.pci-0000_0d_00.4.iec958-stereo
EOT

I am not sure what could cause the MIDI device to take out all the other devices. If there was a problem with USB connections or devices not sharing an internal hub it should not affect internal audio devices

I have very limited knowledge on MIDI and I do not know any other users on here that can help with this. I suggest you ask about this device on Linuxmusicians forum, they would know about MIDI generally and might know this specific device

1 Like

I have very limited knowledge on MIDI and I do not know any other users on here that can help with this. I suggest you ask about this device on Linuxmusicians forum, they would know about MIDI generally and might know this specific device

Thank you so much for your time and patience and general help regarding this matter! I am glad to see such a welcoming community here.


I will now defer to the Linux Musicians forum for some help; however, if anyone is still reading this thread, as of this moment I am still in need of assistance regarding this issue. So please post here if you have anything to illuminate the issue.

If I gain a solution from the LM forum I will post it here for posterity before considering the matter resolved.

1 Like