Bug 92614 - [RealTek][ALC3226] Audio popping sound on bootup when gdm/kdm launches
Summary: [RealTek][ALC3226] Audio popping sound on bootup when gdm/kdm launches
Status: RESOLVED NOTOURBUG
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: alsa (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-22 19:49 UTC by Shawn Starr
Modified: 2016-08-31 04:04 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
ALSA Sound Mixer information (60.17 KB, text/plain)
2015-10-22 19:49 UTC, Shawn Starr
Details

Description Shawn Starr 2015-10-22 19:49:06 UTC
Created attachment 119094 [details]
ALSA Sound Mixer information

What the kernel finds:

[    9.628766] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3226: line_outs=1 (0x16/0x0/0x0/0x0/0x0) type:line
[    9.628768] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=1 (0x14/0x0/0x0/0x0/0x0)
[    9.628769] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[    9.628770] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    9.628771] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    9.628772] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x18
[    9.628773] snd_hda_codec_realtek hdaudioC0D0:      Dock Mic=0x19
[    9.628774] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x1a
[    9.628775] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12

When I start, I hear a rapid two drum beat from (both speakers I guess). Muting audio in gdm does not stop this, starting laptop in single user mode, no issue.

Laptop: Dell Precision M6800
BIOS: A14 05/24/2015
Audio Controller: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller

Can provide additional info, test patches.

Attempted to edit default.pa and added tsched=0 but no change in result.

-> load-module module-udev-detect tsched=0
Comment 1 Shawn Starr 2015-10-22 19:54:10 UTC
Prior to version 7.0, Fedora 22 also suffered this problem
Comment 2 Raymond 2015-10-23 15:49:00 UTC
seem lost "+" between speaker and LO

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/mixer/paths?id=aec811798cd883a454b9b5cd82c77831906bbd2d


state.PCH {
	control.1 {
		iface MIXER
		name 'Speaker LO Playback Volume'
		value.0 87
		value.1 87
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
Comment 4 Shawn Starr 2016-01-04 15:23:33 UTC
Any Update on this? This continues in 4.4-rcX also.
Comment 5 Raymond 2016-01-04 16:25:32 UTC
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=e7fdd52779a6c2b49d457f452296a77c8cffef6a

Patch  implement loopback mkxing control which mute the loopback Mixing of those input pins
Comment 6 Shawn Starr 2016-01-23 00:02:32 UTC
Does PA need to do any config changes to take this patch into account?
Comment 7 Shawn Starr 2016-02-26 19:17:26 UTC
Any Update on this?

Continues with: 4.5.0-0.rc4.git2.2.fc24.x86_64 / pulseaudio-7.1-1.fc23.x86_64
Comment 8 Raymond 2016-02-27 03:19:53 UTC
Control: name="Front Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Front Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Dock Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Dock Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Headset Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Headset Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=2, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d

you can use hint (early patching) to disable analog mixer if the noise come from analog mixer 

 mixer_nid = 0

- mixer_nid (int): specifies the widget NID of the analog-loopback
  mixer


https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt
Comment 10 Shawn Starr 2016-03-18 19:50:20 UTC
Setting mixer_nid=0 in grub didn't fix it.

I know this laptop has AAMIX on it I wonder if ALC292_FIXUP_DISABLE_AAMIX quirk may fix issue.

This laptop also has bad white noise on analog I reported about long time ago.
Comment 11 Raymond 2016-03-19 14:44:36 UTC
If you still found those mic playback volume control, this mean that you have not disabled aamix by earky patching 

How do you add the patch file in /etc/modprobe.d/alsa-base.conf
Comment 12 Fil 2016-04-28 14:34:17 UTC
Hello

I can confirm that with the mixer_nid = 0 hint the problem goes away.

Running ubuntu 14.04 with kernel 4.4.0-21-generic and pulseaudio 4.0
Dell Precision M6800

Cheers
Comment 13 Shawn Starr 2016-08-31 03:31:16 UTC
Whats the patch file look like, still have popping here. I did try passing mixer_nid to driver, didn't work?
Comment 14 Shawn Starr 2016-08-31 03:46:58 UTC
I got it working

[codec]
0x10ec0292 0x102805cd 0

[hint]
mixer_nid = 0


Could we perhaps add a quirk in codec driver if this impacts everyone with this vendor/subvendor #?
Comment 15 Shawn Starr 2016-08-31 04:04:15 UTC
This isn't PulseAudio bug, should be a kernel quirk otherwise.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.