You are not logged in.

#1 2022-07-04 11:22:13

dybdeskarphet
Member
Registered: 2021-11-17
Posts: 13

Mic picks up system sounds

As I said in the title, my microphone picks up all the system sounds. It doesn't echo the sound of my microphone, it picks it up as if I record the system sound and the microphone both. But also, it doesn't pick up the sounds of the app that uses microphone, it just picks other apps' sounds so I'm guessing it's not hardware related.

My PC is Lenovo V15 G2-ALC, I use Pipewire.

Any ideas on what's wrong? hmm

Offline

#2 2022-07-04 13:52:43

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

Re: Mic picks up system sounds

Post the outputs of

arecord -l
amixer -c0 #Or whatever the card index according to areqcord of your mic is
pactl list sources
pactl list source-outputs

in https://bbs.archlinux.org/help.php#bbcode code tags during active recording.

There are sometimes issues with single jack headset/mic ports, see whether some of the model quirks on snd_hda_intel can help: https://www.kernel.org/doc/html/latest/ … odels.html popular options to test are headset-mic or dell-headset-multi . You can set these in a modprobe conf file e.g. /etc/modprobe.d/hdaModel.conf

options snd-hda-intel model=headset-mic

Last edited by V1del (2022-07-04 13:52:59)

Offline

#3 2022-07-04 23:51:56

dybdeskarphet
Member
Registered: 2021-11-17
Posts: 13

Re: Mic picks up system sounds

I tried tab-completing "modprobe snd-hda" and there was no snd-hda-intel, I tried to create it by throwing some useful looking commands that I found from other forum entries. I have a combined (headset-mic) jack so I tried to set the combined headset models (to my modprobe conf) but none of them worked. Should I even try to create snd-hda-intel? I have no idea on how modules work.

Also here are the outputs which are created while recording mic:

arecord -l:

**** List of CAPTURE Hardware Devices ****
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

amixer -c1:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
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]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [30.00dB] [on]
  Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Internal 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 #52
	State: IDLE
	Name: alsa_output.pci-0000_04_00.6.analog-stereo.monitor
	Description: Monitor of Family 17h/19h HD Audio Controller 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_04_00.6.analog-stereo
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.class = "generic"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC257 Analog"
		alsa.long_card_name = "HD-Audio Generic at 0xfd6c0000 irq 74"
		alsa.name = "ALC257 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HD-Audio Generic at 0xfd6c0000 irq 74"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "front:1"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "3"
		device.api = "alsa"
		device.class = "monitor"
		device.id = "44"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
		node.name = "alsa_output.pci-0000_04_00.6.analog-stereo"
		node.nick = "ALC257 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:1:front:1:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "35"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "51"
		object.serial = "52"
		node.max-latency = "16384/48000"
	Formats:
		pcm

Source #53
	State: SUSPENDED
	Name: alsa_input.pci-0000_04_00.6.analog-stereo
	Description: Family 17h/19h HD Audio Controller Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 48287 /  74% / -7,96 dB,   front-right: 48287 /  74% / -7,96 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:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.class = "generic"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "ALC257 Analog"
		alsa.long_card_name = "HD-Audio Generic at 0xfd6c0000 irq 74"
		alsa.name = "ALC257 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HD-Audio Generic at 0xfd6c0000 irq 74"
		api.alsa.card.name = "HD-Audio Generic"
		api.alsa.path = "front:1"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "capture"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "0"
		device.api = "alsa"
		device.class = "sound"
		device.id = "44"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.source"
		media.class = "Audio/Source"
		device.description = "Family 17h/19h HD Audio Controller Analog Stereo"
		node.name = "alsa_input.pci-0000_04_00.6.analog-stereo"
		node.nick = "ALC257 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:1:front:1:capture"
		priority.driver = "2009"
		priority.session = "2009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "35"
		node.driver = "true"
		factory.mode = "split"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "52"
		object.serial = "53"
	Ports:
		analog-input-internal-mic: Dahili Mikrofon (type: Mic, priority: 8900, availability group: Legacy 1, not available)
		analog-input-mic: Mikrofon (type: Mic, priority: 8700, availability group: Legacy 2, available)
	Active Port: analog-input-mic
	Formats:
		pcm

and pactl list source-outputs gives no output.

Offline

#4 2022-07-05 00:01:22

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

