Skip to contentSkip to conversation

Constant noise on HDA ALC275

DISCUSSION Julien Danjou 3 participants 40 messages Sep 20, 2012 – Nov 3, 2012 1 message not in the archive Sound

lore
Share & tools
lore
#0 lore raw

Hi there,

I've an HDA based chipset in a new Sony Vaio Z (Ivy Bridge). As sound as the system starts and the sound module are loaded, there's a constant noise (shhhhhhht) in the speakers. The noise change a bit if I toggle the mute button, but it's still there.

This noise stops as sound as I plug something in the jack port.

I've tried to play with HDA Analyzer¹, but I've no clue what to look for, so any hint appreciated.

Some information:

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)

% aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC275 Analog [ALC275 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

% lsmod | grep snd
snd_hda_codec_hdmi 30783 1
snd_hda_codec_realtek 50906 1

snd_hda_intel          26504  3 
snd_hda_codec          83533  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              13186  1 snd_hda_codec
snd_pcm                64080  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc         12969  2 snd_pcm,snd_hda_intel
snd_seq                45130  0 
snd_seq_device         13176  1 snd_seq
snd_timer              22917  2 snd_pcm,snd_seq
snd                    53077  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore              13026  1 snd

/proc/asound/card0/codec#0
==========================

/proc/asound/card0/codec#3
==========================

¹ http://www.alsa-project.org/main/index.php/HDA_Analyzer

Signature · 3 lines
Julien Danjou
# Free Software hacker & freelance
# http://julien.danjou.info
#1 lore raw

At Sat, 15 Sep 2012 14:57:33 +0200,

Quoted 9 lines · Julien Danjou

Hi there,

I've an HDA based chipset in a new Sony Vaio Z (Ivy Bridge). As sound as the system starts and the sound module are loaded, there's a constant noise (shhhhhhht) in the speakers. The noise change a bit if I toggle the mute button, but it's still there.

This noise stops as sound as I plug something in the jack port.

Do you mean the headphone, or any jacks no matter input or output? Also do you get the noise from the headphone output?

In anyway, please give alsa-info.sh output (run with --no-upload option). This will cover more wide range of information.

Last but not least, try the latest kernel (3.6-rc6) if not tried yet :)

Takashi

#2 lore raw

On Fri, Sep 21 2012, Takashi Iwai wrote:

Hi,

Quoted 8 lines
Quoted 6 lines

I've an HDA based chipset in a new Sony Vaio Z (Ivy Bridge). As sound as the system starts and the sound module are loaded, there's a constant noise (shhhhhhht) in the speakers. The noise change a bit if I toggle the mute button, but it's still there.

This noise stops as sound as I plug something in the jack port.

Do you mean the headphone, or any jacks no matter input or output?

Anything, external speaker, headphones with or without mic. When I plug something, the noise from the speaker just stops.

I just discoveredtThere's an exception: if a jack is plugged, and if I set "Auto-Mute mode" to "disabled" in alsamixer the noise can be heared. If I set "Auto-Mute mode" back to "enabled", no more noise.

Quoted 1 line

Also do you get the noise from the headphone output?

Never. It's really only the integrated speakers emitting something.

Quoted 2 lines

In anyway, please give alsa-info.sh output (run with --no-upload option). This will cover more wide range of information.

Attached.

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.61
!!################################

!!Script ran on: Fri Sep 21 12:42:17 UTC 2012

!!Linux Distribution
!!------------------

Debian GNU/Linux wheezy/sid \n \l PRETTY_NAME="Debian GNU/Linux wheezy/sid" NAME="Debian GNU/Linux" ID=debian

!!DMI Information
!!---------------

Manufacturer:      Sony Corporation
Product Name:      SVZ1311C5E
Product Version:   J004SF49
Firmware Version:  R0092C6

!!Kernel Information
!!------------------

Kernel release:    3.5-trunk-amd64
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version:     1.0.25
Library version:    1.0.25
Utilities version:  1.0.25

!!Loaded ALSA modules
!!-------------------

snd_hda_intel

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes

!!Soundcards recognised by ALSA
!!-----------------------------

0 [PCH ]: HDA-Intel - HDA Intel PCH

                      HDA Intel PCH at 0xd7400000 irq 44

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)

!!Advanced information - PCI Vendor/Device/Subsystem ID's !!-------------------------------------------------------

00:1b.0 0403: 8086:1e20 (rev 04)

	Subsystem: 104d:90a5

!!Modprobe options (Sound related)
!!--------------------------------

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2

!!Loaded sound module options
!!---------------------------

!!Module: snd_hda_intel

	align_buffer_size : -1
	bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	beep_mode : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	enable_msi : -1
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	power_save : 0
	power_save_controller : Y
	probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	single_cmd : N
	snoop : Y

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: Realtek ALC275
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0275
Subsystem Id: 0x104d6600
Revision Id: 0x100008
No Modem Function Group found
Default PCM:

    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Control: name="Headphone Playback Volume", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC275 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x2f 0x2f]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Control: name="Speaker Playback Volume", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:

    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x90 0x90]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x24

Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x90 0x90]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x23

Node 0x09 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
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] [0x0b 0x0b]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d

Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2

     0x02 0x0b

Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2

     0x03 0x0b

Node 0x0e [Audio Mixer] wcaps 0x20010a: Mono Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00] [0x80]
Connection: 2

     0x0c 0x0d

Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Control: name="Capture Switch", index=0, device=0
Control: name="Capture Volume", index=0, device=0
Device: name="ALC275 Analog", type="Audio", device=0 Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x14 0x14]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x22
Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0

Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x02 0x02]
Pincap 0x00000020: IN
Pin Default 0x90a60120: [Fixed] Mic at Int N/A
Conn = Digital, Color = Unknown
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x14 [Pin Complex] wcaps 0x40050d: Stereo Amp-Out
Control: name="Speaker Playback Switch", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010050: OUT EAPD Balanced
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c 0x0d*
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x16 [Pin Complex] wcaps 0x40050c: Mono Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80]
Pincap 0x00000010: OUT
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x0e

Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00003734: IN OUT Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x19 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00003734: IN OUT Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x22: IN VREF_GRD
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00003734: IN OUT Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x1d [Pin Complex] wcaps 0x400400: Mono
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1e [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x411110f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x06

Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=64
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x22 [Audio Selector] wcaps 0x300101: Stereo
Connection: 2

     0x12* 0x13

Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 6

     0x18 0x19 0x1a 0x1b 0x1d 0x0b

Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 6

     0x18 0x19 0x1a 0x1b 0x1d 0x0b

Codec: Intel PantherPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862806
Subsystem Id: 0x104d6600
Revision Id: 0x100000
No Modem Function Group found
Default PCM:

    rates [0x0]:
    bits [0x0]:
    formats [0x0]:

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:

    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3

Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3

Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3

Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
Control: name="IEC958 Playback Con Mask", index=0, device=0
Control: name="IEC958 Playback Pro Mask", index=0, device=0
Control: name="IEC958 Playback Default", index=0, device=0
Control: name="IEC958 Playback Switch", index=0, device=0
Control: name="ELD", index=0, device=3
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=01, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x02

Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x80]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x585600f0: [N/A] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x03

Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x80]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x585600f0: [N/A] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x04

Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono --endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---T+ 1 root audio 116,  7 Sep 15 14:19 /dev/snd/controlC0
crw-rw---T+ 1 root audio 116,  6 Sep 15 14:19 /dev/snd/hwC0D0
crw-rw---T+ 1 root audio 116,  5 Sep 15 14:19 /dev/snd/hwC0D3
crw-rw---T+ 1 root audio 116,  4 Sep 19 11:43 /dev/snd/pcmC0D0c
crw-rw---T+ 1 root audio 116,  3 Sep 21 14:19 /dev/snd/pcmC0D0p
crw-rw---T+ 1 root audio 116,  2 Sep 15 14:19 /dev/snd/pcmC0D3p
crw-rw---T+ 1 root audio 116,  1 Sep 15 14:19 /dev/snd/seq

crw-rw---T+ 1 root audio 116, 33 Sep 15 14:19 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Sep 15 14:19 .
drwxr-xr-x 3 root root 220 Sep 15 14:19 ..
lrwxrwxrwx 1 root root 12 Sep 15 14:19 pci-0000:00:1b.0 -> ../controlC0

