You are not logged in.

#1 2022-05-10 21:09:37

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Horrible mic feedback loop.

Hey, I was using my mic with no problem until yesterday. Then I got that horrible problem of feedback loop.


here are my configs on KDE's audio system settings:

https://i.imgur.com/WwcdBU0.png

https://i.imgur.com/ewe979c.png

anything wrong?

Offline

#2 2022-05-11 04:27:38

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

Here's a quick demo of what's going on:

https://www.youtube.com/watch?v=S4YbcRx0fEU

Edit: Also noted it's on that feedback even with mic unplugged (3.5mm jack).

Last edited by pvpmartins (2022-05-11 04:36:46)

Offline

#3 2022-05-11 07:20:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,190

Re: Horrible mic feedback loop.

Post the outputs of

arecord -lL
amixer -c0 #Or whatever number the above output shows as the index nr
pactl list sources
pactl list source-outputs

during problematic reproduction in code tags.

Last edited by V1del (2022-05-11 21:45:14)

Offline

#4 2022-05-11 15:06:57

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

arecord -lL

[pvpmartins@arch ~]$ arecord -lL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
front:CARD=Loopback,DEV=0
    Loopback, Loopback PCM
    Front output / input
usbstream:CARD=Loopback
    Loopback
    USB Stream Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC887-VD Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC887-VD Analog
    Front output / input
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream Output
**** List of CAPTURE Hardware Devices ****
card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 2: Generic_1 [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

amxer -c0

bash: amxer: command not found

pactl list sources

Source #47
	State: SUSPENDED
	Name: alsa_output.pci-0000_09_00.6.iec958-stereo.monitor
	Description: Monitor of Family 17h/19h HD Audio Controller (PRIME B450M-A Motherboard) Digital Stereo (IEC958)
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor of Sink: alsa_output.pci-0000_09_00.6.iec958-stereo
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:2:iec958:2:playback"
		api.alsa.path = "iec958:2"
		api.alsa.pcm.card = "2"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "monitor"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Digital"
		alsa.id = "ALC887-VD Digital"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "1"
		alsa.card = "2"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcb80000 irq 98"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "iec958-stereo"
		device.profile.description = "Digital Stereo (IEC958)"
		card.profile.device = "6"
		device.id = "43"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "608"
		priority.session = "608"
		media.class = "Audio/Sink"
		node.nick = "HD-Audio Generic"
		node.name = "alsa_output.pci-0000_09_00.6.iec958-stereo"
		device.description = "Family 17h/19h HD Audio Controller (PRIME B450M-A Motherboard) Digital Stereo (IEC958)"
		device.icon_name = "audio-card-iec958"
		device.bus = "pci"
		device.bus_path = "pci-0000:09:00.6"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "32"
		clock.quantum-limit = "8192"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "42"
		object.serial = "47"
	Formats:
		pcm

Source #48
	State: SUSPENDED
	Name: alsa_output.platform-snd_aloop.0.analog-stereo.monitor
	Description: Monitor of Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor of Sink: alsa_output.platform-snd_aloop.0.analog-stereo
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:0:front:0:playback"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "monitor"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Loopback PCM"
		alsa.id = "Loopback PCM"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "Loopback"
		alsa.long_card_name = "Loopback 1"
		alsa.driver_name = "snd_aloop"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "11"
		device.id = "44"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "1009"
		priority.session = "1009"
		media.class = "Audio/Sink"
		node.nick = "Loopback"
		node.name = "alsa_output.platform-snd_aloop.0.analog-stereo"
		device.description = "Built-in Audio Analog Stereo"
		device.icon_name = "audio-card-analog"
		device.bus_path = "platform-snd_aloop.0"
		device.form_factor = "internal"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "32"
		clock.quantum-limit = "8192"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "34"
		object.serial = "48"
		node.max-latency = "16384/48000"
	Formats:
		pcm

Source #49
	State: SUSPENDED
	Name: alsa_input.platform-snd_aloop.0.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor of Sink: n/a
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:0:front:0:capture"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "capture"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Loopback PCM"
		alsa.id = "Loopback PCM"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "Loopback"
		alsa.long_card_name = "Loopback 1"
		alsa.driver_name = "snd_aloop"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "0"
		device.id = "44"
		factory.name = "api.alsa.pcm.source"
		priority.driver = "2009"
		priority.session = "2009"
		media.class = "Audio/Source"
		node.nick = "Loopback"
		node.name = "alsa_input.platform-snd_aloop.0.analog-stereo"
		device.description = "Built-in Audio Analog Stereo"
		device.icon_name = "audio-input-microphone-analog"
		device.bus_path = "platform-snd_aloop.0"
		device.form_factor = "internal"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "32"
		clock.quantum-limit = "8192"
		node.driver = "true"
		factory.mode = "split"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "45"
		object.serial = "49"
	Ports:
		analog-input: Analog Input (type: Analog, priority: 10000, availability unknown)
	Active Port: analog-input
	Formats:
		pcm

and "pactl list source-outputs" didn't output anything.

Last edited by pvpmartins (2022-05-11 15:12:17)

Offline

#5 2022-05-11 20:46:45

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

"amixer" but I'd not be surprised if that wasn't another result of the pipewire clusterfuck that's spamming across the boards…

Offline

#6 2022-05-11 20:51:04

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

Here it is:
amixer -c0

Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]

Offline

#7 2022-05-11 21:00:11

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

I guess -c2 would be more interesting, but did you try to mask wireplumber or install pipewire-media-session?

Offline

#8 2022-05-11 21:02:13

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

seth wrote:

"amixer" but I'd not be surprised if that wasn't another result of the pipewire clusterfuck that's spamming across the boards…

I think that's a good guess of what's going on.

Offline

#9 2022-05-11 21:46:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,190

Re: Horrible mic feedback loop.

You could revert to pipewire-media-session if you were affected by that, as for the outputs you have no source outside of the loopbacks

Offline

#10 2022-05-12 02:16:04

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

amixer -c2

Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
[pvpmartins@arch ~]$ amixer -c2
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 51 [80%] [-13.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 254 [100%] [-0.20dB]
  Front Right: Playback 254 [100%] [-0.20dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [30.00dB] [on]
  Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]

Offline

#11 2022-05-12 02:18:10

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

seth wrote:

I guess -c2 would be more interesting, but did you try to mask wireplumber or install pipewire-media-session?

No. At least I can't remember doing that.

I did tried though, to reinstall pipewire. But I have 0 knowledge on how those things works.

Offline

#12 2022-05-12 02:19:27

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

V1del wrote:

You could revert to pipewire-media-session if you were affected by that, as for the outputs you have no source outside of the loopbacks

Don't know what it is and how to do it.

Offline

#13 2022-05-12 02:25:13

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

seth wrote:

I guess -c2 would be more interesting, but did you try to mask wireplumber or install pipewire-media-session?

I've noticed that I have pipewire-media-session installed instead of wireplumber. Should I keep the former or remove it in order to install WirePlumber?

Offline

#14 2022-05-12 05:27:08

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

Afaiu pipewire-media-session is not related to the many other problems, but wireplumber is.
Does the feedback loop exist w/o pulseaudio and/or pipewire?

The front mic is off, the rear mic is off, but the rear mic boost is on.

alsamixcer -c2

What if you mute the rear mic boost?

Offline

#15 2022-05-13 02:49:10

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

seth wrote:

Afaiu pipewire-media-session is not related to the many other problems, but wireplumber is.
Does the feedback loop exist w/o pulseaudio and/or pipewire?

The front mic is off, the rear mic is off, but the rear mic boost is on.

alsamixcer -c2

What if you mute the rear mic boost?


Rear mic boost muted. Nothing changed... Maybe I will just reinstall arch...

Last edited by pvpmartins (2022-05-13 06:03:05)

Offline

#16 2022-05-13 06:08:02

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

seth wrote:

Does the feedback loop exist w/o pulseaudio and/or pipewire?

Eg. bot the multi-user.target, 2nd link below

Offline

#17 2022-05-13 18:27:27

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

seth wrote:

Eg. bot the multi-user.target, 2nd link below

Sorry, don't understand what you mean.

Offline

#18 2022-05-13 19:16:24

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

Did you click the link? It explains how to not boot the graphical.target
That gives you a chance to make sure that the pulseaudio or pipewire dameons are not running and then you can check whether the feedback loop is still there.

Offline

#19 2022-05-15 01:58:32

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

Ok. Did boot without the GUI. Now, what how am I suppose to test it? I was using discord but now that I’m just on a terminal command, i can’t launch it.

Or may I just see the output of those commands you passed me?

Last edited by pvpmartins (2022-05-15 02:09:06)

Offline

#20 2022-05-15 05:31:42

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

Hold on, the feedback is only there when you're using discord? Not permanently?
I guess you're not getting when merely "mpv /path/to/thunderstruck.mp3"?
Is it a feedback loop or an echo?
Did you inspect the alsa and pulseaudio states while running discord (or the feedback was present otherwise)?
Is it a humming or just an echo from the speakers?
Does it happen w/ an external mic?

Offline

#21 2022-05-15 15:08:14

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

seth wrote:

Hold on, the feedback is only there when you're using discord? Not permanently?
I guess you're not getting when merely "mpv /path/to/thunderstruck.mp3"?
Is it a feedback loop or an echo?
Did you inspect the alsa and pulseaudio states while running discord (or the feedback was present otherwise)?
Is it a humming or just an echo from the speakers?
Does it happen w/ an external mic?

It`s permanently. I just check if the problem persists on discord.
Well, like in the video. It sounds like a feedback loop, the input is getting the output sound and it keeps increasing its volume.
I did open the alsamixer while on discord.
It's just a humming.
Yes. Like I said above, even with the mic unplugged, I get this.

Offline

#22 2022-05-15 20:26:00

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

Ok, but if it's permanent what'S the implication of

Did boot without the GUI. Now, what how am I suppose to test it?

DO you get the feedback at this moment?

The video you posted has some constant background noise and then an obvious feedback loop when you test the microphone (and we don't know what discord is doing at this point)
Simply activating the microphone in alsamixer and playing w/ the devices (front/rea mic), their volume and the booster settings should allow you to figure what exactly causes the feedback.
No idea what the background noise is, though (sounds flapping?)

Offline

#23 2022-05-16 03:00:53

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

The thing is... Once I boot without the GUI I just don't know how to test the sound. The only reason I'm referring to discord is because I can hear what's going on in its audio settings section.

Offline

#24 2022-05-16 05:14:58

seth
Member
Registered: 2012-09-03
Posts: 28,841

Re: Horrible mic feedback loop.

You don't need to "test the sound".
Again: are there any audio artifacts in the basic condition of the multi-user.target?
If not: run "alsamixer" and activate the mic(s) and there boosters and possibly also other input/output devices there until the artifact shows up.
Alternatively post

amixer -c2
pactl list sources
pactl list source-outputs

*while* "testing" the sound causes the artifact.
Information that you gather while the artifacts aren't present are worthless.

Offline

#25 Today 15:35:13

pvpmartins
Member
Registered: 2022-02-06
Posts: 26

Re: Horrible mic feedback loop.

booted in multi-user.target:

alsamixer screenshot:

https://i.imgur.com/HH9FgNT.png

amixer:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 59 [92%] [-5.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 251 [98%] [-0.80dB]
  Front Right: Playback 251 [98%] [-0.80dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [30.00dB] [on]
  Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Rear Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 23 [74%] [0.00dB] [off]
  Front Right: Playback 23 [74%] [0.00dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]

pactl list sources:

Source #46
	State: SUSPENDED
	Name: alsa_output.pci-0000_09_00.6.analog-stereo.monitor
	Description: Monitor of Family 17h/19h HD Audio Controller (PRIME B450M-A Motherboard) Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor of Sink: alsa_output.pci-0000_09_00.6.analog-stereo
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:2:front:2:playback"
		api.alsa.path = "front:2"
		api.alsa.pcm.card = "2"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "2"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "monitor"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Analog"
		alsa.id = "ALC887-VD Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "2"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcb80000 irq 98"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "5"
		device.id = "42"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "881"
		priority.session = "881"
		media.class = "Audio/Sink"
		node.nick = "HD-Audio Generic"
		node.name = "alsa_output.pci-0000_09_00.6.analog-stereo"
		device.description = "Family 17h/19h HD Audio Controller (PRIME B450M-A Motherboard) Analog Stereo"
		device.icon_name = "audio-card-analog"
		device.bus = "pci"
		device.bus_path = "pci-0000:09:00.6"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "33"
		clock.quantum-limit = "8192"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "46"
		object.serial = "46"
	Formats:
		pcm

Source #47
	State: SUSPENDED
	Name: alsa_input.pci-0000_09_00.6.analog-stereo
	Description: Family 17h/19h HD Audio Controller (PRIME B450M-A Motherboard) Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 20726 /  32% / -30.00 dB,   front-right: 20726 /  32% / -30.00 dB
	        balance 0.00
	Base Volume: 6554 /  10% / -60.00 dB
	Monitor of Sink: n/a
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:2:front:2:capture"
		api.alsa.path = "front:2"
		api.alsa.pcm.card = "2"
		api.alsa.pcm.stream = "capture"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "3"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Analog"
		alsa.id = "ALC887-VD Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "2"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfcb80000 irq 98"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "0"
		device.id = "42"
		factory.name = "api.alsa.pcm.source"
		priority.driver = "1881"
		priority.session = "1881"
		media.class = "Audio/Source"
		node.nick = "HD-Audio Generic"
		node.name = "alsa_input.pci-0000_09_00.6.analog-stereo"
		device.description = "Family 17h/19h HD Audio Controller (PRIME B450M-A Motherboard) Analog Stereo"
		device.icon_name = "audio-input-microphone-analog"
		device.bus = "pci"
		device.bus_path = "pci-0000:09:00.6"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "33"
		clock.quantum-limit = "8192"
		node.driver = "true"
		factory.mode = "split"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "47"
		object.serial = "47"
	Ports:
		analog-input-front-mic: Front Microphone (type: Mic, priority: 8500, availability group: Legacy 1, not available)
		analog-input-rear-mic: Rear Microphone (type: Mic, priority: 8200, availability group: Legacy 2, available)
		analog-input-linein: Line In (type: Line, priority: 8100, availability group: Legacy 3, not available)
	Active Port: analog-input-rear-mic
	Formats:
		pcm

Source #48
	State: SUSPENDED
	Name: alsa_output.platform-snd_aloop.0.analog-stereo.monitor
	Description: Monitor of Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor of Sink: alsa_output.platform-snd_aloop.0.analog-stereo
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:0:front:0:playback"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "monitor"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Loopback PCM"
		alsa.id = "Loopback PCM"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "Loopback"
		alsa.long_card_name = "Loopback 1"
		alsa.driver_name = "snd_aloop"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "11"
		device.id = "43"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "1009"
		priority.session = "1009"
		media.class = "Audio/Sink"
		node.nick = "Loopback"
		node.name = "alsa_output.platform-snd_aloop.0.analog-stereo"
		device.description = "Built-in Audio Analog Stereo"
		device.icon_name = "audio-card-analog"
		device.bus_path = "platform-snd_aloop.0"
		device.form_factor = "internal"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "33"
		clock.quantum-limit = "8192"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "48"
		object.serial = "48"
	Formats:
		pcm

couldn't get a responde from pactl list source-outputs.

Offline

Board footer

Powered by FluxBB