Re: Mic picks up system sounds

it would give output if you were to record something while posting it. the sound card for this chip is snd-hda-intel however seeing as it's card 1 you might have a HDMI card evaluated first so maybe try

options snd-hda-intel model=auto,headset-mic

that should target the correct card. Note you will have to reboot for any of these to have an effect

Offline

#5 2022-07-05 00:08:37

dybdeskarphet
Member
Registered: 2021-11-17
Posts: 13

Re: Mic picks up system sounds

I tried to recreate the same problem with my no-mic bluetooth headphone and there is no problem, but maybe problem would persist with a bluetooth headphone with mic? I'm not sure, I'll try that too if I find one.

Edit: I created this message before seeing your reply, let me try that.

Last edited by dybdeskarphet (2022-07-05 00:12:04)

Offline

#6 2022-07-05 00:14:02

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

Re: Mic picks up system sounds

It would not necessarily, as from a logical perspective bluetooth is an entirely different card with entirely different wirings that are hopefully not as bugged as whatever the card is configured to do in your actual system.

Offline

#7 2022-07-05 00:19:53

dybdeskarphet
Member
Registered: 2021-11-17
Posts: 13

Re: Mic picks up system sounds

V1del wrote:

it would give output if you were to record something while posting it. the sound card for this chip is snd-hda-intel however seeing as it's card 1 you might have a HDMI card evaluated first so maybe try

options snd-hda-intel model=auto,headset-mic

that should target the correct card. Note you will have to reboot for any of these to have an effect

I both tried

options snd-hda-intel model=auto,headset-mic

and 

options snd-hda-codec-intelhdmi model=auto,headset-mic

and sadly it didn't work. hmm

While snd-hda-intel is not available, snd-hda-codec-intelhdmi was available with modprobe tab-completion, I'm guessing it's my card?

Last edited by dybdeskarphet (2022-07-05 00:21:18)

Offline

#8 2022-07-05 07:18:32

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

Re: Mic picks up system sounds

No. snd-hda-intel is there it can't "not" be there, it's the parent driver of all the codecs that make up the actual device support. And it would not be the hdmi codec but a realtek codec for the mic/the internal analog card, but that in "general" doesn't matter you normally configure the parent snd-hda-intel (... just run modinfo on that without thinking it must be in a tab completion...).

Also can you elaborate/post a recording showing the symptoms and maybe

aplay -l

so we know what the secondary device is.  Is it literally full volume mixed in or does it just "pick up" outside noise, in which case you could try and lower the capture volume and maybe

amixer -c1 sset 'Mic Boost',0 0

Do you have a mic you plug into the combined mic jack or are you technically using the built-in mic ?

Also as a general test, maybe reinit device state

sudo alsactl init

Last edited by V1del (2022-07-05 07:24:08)

Offline

#9 2022-07-05 10:58:52

dybdeskarphet
Member
Registered: 2021-11-17
Posts: 13

Re: Mic picks up system sounds

https://youtu.be/fKKZA-p0Jmo Here is a video of me saying test while playing the Fight Club final scene :D. You can see that I'm only recording my microphone sound in the obs (I just want to quickly say that it doesn't happen only with obs).

aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC257 Analog [ALC257 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I tried to explain that it's not the outside noise but looks like I failed :P.

Yes, I have a headphone with mic, plugged in to a combined jack. Though built-in mic doesn't have this problem.

Reinitializing also didn't fix it.

By the way, thank you so much for your patience so far.

Offline

#10 2022-07-05 12:43:18

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

Re: Mic picks up system sounds

Thoough it should not be inherently relevant, try enabling Auto-Mute Mode if you actually have a headset:

amixer -c1  'Auto-Mute Mode',0 Enabled

Last edited by V1del (2022-07-05 12:43:26)

Offline

#11 2022-07-05 12:51:01

dybdeskarphet
Member
Registered: 2021-11-17
Posts: 13

Re: Mic picks up system sounds

V1del wrote:

Thoough it should not be inherently relevant, try enabling Auto-Mute Mode if you actually have a headset:

amixer -c1  'Auto-Mute Mode',0 Enabled

Not so surprisingly that didn't help too, I'm going to disable my headphone's mic and use the internal mic for now.

Last edited by dybdeskarphet (2022-07-05 12:51:13)

Offline

Board footer

Powered by FluxBB