!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC275 Analog [ALC275 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC275 Analog [ALC275 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [PCH]

Card hw:0 'PCH'/'HDA Intel PCH at 0xd7400000 irq 44'
Mixer name : 'Intel PantherPoint HDMI'
Components : 'HDA:10ec0275,104d6600,00100008 HDA:80862806,104d6600,00100000'
Controls : 21
Simple ctrls : 10
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 48 [75%] [-16.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 63 [98%] [0.00dB] [on]
Front Right: Playback 63 [98%] [0.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] [off]
Front Right: Playback 0 [0%] [-63.00dB] [off]
Simple mixer control 'PCM',0
Capabilities: pvolume penum
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 penum
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 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 11 [35%] [-18.00dB] [on]
Front Right: Playback 11 [35%] [-18.00dB] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 20 [43%] [3.00dB] [on]
Front Right: Capture 20 [43%] [3.00dB] [on]
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]

!!Alsactl output
!!--------------

--startcollapse--

state.PCH {
	control.1 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 63
		value.1 63
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 64'
			dbmin -6300
			dbmax 100
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.2 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 64'
			dbmin -6300
			dbmax 100
			dbvalue.0 -6300
			dbvalue.1 -6300
		}
	}
	control.4 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Auto-Mute Mode'
		value Enabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.6 {
		iface MIXER
		name 'Mic Boost Volume'
		value.0 2
		value.1 2
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3000
			dbvalue.0 2000
			dbvalue.1 2000
		}
	}
	control.7 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Capture Volume'
		value.0 20
		value.1 20
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 46'
			dbmin -1700
			dbmax 2900
			dbvalue.0 300
			dbvalue.1 300
		}
	}
	control.9 {
		iface MIXER
		name 'Beep Playback Volume'
		value.0 11
		value.1 11
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -1800
			dbvalue.1 -1800
		}
	}
	control.10 {
		iface MIXER
		name 'Beep Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.11 {
		iface MIXER
		name 'Master Playback Volume'
		value 48
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 64'
			dbmin -6400
			dbmax 0
			dbvalue.0 -1600
		}
	}
	control.12 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.13 {
		iface CARD
		name 'Headphone Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.14 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.16 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.17 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.18 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.19 {
		iface PCM
		device 3
		name ELD
		value '100009006a105e01000000000000000026cd0d56504c45323430374844530907010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type BYTES
			count 83
		}
	}
	control.20 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 255
		value.1 255
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.21 {
		iface MIXER
		name 'Digital Capture Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 120'
			tlv '0000000100000008fffff44800000032'
			dbmin -3000
			dbmax 3000
			dbvalue.0 -3000
			dbvalue.1 -3000
		}
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
nls_utf8
nls_cp437
vfat
fat
hid_generic
usb_storage
uas
ipt_MASQUERADE
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
nf_conntrack
ip6table_filter
ip6_tables
iptable_filter
ip_tables
ebtable_nat
ebtables
x_tables
parport_pc
ppdev
lp
parport
bnep
rfcomm
bluetooth
cpufreq_powersave
pci_stub
cpufreq_userspace
vboxpci
cpufreq_stats
cpufreq_conservative
vboxnetadp
vboxnetflt
vboxdrv
binfmt_misc
uinput
nfsd
nfs
nfs_acl
auth_rpcgss
fscache
lockd
sunrpc
loop
fuse
snd_hda_codec_hdmi
snd_hda_codec_realtek
tpm_infineon
uvcvideo
videobuf2_vmalloc
videobuf2_memops
videobuf2_core
videodev
media
joydev
arc4
coretemp
kvm_intel
snd_hda_intel
kvm
snd_hda_codec
snd_hwdep
snd_pcm
snd_page_alloc
snd_seq
snd_seq_device
psmouse
acpi_cpufreq
battery
snd_timer
serio_raw
microcode
pcspkr
i2c_i801
tpm_tis
iwlwifi
tpm
snd
tpm_bios
mac80211
sony_laptop
mperf
rts_pstor
cfg80211
rfkill
soundcore
lpc_ich
mfd_core
evdev
processor
ac
ext4
crc16
jbd2
mbcache
sha256_generic
dm_crypt
dm_mod
raid0
md_mod
hid_logitech_dj
usbhid
hid
sg
sd_mod
crc_t10dif
crc32c_intel
ghash_clmulni_intel
aesni_intel
i915
ahci
libahci
aes_x86_64
libata
ehci_hcd
aes_generic
cryptd
r8169
mii
scsi_mod
usbcore
video
button
i2c_algo_bit
usb_common
drm_kms_helper
drm
i2c_core
thermal
thermal_sys

!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x90a60120
0x13 0x411111f0
0x14 0x90170110
0x15 0x0421101f
0x16 0x411111f0
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x411111f0
0x1e 0x411110f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D3/init_pin_configs:
0x05 0x18560010
0x06 0x585600f0
0x07 0x585600f0

/sys/class/sound/hwC0D3/driver_pin_configs:

/sys/class/sound/hwC0D3/user_pin_configs:

/sys/class/sound/hwC0D3/init_verbs:

!!ALSA/HDA dmesg
!!--------------

[332064.706938] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[332064.706954] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[332064.706967] ahci 0000:00:1f.2: setting latency timer to 64
--
[355387.645103] ehci_hcd 0000:00:1a.0: setting latency timer to 64
[355387.645179] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[355387.645243] ehci_hcd 0000:00:1d.0: setting latency timer to 64
--
[480708.869417] r8169 0000:05:00.0: wake-up capability disabled by ACPI
[480708.869424] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[480708.907221] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
--
[490572.893698] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[490572.893709] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[490572.893725] ahci 0000:00:1f.2: setting latency timer to 64
Quoted 2 lines

Last but not least, try the latest kernel (3.6-rc6) if not tried yet :)

I think I forgot to say, I'm running Linux 3.5 indeed. I've tried 3.6-rc1 a couple of weeks ago, and it didn't help. But I'd try rc6 if it has changes that can be related. :)

Thanks for your help!

Signature · 3 lines
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
#3 lore raw

At Fri, 21 Sep 2012 14:43:19 +0200,

Quoted 12 lines · Julien Danjou

On Fri, Sep 21 2012, Takashi Iwai wrote:

Hi,

Quoted 7 lines
Quoted 6 lines

I've an HDA based chipset in a new Sony Vaio Z (Ivy Bridge). As sound as the system starts and the sound module are loaded, there's a constant noise (shhhhhhht) in the speakers. The noise change a bit if I toggle the mute button, but it's still there.

This noise stops as sound as I plug something in the jack port.

Quoted 8 lines
Quoted 1 line

Do you mean the headphone, or any jacks no matter input or output?

Anything, external speaker, headphones with or without mic. When I plug something, the noise from the speaker just stops.

I just discoveredtThere's an exception: if a jack is plugged, and if I set "Auto-Mute mode" to "disabled" in alsamixer the noise can be heared. If I set "Auto-Mute mode" back to "enabled", no more noise.

Well, it means that the noise disappears when the speaker pin is disabled. It's logical.

But my question was: if you plug to an external mic jack and leave the headphone jack, the speaker noise is still there, right?

Quoted 8 lines
Quoted 1 line

Also do you get the noise from the headphone output?

Never. It's really only the integrated speakers emitting something.

Quoted 2 lines

In anyway, please give alsa-info.sh output (run with --no-upload option). This will cover more wide range of information.

Attached.

Turning EAPD on/off on node 0x14 makes difference?

Takashi

#4 lore raw
Quoted 2 lines · Takashi Iwai

But my question was: if you plug to an external mic jack and leave the headphone jack, the speaker noise is still there, right?

Oh. If I understand correctly you're talking about 2 jacks, but there's only one jack on this laptop, doing both mic and speaker.

Quoted 1 line

Turning EAPD on/off on node 0x14 makes difference?

Yes, turning it off makes the noise disappear. But I can't hear anything, e.g. playing music makes no sound unless I turn it back on. :)

(note that this may be obvious to you, but I don't understand what's EAPD on 0x14 so I'm just explaining what I hear ;-)

Signature · 3 lines
Julien Danjou
// Free Software hacker & freelance
// http://julien.danjou.info
#5 lore raw

At Fri, 21 Sep 2012 15:14:35 +0200,

Quoted 9 lines · Julien Danjou

[1 <text/plain (quoted-printable)>]

Quoted 2 lines · Takashi Iwai

But my question was: if you plug to an external mic jack and leave the headphone jack, the speaker noise is still there, right?

Oh. If I understand correctly you're talking about 2 jacks, but there's only one jack on this laptop, doing both mic and speaker.

I see.

Quoted 7 lines
Quoted 1 line

Turning EAPD on/off on node 0x14 makes difference?

Yes, turning it off makes the noise disappear. But I can't hear anything, e.g. playing music makes no sound unless I turn it back on. :)

(note that this may be obvious to you, but I don't understand what's EAPD on 0x14 so I'm just explaining what I hear ;-)

It's something like:

	hda-verb /dev/snd/hw0D0 0x14 SET_EAPD 0x00
to turn off, and
	hda-verb /dev/snd/hw0D0 0x14 SET_EAPD 0x02

to turn on.

Also, try to mute all sources in NID 0x0b,

	hda-verb /dev/snd/hw0D0 0x0b SET_AMP 0x7480

Takashi

#6 lore raw
Quoted 3 lines · Takashi Iwai

It's something like:

	hda-verb /dev/snd/hw0D0 0x14 SET_EAPD 0x00

to turn off, and

This completely shuts down the speaker: no noise, but no sound at all if I play something.

Quoted 2 lines
	hda-verb /dev/snd/hw0D0 0x14 SET_EAPD 0x02

to turn on.

That makes it back to normal, with noise. :)

Quoted 2 lines

Also, try to mute all sources in NID 0x0b,

	hda-verb /dev/snd/hw0D0 0x0b SET_AMP 0x7480

This seems to not change anything at all.

Signature · 3 lines
Julien Danjou
;; Free Software hacker & freelance
;; http://julien.danjou.info
#7 lore raw

At Fri, 21 Sep 2012 15:37:40 +0200,

Quoted 13 lines · Julien Danjou
Quoted 3 lines · Takashi Iwai

It's something like:

	hda-verb /dev/snd/hw0D0 0x14 SET_EAPD 0x00

to turn off, and

This completely shuts down the speaker: no noise, but no sound at all if I play something.

Quoted 2 lines
	hda-verb /dev/snd/hw0D0 0x14 SET_EAPD 0x02

to turn on.

Quoted 6 lines

That makes it back to normal, with noise. :)

