Re: Microphone bleed and Master is not a master

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 26 Jul 2012, Torquil Macdonald S�en wrote:

Hi!

I'm having a problem with my microphone inputs, and the master volume doesn't
seem to be a master volume. In more detail:

Part A of problem (microphone bleed):

1) In my headphones, I can hear the signal picked up by the laptop "Internal
Mic" if "Internal Mic Boost" is maximised, even though "Internal mic" is
minimised. It can also be heard out of the speakers when not using headphones,
but for now I'm only using headphones.

What is the problem? Remember that mic level usually does not go from 0 fbut
from some minimum to a max. Ie, the slider all the way down will correspond to
-30dB or something. If you then have mic boost as well, well it will be
audible.

Secondly, there are two controls. One is for the "monitoring" and one is for
the volume going to the recording input. Ie, the sound card has two volume
contrrols, one affecting the recording level.


2) The same is true for "Microphone" and "Mic Boost", which corresponds to the
mic input jack.

So it seems that the "Internal Mic" and "Microphone" do not suppress the signal
enough when they are minimised.

Turn off the Mic boost. Disconnect the microphone.


Part B of problem (master volume):

3) The signal levels heard in the above cases, and also the level heard when
actually increasing the "Internal Mic" and "Microphone", is independent of the
"Master", "Headphone" and "Speaker" faders! I thought those were supposed to act
as master volumes, in other words no sound should be possible if they are minimised?

No. They are volume faders. not on off switches on many sound cards. Also they often do not control the volume of the monitoring.



4) None of this happens in Windows 7, which I have on the same laptop, so it is
not a hardware problem. On windows, I hear nothing when tapping the microphone,
even if I increase the microphone boost to +30dB which is the same value as
claimed by ALSA. The noise suppression in Windows is not activated, so that is
not the cause of its silence.

I don't use an /etc/asoundrc or ~/.asoundrc. I have tried to load the
"snd-hda-intel" module with the following model options: auto, asus,
laptop-amic. The last one because I have an ALC269 card together with the
recommendation in linux-3.4.6/Documentation/sound/alsa/HD-Audio-Models.txt. None
of these efforts influenced the problems.

Some info:

Asus X5DID 64 bit laptop
Debian Sid (amd64 architecture)
Linux kernel 3.4.6

***

tmac@asus:~$ dpkg --list "libasound*" "alsa*" | grep -e "^ii"
ii  alsa-base                             1.0.25+2+nmu1
all          ALSA driver configuration files
ii  alsa-utils                            1.0.25-3
amd64        Utilities for configuring and using ALSA
ii  libasound2:amd64                      1.0.25-3
amd64        shared library for ALSA applications
ii  libasound2-plugins:amd64              1.0.25-2
amd64        ALSA library additional plugins

***

tmac@asus$ lspci -vvvs 02:00.1
02:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device 1312
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 17
    Region 0: Memory at faf7c000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel

***

tmac@asus:~$ cat /proc/asound/card0/pcm0c/info
card: 0
device: 0
subdevice: 0
stream: CAPTURE
id: ALC269 Analog
name: ALC269 Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

***

tmac@asus:~$ cat /etc/modprobe.d/alsa-base.conf
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet
snd-ioctl32 ; /sbin/modprobe --quiet snd-seq ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && {
/sbin/modprobe --quiet snd-seq-midi ; : ; }
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && {
/sbin/modprobe --quiet snd-emu10k1-synth ; : ; }
# Keep snd-pcsp from beeing loaded as first soundcard
#options snd-pcsp index=-2
# Keep snd-usb-audio from beeing loaded as first soundcard
#options snd-usb-audio index=-2
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2

#options snd-usb-audio nrpacks=1
#options snd-hda-intel model=auto
#options snd slots=snd-usb-audio,snd-hda-intel
#options snd-pcm preallocate_dma=128

***

Mixer settings (everything at zero apart from the maximised Internal Mic Boost):

tmac@asus:~$ amixer

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 0 [0%] [-64.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-63.00dB] [on]
  Front Right: Playback 0 [0%] [-63.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-63.00dB] [on]
  Front Right: Playback 0 [0%] [-63.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 0 [0%] [-51.00dB]
  Front Right: Playback 0 [0%] [-51.00dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [on]
  Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume penum
  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 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-17.00dB] [off]
  Front Right: Capture 0 [0%] [-17.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 0 [0%] [-30.00dB]
  Front Right: Capture 0 [0%] [-30.00dB]
Simple mixer control 'Internal Mic',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [on]
  Front Right: Playback 0 [0%] [-34.50dB] [on]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume penum
  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]

***

Some kernel log info:

tmac@asus:~$ dmesg | grep -i hda
snd_hda_intel 0000:00:08.0: power state changed by ACPI to D0
snd_hda_intel 0000:00:08.0: power state changed by ACPI to D0
hda_intel: Disabling MSI
snd_hda_intel 0000:00:08.0: setting latency timer to 64
input: HDA NVidia Mic as /devices/pci0000:00/0000:00:08.0/sound/card0/input12
input: HDA NVidia Headphone as /devices/pci0000:00/0000:00:08.0/sound/card0/input13
hda_intel: Disabling MSI
input: HDA NVidia HDMI/DP,pcm=9 as
/devices/pci0000:00/0000:00:0c.0/0000:02:00.1/sound/card1/input14
input: HDA NVidia HDMI/DP,pcm=8 as
/devices/pci0000:00/0000:00:0c.0/0000:02:00.1/sound/card1/input15
input: HDA NVidia HDMI/DP,pcm=7 as
/devices/pci0000:00/0000:00:0c.0/0000:02:00.1/sound/card1/input16
input: HDA NVidia HDMI/DP,pcm=3 as
/devices/pci0000:00/0000:00:0c.0/0000:02:00.1/sound/card1/input17

***

tmac@asus:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia_1 [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

tmac@asus:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=NVidia
    HDA NVidia, ALC269 Analog
    Default Audio Device
sysdefault:CARD=NVidia
    HDA NVidia, ALC269 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC269 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC269 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC269 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC269 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC269 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC269 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia_1,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output

Best regards
Torquil S�en

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


--
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux