Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Microphone produces Noice in Debian Buster

Need help with peripherals or devices?
Post Reply
Message
Author
karlchenotto
Posts: 7
Joined: 2010-05-05 09:50

Microphone produces Noice in Debian Buster

#1 Post by karlchenotto »

I recently bought a HP Pavilion Desktiop TP01-1xxx Desktop PC and now I run it a a dual boot with debian buster and Win 10.

However, the microphone, connected via the backward or front jack plug, produces a lot of white noise. The noise get even worse when the microphone is off or deconnected. In windows this works just fine so I assume that it is the driver or the configuration. Setting default-samplerate in /etc/pulse/daemon.conf did not give any improvement (found the hint in some older posts in an Ubuntu forum).

In AlsaMixer the Chip of the corresponding device (HD-Audio Generic) is called Realtek ALC671
A second USB Microphone works just fine (HP Pro Webcakm C920) (but has a much worse sound quality than my Rode Microphone :-) )

Here, some info, that might be useful. If you want me to post anythin else, please give me a hint.

Code: Select all

cat /proc/asound/cards
gives:
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfc080000 irq 101
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfc588000 irq 102
2 [Generic_1 ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xfc580000 irq 103
3 [C920 ]: USB-Audio - HD Pro Webcam C920
HD Pro Webcam C920 at usb-0000:0d:00.3-2, high speed
4 [Loopback ]: Loopback - Loopback
Loopback 1

Code: Select all

arecord -l
gives:
**** Liste der Hardware-Geräte (CAPTURE) ****
Karte 2: Generic_1 [HD-Audio Generic], Gerät 0: ALC671 Analog [ALC671 Analog]
Sub-Geräte: 0/1
Sub-Gerät #0: subdevice #0
Karte 2: Generic_1 [HD-Audio Generic], Gerät 2: ALC671 Alt Analog [ALC671 Alt Analog]
Sub-Geräte: 1/1
Sub-Gerät #0: subdevice #0
Karte 3: C920 [HD Pro Webcam C920], Gerät 0: USB Audio [USB Audio]
Sub-Geräte: 0/1
Sub-Gerät #0: subdevice #0
Karte 4: Loopback [Loopback], Gerät 0: Loopback PCM [Loopback PCM]
Sub-Geräte: 7/8
Sub-Gerät #0: subdevice #0
Sub-Gerät #1: subdevice #1
Sub-Gerät #2: subdevice #2
Sub-Gerät #3: subdevice #3
Sub-Gerät #4: subdevice #4
Sub-Gerät #5: subdevice #5
Sub-Gerät #6: subdevice #6
Sub-Gerät #7: subdevice #7
Karte 4: Loopback [Loopback], Gerät 1: Loopback PCM [Loopback PCM]
Sub-Geräte: 8/8
Sub-Gerät #0: subdevice #0
Sub-Gerät #1: subdevice #1
Sub-Gerät #2: subdevice #2
Sub-Gerät #3: subdevice #3
Sub-Gerät #4: subdevice #4
Sub-Gerät #5: subdevice #5
Sub-Gerät #6: subdevice #6
Sub-Gerät #7: subdevice #7

Code: Select all

lspci -nnk | grep -iA2 audio
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:1aeb] (rev a1)
Subsystem: Hewlett-Packard Company Device [103c:87a5]
Kernel driver in use: snd_hda_intel
--
0d:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1637]
Subsystem: Hewlett-Packard Company Device [103c:87d6]
Kernel driver in use: snd_hda_intel
--
0d:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
Subsystem: Hewlett-Packard Company Family 17h (Models 10h-1fh) HD Audio Controller [103c:87d6]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

Code: Select all

lsmod | grep "snd"
snd_usb_audio 262144 3
snd_usbmidi_lib 36864 1 snd_usb_audio
snd_rawmidi 40960 1 snd_usbmidi_lib
snd_seq_device 16384 1 snd_rawmidi
snd_hda_codec_realtek 122880 1
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
snd_hda_codec_hdmi 61440 2
snd_hda_intel 49152 14
snd_hda_codec 151552 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 94208 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 16384 2 snd_usb_audio,snd_hda_codec
snd_aloop 28672 7
snd_pcm 114688 12 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_aloop,snd_hda_core
snd_timer 36864 1 snd_pcm
snd 94208 55 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_aloop,snd_pcm,snd_rawmidi
soundcore 16384 1 snd
usbcore 299008 9 ftdi_sio,usbserial,xhci_hcd,snd_usb_audio,usbhid,snd_usbmidi_lib,uvcvideo,btusb,xhci_pci
I searched two days and did not find a solution, so I'd be very grateful for any idea.
Karlchenotto

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2112
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 231 times

Re: Microphone produces Noice in Debian Buster

#2 Post by FreewheelinFrank »

Have you tried disabling loopback in alsamixer?

karlchenotto
Posts: 7
Joined: 2010-05-05 09:50

Re: Microphone produces Noice in Debian Buster

#3 Post by karlchenotto »

Now I did :-)
Unfortunately setting Loopback output PCM=0 did not have any effect on the white noise in the microphone, there is no loopback input.

karlchenotto
Posts: 7
Joined: 2010-05-05 09:50

Re: Microphone produces Noice in Debian Buster

#4 Post by karlchenotto »

UPDATE:

The problem goes on:
So cancel the echo/noise I followed this tutorial:
https://www.linuxuprising.com/2020/09/h ... ation.html

It worked, the noise is much less (not completely gone), however, a new problem occured. When I reduce the volume of input or output in pavucontrol or alsamixer, it will jump back to 100% every time I use the device.

My /etc/pulse/default.pa looks like this:
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GSettings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gsettings.so
.nofail
load-module module-gsettings
.fail
.endif


### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

#Echo Cancel (included 2021-05-22
#load-module module-echo-cancel
.ifexists module-echo-cancel.so
load-module module-echo-cancel source_master=alsa_input.pci-0000_0d_00.6.analog-stereo aec_method=webrtc source_name=echocancel sink_name=echocancel1
#load-module module-echo-cancel sink_master=alsa_output.pci-0000_0d_00.6.analog-stereo source_master=alsa_input.pci-0000_0d_00#.6.analog-stereo aec_method=webrtc source_name=echocancel sink_name=echocancel1
set-default-source echocancel
set-default-sink echocancel1
.endif


### Make some devices default
#set-default-sink output
#set-default-source input

karlchenotto
Posts: 7
Joined: 2010-05-05 09:50

Re: Microphone produces Noice in Debian Buster

#5 Post by karlchenotto »

OK. This seems to solve the volume auto adjust:

https://askubuntu.com/questions/101532 ... 8#1069998

Still having the original problem (white noise). Anyone any idea where to look into?

Post Reply