Quoted 2 lines

Also, try to mute all sources in NID 0x0b,

	hda-verb /dev/snd/hw0D0 0x0b SET_AMP 0x7480

This seems to not change anything at all.

OK, then could you give the alsa-info.sh output at the state where the speaker makes noise? The one you attached is apparently without the speaker.

Takashi

#8 lore raw
Quoted 3 lines · Takashi Iwai

OK, then could you give the alsa-info.sh output at the state where the speaker makes noise? The one you attached is apparently without the speaker.

Sure, attached. Nothing plugged in the jack, and I hear the noise.

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.61
!!################################

!!Script ran on: Fri Sep 21 14:07:29 UTC 2012

!!Linux Distribution
!!------------------

Debian GNU/Linux wheezy/sid \n \l PRETTY_NAME="Debian GNU/Linux wheezy/sid" NAME="Debian GNU/Linux" ID=debian

!!DMI Information
!!---------------

Manufacturer:      Sony Corporation
Product Name:      SVZ1311C5E
Product Version:   J004SF49
Firmware Version:  R0092C6

!!Kernel Information
!!------------------

Kernel release:    3.5-trunk-amd64
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         unknown
SMP Enabled:       Yes

!!ALSA Version
!!------------

Driver version:     1.0.25
Library version:    1.0.25
Utilities version:  1.0.25

!!Loaded ALSA modules
!!-------------------

snd_hda_intel

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes

!!Soundcards recognised by ALSA
!!-----------------------------

0 [PCH ]: HDA-Intel - HDA Intel PCH

                      HDA Intel PCH at 0xd7400000 irq 44

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)

!!Advanced information - PCI Vendor/Device/Subsystem ID's !!-------------------------------------------------------

00:1b.0 0403: 8086:1e20 (rev 04)

	Subsystem: 104d:90a5

!!Modprobe options (Sound related)
!!--------------------------------

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2

!!Loaded sound module options
!!---------------------------

!!Module: snd_hda_intel

	align_buffer_size : -1
	bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	beep_mode : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	enable_msi : -1
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	power_save : 0
	power_save_controller : Y
	probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	single_cmd : N
	snoop : Y

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: Realtek ALC275
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0275
Subsystem Id: 0x104d6600
Revision Id: 0x100008
No Modem Function Group found
Default PCM:

    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Control: name="Headphone Playback Volume", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC275 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x18 0x18]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Control: name="Speaker Playback Volume", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x3f, nsteps=0x40, stepsize=0x03, mute=0
  Amp-Out vals:  [0x18 0x18]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:

    rates [0x5f0]: 32000 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x90 0x90]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x24

Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x90 0x90]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x23

Node 0x09 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
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

Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2

     0x02 0x0b

Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x00 0x00]
Connection: 2

     0x03 0x0b

Node 0x0e [Audio Mixer] wcaps 0x20010a: Mono Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00] [0x80]
Connection: 2

     0x0c 0x0d

Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Audio Input] wcaps 0x10051b: Stereo Amp-In
Control: name="Capture Switch", index=0, device=0
Control: name="Capture Volume", index=0, device=0
Device: name="ALC275 Analog", type="Audio", device=0 Amp-In caps: ofs=0x11, nsteps=0x2e, stepsize=0x03, mute=1 Amp-In vals: [0x14 0x14]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:

    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x22
Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0

Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x02 0x02]
Pincap 0x00000020: IN
Pin Default 0x90a60120: [Fixed] Mic at Int N/A
Conn = Digital, Color = Unknown
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x14 [Pin Complex] wcaps 0x40050d: Stereo Amp-Out
Control: name="Speaker Playback Switch", index=0, device=0

    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x00010050: OUT EAPD Balanced
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c 0x0d*
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x16 [Pin Complex] wcaps 0x40050c: Mono Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80]
Pincap 0x00000010: OUT
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x0e

Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00003734: IN OUT Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x19 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00003734: IN OUT Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x22: IN VREF_GRD
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x1a [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0000373c: IN OUT HP Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00003734: IN OUT Detect

    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x1d [Pin Complex] wcaps 0x400400: Mono
Pincap 0x00000020: IN
Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1e [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x411110f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x06

Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=64
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x22 [Audio Selector] wcaps 0x300101: Stereo
Connection: 2

     0x12* 0x13

Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 6

     0x18 0x19 0x1a 0x1b 0x1d 0x0b

Node 0x24 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 6

     0x18 0x19 0x1a 0x1b 0x1d 0x0b

Codec: Intel PantherPoint HDMI
Address: 3
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862806
Subsystem Id: 0x104d6600
Revision Id: 0x100000
No Modem Function Group found
Default PCM:

    rates [0x0]:
    bits [0x0]:
    formats [0x0]:

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:

    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3

Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3

Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
PCM:

    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1e]: 16 20 24 32
    formats [0x5]: PCM AC3

Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Control: name="HDMI/DP,pcm=3 Jack", index=0, device=0
Control: name="IEC958 Playback Con Mask", index=0, device=0
Control: name="IEC958 Playback Pro Mask", index=0, device=0
Control: name="IEC958 Playback Default", index=0, device=0
Control: name="IEC958 Playback Switch", index=0, device=0
Control: name="ELD", index=0, device=3
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x00]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=01, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x02

Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x80]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x585600f0: [N/A] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x03

Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x00 0x80]
Pincap 0x09000094: OUT Detect HBR HDMI DP
Pin Default 0x585600f0: [N/A] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1

     0x04

Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono --endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---T+ 1 root audio 116,  7 Sep 15 14:19 /dev/snd/controlC0
crw-rw---T+ 1 root audio 116,  6 Sep 15 14:19 /dev/snd/hwC0D0
crw-rw---T+ 1 root audio 116,  5 Sep 15 14:19 /dev/snd/hwC0D3
crw-rw---T+ 1 root audio 116,  4 Sep 19 11:43 /dev/snd/pcmC0D0c
crw-rw---T+ 1 root audio 116,  3 Sep 21 15:49 /dev/snd/pcmC0D0p
crw-rw---T+ 1 root audio 116,  2 Sep 15 14:19 /dev/snd/pcmC0D3p
crw-rw---T+ 1 root audio 116,  1 Sep 15 14:19 /dev/snd/seq

crw-rw---T+ 1 root audio 116, 33 Sep 15 14:19 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Sep 15 14:19 .
drwxr-xr-x 3 root root 220 Sep 15 14:19 ..
lrwxrwxrwx 1 root root 12 Sep 15 14:19 pci-0000:00:1b.0 -> ../controlC0

!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC275 Analog [ALC275 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC275 Analog [ALC275 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [PCH]

Card hw:0 'PCH'/'HDA Intel PCH at 0xd7400000 irq 44'
Mixer name : 'Intel PantherPoint HDMI'
Components : 'HDA:10ec0275,104d6600,00100008 HDA:80862806,104d6600,00100000'
Controls : 21
Simple ctrls : 10
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 25 [39%] [-39.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 63 [98%] [0.00dB] [on]
Front Right: Playback 63 [98%] [0.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 63 [98%] [0.00dB] [on]
Front Right: Playback 63 [98%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 253 [99%] [0.40dB]
Front Right: Playback 253 [99%] [0.40dB]
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: 2 [67%] [20.00dB]
Front Right: 2 [67%] [20.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 11 [35%] [-18.00dB] [on]
Front Right: Playback 11 [35%] [-18.00dB] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 46
Front Left: Capture 20 [43%] [3.00dB] [on]
Front Right: Capture 20 [43%] [3.00dB] [on]
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]

!!Alsactl output
!!--------------

--startcollapse--

state.PCH {
	control.1 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 63
		value.1 63
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 64'
			dbmin -6300
			dbmax 100
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.2 {
		iface MIXER
		name 'Headphone Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.3 {
		iface MIXER
		name 'Speaker Playback Volume'
		value.0 63
		value.1 63
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 64'
			dbmin -6300
			dbmax 100
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.4 {
		iface MIXER
		name 'Speaker Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.5 {
		iface MIXER
		name 'Auto-Mute Mode'
		value Enabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.6 {
		iface MIXER
		name 'Mic Boost Volume'
		value.0 2
		value.1 2
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 3'
			dbmin 0
			dbmax 3000
			dbvalue.0 2000
			dbvalue.1 2000
		}
	}
	control.7 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.8 {
		iface MIXER
		name 'Capture Volume'
		value.0 20
		value.1 20
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 46'
			dbmin -1700
			dbmax 2900
			dbvalue.0 300
			dbvalue.1 300
		}
	}
	control.9 {
		iface MIXER
		name 'Beep Playback Volume'
		value.0 11
		value.1 11
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -1800
			dbvalue.1 -1800
		}
	}
	control.10 {
		iface MIXER
		name 'Beep Playback Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.11 {
		iface MIXER
		name 'Master Playback Volume'
		value 25
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 64'
			dbmin -6400
			dbmax 0
			dbvalue.0 -3900
		}
	}
	control.12 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.13 {
		iface CARD
		name 'Headphone Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.14 {
		iface CARD
		name 'HDMI/DP,pcm=3 Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.15 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.16 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.17 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.18 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.19 {
		iface PCM
		device 3
		name ELD
		value '100009006a105e01000000000000000026cd0d56504c45323430374844530907010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type BYTES
			count 83
		}
	}
	control.20 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 253
		value.1 253
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 -40
			dbvalue.1 -40
		}
	}
	control.21 {
		iface MIXER
		name 'Digital Capture Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 120'
			tlv '0000000100000008fffff44800000032'
			dbmin -3000
			dbmax 3000
			dbvalue.0 -3000
			dbvalue.1 -3000
		}
	}
}

--endcollapse--

!!All Loaded Modules
!!------------------

Module
nls_utf8
nls_cp437
vfat
fat
hid_generic
usb_storage
uas
ipt_MASQUERADE
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
nf_conntrack
ip6table_filter
ip6_tables
iptable_filter
ip_tables
ebtable_nat
ebtables
x_tables
parport_pc
ppdev
lp
parport
bnep
rfcomm
bluetooth
cpufreq_powersave
pci_stub
cpufreq_userspace
vboxpci
cpufreq_stats
cpufreq_conservative
vboxnetadp
vboxnetflt
vboxdrv
binfmt_misc
uinput
nfsd
nfs
nfs_acl
auth_rpcgss
fscache
lockd
sunrpc
loop
fuse
snd_hda_codec_hdmi
snd_hda_codec_realtek
tpm_infineon
uvcvideo
videobuf2_vmalloc
videobuf2_memops
videobuf2_core
videodev
media
joydev
arc4
coretemp
kvm_intel
snd_hda_intel
kvm
snd_hda_codec
snd_hwdep
snd_pcm
snd_page_alloc
snd_seq
snd_seq_device
psmouse
acpi_cpufreq
battery
snd_timer
serio_raw
microcode
pcspkr
i2c_i801
tpm_tis
iwlwifi
tpm
snd
tpm_bios
mac80211
sony_laptop
mperf
rts_pstor
cfg80211
rfkill
soundcore
lpc_ich
mfd_core
evdev
processor
ac
ext4
crc16
jbd2
mbcache
sha256_generic
dm_crypt
dm_mod
raid0
md_mod
hid_logitech_dj
usbhid
hid
sg
sd_mod
crc_t10dif
crc32c_intel
ghash_clmulni_intel
aesni_intel
i915
ahci
libahci
aes_x86_64
libata
ehci_hcd
aes_generic
cryptd
r8169
mii
scsi_mod
usbcore
video
button
i2c_algo_bit
usb_common
drm_kms_helper
drm
i2c_core
thermal
thermal_sys

!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x90a60120
0x13 0x411111f0
0x14 0x90170110
0x15 0x0421101f
0x16 0x411111f0
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x411111f0
0x1e 0x411110f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D3/init_pin_configs:
0x05 0x18560010
0x06 0x585600f0
0x07 0x585600f0

/sys/class/sound/hwC0D3/driver_pin_configs:

/sys/class/sound/hwC0D3/user_pin_configs:

/sys/class/sound/hwC0D3/init_verbs:

!!ALSA/HDA dmesg
!!--------------

[332064.706938] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[332064.706954] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[332064.706967] ahci 0000:00:1f.2: setting latency timer to 64
--
[355387.645103] ehci_hcd 0000:00:1a.0: setting latency timer to 64
[355387.645179] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[355387.645243] ehci_hcd 0000:00:1d.0: setting latency timer to 64
--
[480708.869417] r8169 0000:05:00.0: wake-up capability disabled by ACPI
[480708.869424] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[480708.907221] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
--
[490572.893698] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[490572.893709] snd_hda_intel 0000:00:1b.0: irq 44 for MSI/MSI-X
[490572.893725] ahci 0000:00:1f.2: setting latency timer to 64
Signature · 4 lines
-- 
Julien Danjou
;; Free Software hacker & freelance
;; http://julien.danjou.info
#9 lore raw

At Fri, 21 Sep 2012 16:08:20 +0200,

Quoted 8 lines · Julien Danjou
Quoted 3 lines · Takashi Iwai

OK, then could you give the alsa-info.sh output at the state where the speaker makes noise? The one you attached is apparently without the speaker.

Sure, attached. Nothing plugged in the jack, and I hear the noise.

Thanks. The DAC paths look good to me.
What happens if you load snd-hda-intel module with model="nofixup" option?

Takashi

#10 lore raw
Quoted 3 lines · Takashi Iwai

Thanks. The DAC paths look good to me.
What happens if you load snd-hda-intel module with model="nofixup" option?

It doesn't change anything.

FWIW, I did the following:

# rmmod snd-hda-intel
(noise still here)
# modprobe snd-hda-intel model=nofixup
(speakers are silent for 1 sec, then modprobe returns and noise is back)
# rmmod snd-hda-intel
(noise still here)
# modprobe snd-hda-intel
(speakers are silent for 1 sec, then modprobe returns and noise is back)
Signature · 3 lines
Julien Danjou
;; Free Software hacker & freelance
;; http://julien.danjou.info
#11 lore raw

At Fri, 21 Sep 2012 17:29:09 +0200,

Quoted 11 lines · Julien Danjou
Quoted 3 lines · Takashi Iwai

Thanks. The DAC paths look good to me.
What happens if you load snd-hda-intel module with model="nofixup" option?

It doesn't change anything.

FWIW, I did the following:

Quoted 8 lines
# rmmod snd-hda-intel
(noise still here)
# modprobe snd-hda-intel model=nofixup
(speakers are silent for 1 sec, then modprobe returns and noise is back)
# rmmod snd-hda-intel
(noise still here)
# modprobe snd-hda-intel
(speakers are silent for 1 sec, then modprobe returns and noise is back)

Hm then I have no more clue. Sony must have done something weird...

Takashi

#12 lore raw
Quoted 1 line · Takashi Iwai

Hm then I have no more clue. Sony must have done something weird...

Too bad, but thanks a lot anyway for your help!

Signature · 3 lines
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
#13 lore raw

At Fri, 21 Sep 2012 17:55:18 +0200,

Quoted 6 lines · Julien Danjou
Quoted 1 line · Takashi Iwai

Hm then I have no more clue. Sony must have done something weird...

Too bad, but thanks a lot anyway for your help!

One last thing I'd try is to disable the analog loopback path

    hda-verb /dev/snd/hwC0D0 0x0d SET_AMP 0x7180

Other than that, only insane things like setting VREF to the output pin (e.g. Apple machines need it) or trying some COEF used for other devices.

Takashi

#14 lore raw
Quoted 3 lines · Takashi Iwai

One last thing I'd try is to disable the analog loopback path

    hda-verb /dev/snd/hwC0D0 0x0d SET_AMP 0x7180

Woh, that does something! The noise is now different, it's a lot more "piercing". It was shhhhhhht now it's hiiiiiiiiiii.

Signature · 3 lines
Julien Danjou
;; Free Software hacker & freelance
;; http://julien.danjou.info
#15 lore raw

Hi Takashi,

Thanks for your help so far! I just spent some time playing with hda-analyzer, and found something interesting. Excuse me in advance, I don't really know and understand what I'm talking about, so I'll try to be the more clear I can.

I managed to make the weird sound disappear in one case: when the speakers are not muted, which is at least a good start. All I have to do, it to uncheck the mute buttons of val[8] and val[9] in "Node 0x0b AUD_MIX" and let their value to 0.
By the way, changing the value of val[8] to something between 1 and 31 makes a different sound. Changing value of val[9] makes not effect

Does that ring a bell to you, or could you translate this to me? :)

Thanks a lot for your time,

Best,

Signature · 3 lines
Julien Danjou
# Free Software hacker & freelance
# http://julien.danjou.info
#16 lore raw

At Thu, 04 Oct 2012 15:56:55 +0200,

Quoted 8 lines · Julien Danjou

Hi Takashi,

Thanks for your help so far! I just spent some time playing with hda-analyzer, and found something interesting. Excuse me in advance, I don't really know and understand what I'm talking about, so I'll try to be the more clear I can.

Quoted 8 lines

I managed to make the weird sound disappear in one case: when the speakers are not muted, which is at least a good start. All I have to do, it to uncheck the mute buttons of val[8] and val[9] in "Node 0x0b AUD_MIX" and let their value to 0.
By the way, changing the value of val[8] to something between 1 and 31 makes a different sound. Changing value of val[9] makes not effect

Does that ring a bell to you, or could you translate this to me? :)

At best, please give alsa-info.sh outputs at both working and non-working cases. In that way, we can see the internal states more exactly than ambiguous descriptions.

thanks,

Takashi

A message that is not in the archive (sent off-list or not yet received): [email protected]

#18 lore raw

At Mon, 08 Oct 2012 14:46:24 +0200,

Quoted 25 lines · Julien Danjou

[1 <multipart/mixed (7bit)>]
[1.1 <text/plain (quoted-printable)>]

Quoted 3 lines · Takashi Iwai

At best, please give alsa-info.sh outputs at both working and non-working cases. In that way, we can see the internal states more exactly than ambiguous descriptions.

Sure! Both attached.

The diff between background-noise and no-background-noise is:

tmp/alsa-info-no-background-noise.txt renamed from tmp/alsa-info-background-noise.txt +1 -1
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 12:41:05 UTC 2012
+!!Script ran on: Mon Oct  8 12:42:24 UTC 2012
 
 
 !!Linux Distribution

tmp/alsa-info-no-background-noise.txt line 203

Quoted 7 lines
tmp/alsa-info-no-background-noise.txt renamed from tmp/alsa-info-background-noise.txt +1 -1
@@ -198,7 +198,7 @@
   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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00]
   Connection: 5
      0x18 0x19 0x1a 0x1b 0x1d

It's interesting. So, _unmuting_ the input from NID 0x1d removes the noise? (0x80 means the channel is muted.)

Takashi

#19 lore raw
Quoted 2 lines · Takashi Iwai

It's interesting. So, _unmuting_ the input from NID 0x1d removes the noise? (0x80 means the channel is muted.)

Yes, that's it.

(I just unloaded and reloaded the module and rechecked).

Signature · 3 lines
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
#20 lore raw

At Mon, 08 Oct 2012 14:57:23 +0200,

Quoted 9 lines · Julien Danjou
Quoted 2 lines · Takashi Iwai

It's interesting. So, _unmuting_ the input from NID 0x1d removes the noise? (0x80 means the channel is muted.)

Yes, that's it.

(I just unloaded and reloaded the module and rechecked).

OK, then could you try the patch below?

Takashi

---

sound/pci/hda/patch_realtek.c +19 -0
index 8568aee..42dd605 100644
@@ -5988,10 +5988,22 @@ static void alc269_fixup_mic2_mute(struct hda_codec *codec,
 	}
 }
 
+static void alc275_fixup_vaio_mixer(struct hda_codec *codec,
+				    const struct alc_fixup *fix, int action)
+{
+	/* _UN_muting the input from NID 0x1d fixes the mysterious speaker
+	 * noise on Sony VAIO Z
+	 */
+	if (action == ALC_FIXUP_ACT_INIT)
+		snd_hda_codec_write(codec, 0x0b, 0,
+				    AC_VERB_SET_AMP_GAIN_MUTE,
+				    AMP_IN_UNMUTE(4));
+}
 
 enum {
 	ALC269_FIXUP_SONY_VAIO,
 	ALC275_FIXUP_SONY_VAIO_GPIO2,
+	ALC275_FIXUP_SONY_VAIO_MIXER,
 	ALC269_FIXUP_DELL_M101Z,
 	ALC269_FIXUP_SKU_IGNORE,
 	ALC269_FIXUP_ASUS_G73JW,
@@ -6031,6 +6043,12 @@ static const struct alc_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC269_FIXUP_SONY_VAIO
 	},
+	[ALC275_FIXUP_SONY_VAIO_MIXER] = {
+		.type = ALC_FIXUP_FUNC,
+		.v.func = alc275_fixup_vaio_mixer,
+		.chained = true,
+		.chain_id = ALC269_FIXUP_SONY_VAIO
+	},
 	[ALC269_FIXUP_DELL_M101Z] = {
 		.type = ALC_FIXUP_VERBS,
 		.v.verbs = (const struct hda_verb[]) {
@@ -6172,6 +6190,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x104d, 0x9073, "Sony VAIO", ALC275_FIXUP_SONY_VAIO_GPIO2),
 	SND_PCI_QUIRK(0x104d, 0x907b, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
 	SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
+	SND_PCI_QUIRK(0x104d, 0x90a5, "Sony VAIO Z", ALC275_FIXUP_SONY_VAIO_MIXER),
 	SND_PCI_QUIRK_VENDOR(0x104d, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
 	SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
 	SND_PCI_QUIRK_VENDOR(0x1025, "Acer Aspire", ALC271_FIXUP_DMIC),
#21 lore raw
Quoted 27 lines · Takashi Iwai

At Mon, 08 Oct 2012 14:57:23 +0200,

Quoted 9 lines · Julien Danjou
Quoted 2 lines · Takashi Iwai

It's interesting. So, _unmuting_ the input from NID 0x1d removes the noise? (0x80 means the channel is muted.)

Yes, that's it.

(I just unloaded and reloaded the module and rechecked).

OK, then could you try the patch below?

Takashi

---

sound/pci/hda/patch_realtek.c +1 -0
index 8568aee..42dd605 100644
@@ -5988,10 +5988,22 @@ static void alc269_fixup_mic2_mute(struct hda_codec *codec,
  	}
  }
 
+static void alc275_fixup_vaio_mixer(struct hda_codec *codec,

sound/pci/hda/patch_realtek.c static void alc269_fixup_mic2_mute(struct hda_codec *codec, · line 6001

Quoted 10 lines
sound/pci/hda/patch_realtek.c +10 -0
+				    const struct alc_fixup *fix, int action)
+{
+	/* _UN_muting the input from NID 0x1d fixes the mysterious speaker
+	 * noise on Sony VAIO Z
+	 */
+	if (action == ALC_FIXUP_ACT_INIT)
+		snd_hda_codec_write(codec, 0x0b, 0,
+				    AC_VERB_SET_AMP_GAIN_MUTE,
+				    AMP_IN_UNMUTE(4));
+}

Hmm, isn't it easier just to toggle "Beep Playback Switch"?

Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
#22 lore raw

At Mon, 08 Oct 2012 16:39:35 +0200,

Quoted 28 lines · David Henningsson
Quoted 26 lines · Takashi Iwai

At Mon, 08 Oct 2012 14:57:23 +0200,

Quoted 9 lines · Julien Danjou
Quoted 2 lines · Takashi Iwai

It's interesting. So, _unmuting_ the input from NID 0x1d removes the noise? (0x80 means the channel is muted.)

Yes, that's it.

(I just unloaded and reloaded the module and rechecked).

OK, then could you try the patch below?

Takashi

---

sound/pci/hda/patch_realtek.c +0 -0
index 8568aee..42dd605 100644
@@ -5988,10 +5988,22 @@ static void alc269_fixup_mic2_mute(struct hda_codec *codec,
  	}
  }
 
Quoted 13 lines

sound/pci/hda/patch_realtek.c static void alc269_fixup_mic2_mute(struct hda_codec *codec, · line 6001

Quoted 11 lines
sound/pci/hda/patch_realtek.c +11 -0
+static void alc275_fixup_vaio_mixer(struct hda_codec *codec,
+				    const struct alc_fixup *fix, int action)
+{
+	/* _UN_muting the input from NID 0x1d fixes the mysterious speaker
+	 * noise on Sony VAIO Z
+	 */
+	if (action == ALC_FIXUP_ACT_INIT)
+		snd_hda_codec_write(codec, 0x0b, 0,
+				    AC_VERB_SET_AMP_GAIN_MUTE,
+				    AMP_IN_UNMUTE(4));
+}

Hmm, isn't it easier just to toggle "Beep Playback Switch"?

Good point. I'm actually not sure whether the 0x1d is supposed to be beep on ALC275 as well. It's been so for ALC269, but ALC275 might be different.

Takashi

#23 lore raw

At Mon, 08 Oct 2012 17:07:44 +0200,

Quoted 45 lines · Takashi Iwai

At Mon, 08 Oct 2012 16:39:35 +0200,

Quoted 28 lines · David Henningsson
Quoted 26 lines · Takashi Iwai

At Mon, 08 Oct 2012 14:57:23 +0200,

Quoted 9 lines · Julien Danjou
Quoted 2 lines · Takashi Iwai

It's interesting. So, _unmuting_ the input from NID 0x1d removes the noise? (0x80 means the channel is muted.)

Yes, that's it.

(I just unloaded and reloaded the module and rechecked).

OK, then could you try the patch below?

Takashi

---

sound/pci/hda/patch_realtek.c +0 -0
index 8568aee..42dd605 100644
@@ -5988,10 +5988,22 @@ static void alc269_fixup_mic2_mute(struct hda_codec *codec,
  	}
  }
 
Quoted 13 lines

sound/pci/hda/patch_realtek.c static void alc269_fixup_mic2_mute(struct hda_codec *codec, · line 6001

Quoted 11 lines
sound/pci/hda/patch_realtek.c +11 -0
+static void alc275_fixup_vaio_mixer(struct hda_codec *codec,
+				    const struct alc_fixup *fix, int action)
+{
+	/* _UN_muting the input from NID 0x1d fixes the mysterious speaker
+	 * noise on Sony VAIO Z
+	 */
+	if (action == ALC_FIXUP_ACT_INIT)
+		snd_hda_codec_write(codec, 0x0b, 0,
+				    AC_VERB_SET_AMP_GAIN_MUTE,
+				    AMP_IN_UNMUTE(4));
+}

Hmm, isn't it easier just to toggle "Beep Playback Switch"?

Quoted 3 lines

Good point. I'm actually not sure whether the 0x1d is supposed to be beep on ALC275 as well. It's been so for ALC269, but ALC275 might be different.

In other words: Julien, could you check whether beep volume from speaker/headphone changes when you adjust "Beep" volume in alsa mixer?

Takashi

#24 lore raw
Quoted 2 lines · Takashi Iwai

In other words: Julien, could you check whether beep volume from speaker/headphone changes when you adjust "Beep" volume in alsa mixer?

When you say beep volume from speaker/headphone, do you refer to what I call noise?

Because if yes, this is actually the case:

- if "Beep" muted -> noise :(
- if "Beep" unmuted and volume == 0 -> no noise :)
- if "Beep" unmuted and volume > 0 -> different type of noises! :(

Signature · 3 lines
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
#25 lore raw

At Mon, 08 Oct 2012 17:41:02 +0200,

Quoted 8 lines · Julien Danjou
Quoted 2 lines · Takashi Iwai

In other words: Julien, could you check whether beep volume from speaker/headphone changes when you adjust "Beep" volume in alsa mixer?

When you say beep volume from speaker/headphone, do you refer to what I call noise?

No, not about noise but the system beep sound.
Such like

	% echo -en "\a"

on Linux console.

Takashi

Quoted 12 lines

Because if yes, this is actually the case:

- if "Beep" muted -> noise :(
- if "Beep" unmuted and volume == 0 -> no noise :)
- if "Beep" unmuted and volume > 0 -> different type of noises! :(

Signature · 4 lines
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
[2  <application/pgp-signature (7bit)>]
#26 lore raw
Quoted 4 lines · Takashi Iwai

No, not about noise but the system beep sound.
Such like

	% echo -en "\a"

on Linux console.

Oh that. Yes, the volume I hear when echoing a '\a' change correctly when I change the beep volume in alsamixer.

(On a side note, I don't know how precise it should be, but setting the beep volume to 0 (but still unmuted) still does an audible beep.)

Signature · 3 lines
Julien Danjou
-- Free Software hacker & freelance
-- http://julien.danjou.info
#27 lore raw

At Mon, 08 Oct 2012 18:09:10 +0200,

Quoted 10 lines · Julien Danjou
Quoted 4 lines · Takashi Iwai

No, not about noise but the system beep sound.
Such like

	% echo -en "\a"

on Linux console.

Oh that. Yes, the volume I hear when echoing a '\a' change correctly when I change the beep volume in alsamixer.

Thanks, it's good to know. So the current implementation of beep control itself is OK. The rest is to stop the mixer amp mute via Beep switch...

Quoted 2 lines

(On a side note, I don't know how precise it should be, but setting the beep volume to 0 (but still unmuted) still does an audible beep.)

It's normal behavior on many codecs. The lowest volume level doesn't mean the mute state.

Takashi

#28 lore raw
In reply to Takashi Iwai
Quoted 1 line · Takashi Iwai

OK, then could you try the patch below?

The patch is not enough on itself, but it seems on a good track. As soon as the module is started, the noise starts for one second and stops.

The "Beep Playback Switch" is shown as muted in alsamixer. If I unmute it, well, no noise, as expected. If i re-mute it, the noise come back.

So this patch just works after module loading, but I guess that's to be expected if I understand the code correctly. :)

Signature · 3 lines
Julien Danjou
// Free Software hacker & freelance
// http://julien.danjou.info
#29 lore raw

At Mon, 08 Oct 2012 18:24:23 +0200,

Quoted 5 lines · Julien Danjou
Quoted 1 line · Takashi Iwai

OK, then could you try the patch below?

Quoted 8 lines

The patch is not enough on itself, but it seems on a good track. As soon as the module is started, the noise starts for one second and stops.

The "Beep Playback Switch" is shown as muted in alsamixer. If I unmute it, well, no noise, as expected. If i re-mute it, the noise come back.

So this patch just works after module loading, but I guess that's to be expected if I understand the code correctly. :)

Yep, as David pointed out, the beep control overrides the amp setup. And your previous result suggested that we shouldn't use this beep path either (except for unmuting it), otherwise you get a noise again.

So, the patch below is the revised version. It removes the beep control but still opens the path to NID 0x1d.

Let me know if this works better.

thanks,

Takashi

---

sound/pci/hda/patch_realtek.c +20 -0
index 8568aee..1cf45d0 100644
@@ -4249,6 +4249,7 @@ static const struct snd_pci_quirk beep_white_list[] = {
 	SND_PCI_QUIRK(0x1043, 0x83ce, "EeePC", 1),
 	SND_PCI_QUIRK(0x1043, 0x831a, "EeePC", 1),
 	SND_PCI_QUIRK(0x1043, 0x834a, "EeePC", 1),
+	SND_PCI_QUIRK(0x104d, 0x90a5, "Sony VAIO Z", 0), /* beep cause noise */
 	SND_PCI_QUIRK(0x1458, 0xa002, "GA-MA790X", 1),
 	SND_PCI_QUIRK(0x8086, 0xd613, "Intel", 1),
 	{}
@@ -5988,10 +5989,22 @@ static void alc269_fixup_mic2_mute(struct hda_codec *codec,
 	}
 }
 
+static void alc275_fixup_vaio_mixer(struct hda_codec *codec,
+				    const struct alc_fixup *fix, int action)
+{
+	/* _UN_muting the input from NID 0x1d fixes the mysterious speaker
+	 * noise on Sony VAIO Z
+	 */
+	if (action == ALC_FIXUP_ACT_INIT)
+		snd_hda_codec_write(codec, 0x0b, 0,
+				    AC_VERB_SET_AMP_GAIN_MUTE,
+				    AMP_IN_UNMUTE(4));
+}
 
 enum {
 	ALC269_FIXUP_SONY_VAIO,
 	ALC275_FIXUP_SONY_VAIO_GPIO2,
+	ALC275_FIXUP_SONY_VAIO_MIXER,
 	ALC269_FIXUP_DELL_M101Z,
 	ALC269_FIXUP_SKU_IGNORE,
 	ALC269_FIXUP_ASUS_G73JW,
@@ -6031,6 +6044,12 @@ static const struct alc_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC269_FIXUP_SONY_VAIO
 	},
+	[ALC275_FIXUP_SONY_VAIO_MIXER] = {
+		.type = ALC_FIXUP_FUNC,
+		.v.func = alc275_fixup_vaio_mixer,
+		.chained = true,
+		.chain_id = ALC269_FIXUP_SONY_VAIO
+	},
 	[ALC269_FIXUP_DELL_M101Z] = {
 		.type = ALC_FIXUP_VERBS,
 		.v.verbs = (const struct hda_verb[]) {
@@ -6172,6 +6191,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x104d, 0x9073, "Sony VAIO", ALC275_FIXUP_SONY_VAIO_GPIO2),
 	SND_PCI_QUIRK(0x104d, 0x907b, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
 	SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
+	SND_PCI_QUIRK(0x104d, 0x90a5, "Sony VAIO Z", ALC275_FIXUP_SONY_VAIO_MIXER),
 	SND_PCI_QUIRK_VENDOR(0x104d, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
 	SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
 	SND_PCI_QUIRK_VENDOR(0x1025, "Acer Aspire", ALC271_FIXUP_DMIC),
#30 lore raw
Quoted 7 lines · Takashi Iwai

Yep, as David pointed out, the beep control overrides the amp setup. And your previous result suggested that we shouldn't use this beep path either (except for unmuting it), otherwise you get a noise again.

So, the patch below is the revised version. It removes the beep control but still opens the path to NID 0x1d.

It does remove the beep control, and I think it therefore break the beep
functionnality: I've no sound when echoing '\a'. But that's likely to be expected anyhow. :-/

But yeah, definitely, I've no noise anymore in this case with this patch.

Now, I can still make the noise come back when "speaker" or "master" is muted. This is definitely not a side effect of your patch, I just didn't raise it before.

This diff is between "no noise" (= just loaded the module with your patch) and "noise with master muted":

tmp/noise-master-mute.txt renamed from tmp/no-noise.txt +2 -2
diff -u /tmp/no-noise.txt /tmp/noise-master-mute.txt
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:36:44 UTC 2012
+!!Script ran on: Mon Oct  8 16:37:02 UTC 2012
 
 
 !!Linux Distribution
@@ -260,7 +260,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Control: name="Speaker Phantom Jack", index=0, device=0
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-Out vals:  [0x00 0x00]
+  Amp-Out vals:  [0x80 0x80]
   Pincap 0x00010050: OUT EAPD Balanced
   EAPD 0x2: EAPD
   Pin Default 0x90170110: [Fixed] Speaker at Int N/A

This diff is between "no noise" (= just loaded the module with your patch) and "noise with speaker muted":

tmp/noise-speaker-mute.txt renamed from tmp/no-noise.txt +2 -2
diff -u /tmp/no-noise.txt /tmp/noise-speaker-mute.txt
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:36:44 UTC 2012
+!!Script ran on: Mon Oct  8 16:37:10 UTC 2012
 
 
 !!Linux Distribution
@@ -260,7 +260,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Control: name="Speaker Phantom Jack", index=0, device=0
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-Out vals:  [0x00 0x00]
+  Amp-Out vals:  [0x80 0x80]
   Pincap 0x00010050: OUT EAPD Balanced
   EAPD 0x2: EAPD
   Pin Default 0x90170110: [Fixed] Speaker at Int N/A

Now, I've discovered one more thing, don't know if you know. This is how I managed to REALLY mute the speakers, the noise, everything (even playing a sound file with everything unmuted makes no sound):

% diff -u /tmp/sound.txt /tmp/no-sound-at-all.txt

tmp/no-sound-at-all.txt renamed from tmp/sound.txt +2 -2
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:48:02 UTC 2012
+!!Script ran on: Mon Oct  8 16:47:50 UTC 2012
 
 
 !!Linux Distribution
@@ -267,7 +267,7 @@
     Conn = Analog, Color = Unknown
     DefAssociation = 0x1, Sequence = 0x0
     Misc = NO_PRESENCE
-  Pin-ctls: 0x40: OUT
+  Pin-ctls: 0x00:
   Power states:  D0 D1 D2 D3 EPSS
   Power: setting=D0, actual=D0
   Connection: 2

When doing that, I cannot hear anything, because it seems to disconnect the speakers. My idea would be to set this pin to 0x00 instead of 0x40 when "Speakers" are set to mute (I don't know about master though). WDYT?

Attached all the files.

This sound card seems really weird. :)

Signature · 3 lines
Julien Danjou
# Free Software hacker & freelance
# http://julien.danjou.info
#31 lore raw

At Mon, 08 Oct 2012 18:52:26 +0200,

Quoted 8 lines · Julien Danjou
Quoted 5 lines · Takashi Iwai

Yep, as David pointed out, the beep control overrides the amp setup. And your previous result suggested that we shouldn't use this beep path either (except for unmuting it), otherwise you get a noise again.

Quoted 6 lines
Quoted 2 lines

So, the patch below is the revised version. It removes the beep control but still opens the path to NID 0x1d.

It does remove the beep control, and I think it therefore break the beep
functionnality: I've no sound when echoing '\a'. But that's likely to be expected anyhow. :-/

Doesn't the beep work if you load pcspkr module? It should be there independently.

Quoted 6 lines

But yeah, definitely, I've no noise anymore in this case with this patch.

Now, I can still make the noise come back when "speaker" or "master" is muted. This is definitely not a side effect of your patch, I just didn't raise it before.

Hm, then maybe the effect of removing noise appears no matter which input of NID 0x0b be unmuted?

Quoted 44 lines

This diff is between "no noise" (= just loaded the module with your patch) and "noise with master muted":

diff -u /tmp/no-noise.txt /tmp/noise-master-mute.txt

tmp/noise-master-mute.txt renamed from tmp/no-noise.txt +2 -2
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:36:44 UTC 2012
+!!Script ran on: Mon Oct  8 16:37:02 UTC 2012
 
 
 !!Linux Distribution
@@ -260,7 +260,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Control: name="Speaker Phantom Jack", index=0, device=0
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-Out vals:  [0x00 0x00]
+  Amp-Out vals:  [0x80 0x80]
   Pincap 0x00010050: OUT EAPD Balanced
   EAPD 0x2: EAPD
   Pin Default 0x90170110: [Fixed] Speaker at Int N/A

This diff is between "no noise" (= just loaded the module with your patch) and "noise with speaker muted":

diff -u /tmp/no-noise.txt /tmp/noise-speaker-mute.txt

tmp/noise-speaker-mute.txt renamed from tmp/no-noise.txt +1 -1
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:36:44 UTC 2012
+!!Script ran on: Mon Oct  8 16:37:10 UTC 2012
 
 
 !!Linux Distribution

tmp/noise-speaker-mute.txt line 266

Quoted 8 lines
tmp/noise-speaker-mute.txt renamed from tmp/no-noise.txt +1 -1
@@ -260,7 +260,7 @@
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Control: name="Speaker Phantom Jack", index=0, device=0
   Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
-  Amp-Out vals:  [0x00 0x00]
+  Amp-Out vals:  [0x80 0x80]
   Pincap 0x00010050: OUT EAPD Balanced
   EAPD 0x2: EAPD
   Pin Default 0x90170110: [Fixed] Speaker at Int N/A

So, obviously muting the amp triggers the noise.
BTW, does the noise come only from speaker, not from headphone, correct?

Related tests: what happens if you mute both input amps of the node 0x0d? This is a mixer widget between DAC and the speaker pin. Does this widget work as a proper mute/unmute point without causing noise?

Quoted 17 lines

Now, I've discovered one more thing, don't know if you know. This is how I managed to REALLY mute the speakers, the noise, everything (even playing a sound file with everything unmuted makes no sound):

% diff -u /tmp/sound.txt /tmp/no-sound-at-all.txt

tmp/no-sound-at-all.txt renamed from tmp/sound.txt +1 -1
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 16:48:02 UTC 2012
+!!Script ran on: Mon Oct  8 16:47:50 UTC 2012
 
 
 !!Linux Distribution

tmp/no-sound-at-all.txt line 273

Quoted 8 lines
tmp/no-sound-at-all.txt renamed from tmp/sound.txt +1 -1
@@ -267,7 +267,7 @@
     Conn = Analog, Color = Unknown
     DefAssociation = 0x1, Sequence = 0x0
     Misc = NO_PRESENCE
-  Pin-ctls: 0x40: OUT
+  Pin-ctls: 0x00:
   Power states:  D0 D1 D2 D3 EPSS
   Power: setting=D0, actual=D0
   Connection: 2

This essentially disables the output of the speaker pin.

Quoted 4 lines

When doing that, I cannot hear anything, because it seems to disconnect the speakers. My idea would be to set this pin to 0x00 instead of 0x40 when "Speakers" are set to mute (I don't know about master though). WDYT?

Possible, but a bit hackish. Let's see...

Takashi

#32 lore raw
Quoted 2 lines · Takashi Iwai

Doesn't the beep work if you load pcspkr module? It should be there independently.

pcspkr is loaded, but no sound from the speakers. And I don't think this laptop has an old buzzer. ;)

Quoted 2 lines

Hm, then maybe the effect of removing noise appears no matter which input of NID 0x0b be unmuted?

I've retested some, and you're right, it seems some others do make the noise disappear:

For example, this works too:

@@ -198,7 +198,7 @@
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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80]
   Connection: 5
      0x18 0x19 0x1a 0x1b 0x1d

Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In

This one too:
@@ -198,7 +198,7 @@
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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80]
   Connection: 5
      0x18 0x19 0x1a 0x1b 0x1d

Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In

Other pairs do not work, but some do change the noise sound.

No pair work when speakers or master is muted; the noise is always there, no matter which pair I mute/unmute.

Quoted 3 lines

So, obviously muting the amp triggers the noise.
BTW, does the noise come only from speaker, not from headphone, correct?

Yeah correct. Never got any noise in the headphone. (That's how and why I didn't got insane so far with that noise always there :)

Quoted 4 lines

Related tests: what happens if you mute both input amps of the node 0x0d? This is a mixer widget between DAC and the speaker pin. Does this widget work as a proper mute/unmute point without causing noise?

I tried all combinations on 0x0d with master unmuted: there's 2 inputs, so 4 combinations, and I got… 4 different noises. Almost funny. If master is muted, changing any input amps from 0x0d change nothing at all, noise still there.

Quoted 6 lines
Quoted 4 lines

When doing that, I cannot hear anything, because it seems to disconnect the speakers. My idea would be to set this pin to 0x00 instead of 0x40 when "Speakers" are set to mute (I don't know about master though). WDYT?

Possible, but a bit hackish. Let's see...

Heh, too bad. But you know better than me. :)

Signature · 3 lines
Julien Danjou
// Free Software hacker & freelance
// http://julien.danjou.info
#33 lore raw
Quoted 30 lines · Julien Danjou
Quoted 2 lines

Hm, then maybe the effect of removing noise appears no matter which input of NID 0x0b be unmuted?

I've retested some, and you're right, it seems some others do make the noise disappear:

For example, this works too:

(quoted diff) +1 -1
@@ -198,7 +198,7 @@
    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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80]
    Connection: 5
       0x18 0x19 0x1a 0x1b 0x1d
  Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In

This one too:

(quoted diff) +1 -1
@@ -198,7 +198,7 @@
    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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80]
    Connection: 5
       0x18 0x19 0x1a 0x1b 0x1d
  Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Quoted 1 line

Other pairs do not work, but some do change the noise sound.

So; if everything is muted, it causes some codec bug to appear. If this only happens in the speaker, maybe we should try to reroute the speaker to go 0x02 -> 0x0c -> 0x14 instead of 0x03 -> 0x0d -> 0x14? What will happen if you change 0x14 to take its input from 0x0c instead?

Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
#34 lore raw

At Tue, 09 Oct 2012 08:19:56 +0200,

Quoted 32 lines · David Henningsson
Quoted 30 lines · Julien Danjou
Quoted 2 lines

Hm, then maybe the effect of removing noise appears no matter which input of NID 0x0b be unmuted?

I've retested some, and you're right, it seems some others do make the noise disappear:

For example, this works too:

(quoted diff) +1 -1
@@ -198,7 +198,7 @@
    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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80]
    Connection: 5
       0x18 0x19 0x1a 0x1b 0x1d
  Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In

This one too:

(quoted diff) +1 -1
@@ -198,7 +198,7 @@
    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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80]
    Connection: 5
       0x18 0x19 0x1a 0x1b 0x1d
  Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Quoted 6 lines
Quoted 1 line

Other pairs do not work, but some do change the noise sound.

So; if everything is muted, it causes some codec bug to appear. If this only happens in the speaker, maybe we should try to reroute the speaker to go 0x02 -> 0x0c -> 0x14 instead of 0x03 -> 0x0d -> 0x14? What will happen if you change 0x14 to take its input from 0x0c instead?

Your suggestion reminds me of another bug on another Vaio Z model but with a different codec. On that machine, the speaker output must come from the first DAC. Otherwise silences. Julien's machine might have a similar restriction.

The patch below will change the DAC assignment order. Give it a try instead of previous ones.

thanks,

Takashi

---

sound/pci/hda/patch_realtek.c +8 -0
index 8568aee..838b6e7 100644
@@ -5992,6 +5992,7 @@ static void alc269_fixup_mic2_mute(struct hda_codec *codec,
 enum {
 	ALC269_FIXUP_SONY_VAIO,
 	ALC275_FIXUP_SONY_VAIO_GPIO2,
+	ALC275_FIXUP_VAIO_SPEAKER,
 	ALC269_FIXUP_DELL_M101Z,
 	ALC269_FIXUP_SKU_IGNORE,
 	ALC269_FIXUP_ASUS_G73JW,
@@ -6031,6 +6032,12 @@ static const struct alc_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC269_FIXUP_SONY_VAIO
 	},
+	[ALC275_FIXUP_VAIO_SPEAKER] = {
+		.type = ALC_FIXUP_FUNC,
+		.v.func = alc882_fixup_no_primary_hp, /* same quirk code */
+		.chained = true,
+		.chain_id = ALC269_FIXUP_SONY_VAIO
+	},
 	[ALC269_FIXUP_DELL_M101Z] = {
 		.type = ALC_FIXUP_VERBS,
 		.v.verbs = (const struct hda_verb[]) {
@@ -6172,6 +6179,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x104d, 0x9073, "Sony VAIO", ALC275_FIXUP_SONY_VAIO_GPIO2),
 	SND_PCI_QUIRK(0x104d, 0x907b, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
 	SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ),
+	SND_PCI_QUIRK(0x104d, 0x90a5, "Sony VAIO Z", ALC275_FIXUP_VAIO_SPEAKER),
 	SND_PCI_QUIRK_VENDOR(0x104d, "Sony VAIO", ALC269_FIXUP_SONY_VAIO),
 	SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
 	SND_PCI_QUIRK_VENDOR(0x1025, "Acer Aspire", ALC271_FIXUP_DMIC),
#35 lore raw
Quoted 7 lines · Takashi Iwai

Your suggestion reminds me of another bug on another Vaio Z model but with a different codec. On that machine, the speaker output must come from the first DAC. Otherwise silences. Julien's machine might have a similar restriction.

The patch below will change the DAC assignment order. Give it a try instead of previous ones.

Unfortunately, this doesn't help at all: with that patch I've a bunch of different noises following what I mute/unmute. And muting/unmuting the "Beep" toggles a different noise, but I cannot find the silence back. :(

Signature · 3 lines
Julien Danjou
/* Free Software hacker & freelance
   http://julien.danjou.info */
#36 lore raw
In reply to David Henningsson

On Tue, Oct 09 2012, David Henningsson wrote:

Hi David, Takashi,

I'm still trying to advance on this! :)

Quoted 4 lines

So; if everything is muted, it causes some codec bug to appear. If this only happens in the speaker, maybe we should try to reroute the speaker to go 0x02 -> 0x0c -> 0x14 instead of 0x03 -> 0x0d -> 0x14? What will happen if you change 0x14 to take its input from 0x0c instead?

I just did that using the hda-analyzer tool. I changed 0x14 to uses 0x0c as a source, and it's indeed much better. The noise disappear when neither master or speaker is muted, and actually the music playback sounds better and without the little background noise I still hear on low volume level.

Actually, I'm sure it'd be easy to come with a patch, so my question would rather be: what's this routing about, and why is 0x0d set up instead of 0x0c?

I'm still trying to find a way to fix the noise when speaker or master are muted. No chance so far. :(

Signature · 3 lines
Julien Danjou
# Free Software hacker & freelance
# http://julien.danjou.info
#37 lore raw

At Thu, 01 Nov 2012 23:39:52 +0100,

Quoted 12 lines · Julien Danjou

On Tue, Oct 09 2012, David Henningsson wrote:

Hi David, Takashi,

I'm still trying to advance on this! :)

Quoted 4 lines

So; if everything is muted, it causes some codec bug to appear. If this only happens in the speaker, maybe we should try to reroute the speaker to go 0x02 -> 0x0c -> 0x14 instead of 0x03 -> 0x0d -> 0x14? What will happen if you change 0x14 to take its input from 0x0c instead?

Quoted 5 lines

I just did that using the hda-analyzer tool. I changed 0x14 to uses 0x0c as a source, and it's indeed much better. The noise disappear when neither master or speaker is muted, and actually the music playback sounds better and without the little background noise I still hear on low volume level.

Good to hear. What's the remaining issue?

Quoted 3 lines

Actually, I'm sure it'd be easy to come with a patch, so my question would rather be: what's this routing about, and why is 0x0d set up instead of 0x0c?

The current parser prefers the line-out as the primary output over the headphone. Then it tries to assign from the smaller NID, so 0x0c is assigned to the line-out (which is the speaker in your case), then 0x0d is to the headphone.

Quoted 2 lines

I'm still trying to find a way to fix the noise when speaker or master are muted. No chance so far. :(

Do you mean that the noise is there with rerouting like the above, or you are asking for a patch to achieve the rerouting?

Takashi

#38 lore raw
Quoted 7 lines · Takashi Iwai
Quoted 5 lines

I just did that using the hda-analyzer tool. I changed 0x14 to uses 0x0c as a source, and it's indeed much better. The noise disappear when neither master or speaker is muted, and actually the music playback sounds better and without the little background noise I still hear on low volume level.

Good to hear. What's the remaining issue?

Well, it's still not perfect, and as I wrote, if any of "master" or "speaker" is muted, the noise kicks back in instantly. :(

Quoted 4 lines

The current parser prefers the line-out as the primary output over the headphone. Then it tries to assign from the smaller NID, so 0x0c is assigned to the line-out (which is the speaker in your case), then 0x0d is to the headphone.

Ok, thanks for the explanation.

Quoted 5 lines
Quoted 2 lines

I'm still trying to find a way to fix the noise when speaker or master are muted. No chance so far. :(

Do you mean that the noise is there with rerouting like the above, or you are asking for a patch to achieve the rerouting?

If "master" or "speaker" is muted, the noise kicks back in, whatever the routing is.

At this point, I wonder if it wouldn't be simpler to just boot the machine under Windows and dump the HDA state to see how the Windows driver set up all the routing. Do you think this kind of approach would work, and in that case, is there a tool do achieve that?

Signature · 3 lines
Julien Danjou
# Free Software hacker & freelance
# http://julien.danjou.info
#39 lore raw

At Fri, 02 Nov 2012 12:29:40 +0100,

Quoted 9 lines · Julien Danjou
Quoted 6 lines · Takashi Iwai
Quoted 5 lines

I just did that using the hda-analyzer tool. I changed 0x14 to uses 0x0c as a source, and it's indeed much better. The noise disappear when neither master or speaker is muted, and actually the music playback sounds better and without the little background noise I still hear on low volume level.

Quoted 4 lines
Quoted 1 line

Good to hear. What's the remaining issue?

Well, it's still not perfect, and as I wrote, if any of "master" or "speaker" is muted, the noise kicks back in instantly. :(

OK, the behavior wasn't clear in your text above, so I asked it again. (mute and unmute are pretty confusing :)

Quoted 13 lines
Quoted 4 lines

The current parser prefers the line-out as the primary output over the headphone. Then it tries to assign from the smaller NID, so 0x0c is assigned to the line-out (which is the speaker in your case), then 0x0d is to the headphone.

Ok, thanks for the explanation.

Quoted 5 lines
Quoted 2 lines

I'm still trying to find a way to fix the noise when speaker or master are muted. No chance so far. :(

Do you mean that the noise is there with rerouting like the above, or you are asking for a patch to achieve the rerouting?

Quoted 8 lines

If "master" or "speaker" is muted, the noise kicks back in, whatever the routing is.

At this point, I wonder if it wouldn't be simpler to just boot the machine under Windows and dump the HDA state to see how the Windows driver set up all the routing. Do you think this kind of approach would work, and in that case, is there a tool do achieve that?

I have no idea about Windows, sorry.

Takashi

#40 lore raw
In reply to a message not in the archive
Quoted 3 lines · Takashi Iwai

At best, please give alsa-info.sh outputs at both working and non-working cases. In that way, we can see the internal states more exactly than ambiguous descriptions.

Sure! Both attached [in gzip this time to pass the list].

The diff between background-noise and no-background-noise is:

tmp/alsa-info-no-background-noise.txt renamed from tmp/alsa-info-background-noise.txt +2 -2
@@ -3,7 +3,7 @@
 !!ALSA Information Script v 0.4.61
 !!################################
 
-!!Script ran on: Mon Oct  8 12:41:05 UTC 2012
+!!Script ran on: Mon Oct  8 12:42:24 UTC 2012
 
 
 !!Linux Distribution
@@ -198,7 +198,7 @@
   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]
+  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00]
   Connection: 5
      0x18 0x19 0x1a 0x1b 0x1d
 Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Signature · 4 lines
-- 
Julien Danjou
// Free Software hacker & freelance
// http://julien.danjou.info