Skip to contentSkip to conversation

hda_intel: ratelimit "spurious response" message

RFC PATCH Applied Joe Perches 2 participants 11 messages Nov 7, 2013 – Nov 19, 2013 Sound

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 hda_intel: ratelimit "spurious response" message

dmesg here has a 100+ consecutive lines of:

[ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500

...

Ratelimit the message to reduce the dmesg log noise.

Coalesce the format while at it.

---
 sound/pci/hda/hda_intel.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/pci/hda/hda_intel.c +3 -3
index 6e61a01..6e444ca 100644
@@ -906,12 +906,12 @@ static void azx_update_rirb(struct azx *chip)
 			chip->rirb.res[addr] = res;
 			smp_wmb();
 			chip->rirb.cmds[addr]--;
-		} else
-			snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, "
-				   "last cmd=%#08x\n",
+		} else if (printk_ratelimit()) {
+			snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, last cmd=%#08x\n",
 				   pci_name(chip->pci),
 				   res, res_ex,
 				   chip->last_cmd[addr]);
+		}
 	}
 }
 
Applied
#1 lore raw

At Thu, 07 Nov 2013 11:55:15 -0800,

Quoted 6 lines · Joe Perches

dmesg here has a 100+ consecutive lines of:

[ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
Quoted 7 lines

...

Ratelimit the message to reduce the dmesg log noise.

Coalesce the format while at it.

Thanks, applied.

BTW, which hardware shows this problem?
I'm interested rather in that...

Takashi

Quoted 26 lines
---
 sound/pci/hda/hda_intel.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/pci/hda/hda_intel.c +3 -3
index 6e61a01..6e444ca 100644
@@ -906,12 +906,12 @@ static void azx_update_rirb(struct azx *chip)
 			chip->rirb.res[addr] = res;
 			smp_wmb();
 			chip->rirb.cmds[addr]--;
-		} else
-			snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, "
-				   "last cmd=%#08x\n",
+		} else if (printk_ratelimit()) {
+			snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, last cmd=%#08x\n",
 				   pci_name(chip->pci),
 				   res, res_ex,
 				   chip->last_cmd[addr]);
+		}
 	}
 }
 
#2 lore raw
Quoted 12 lines · Takashi Iwai

At Thu, 07 Nov 2013 11:55:15 -0800,

Quoted 10 lines · Joe Perches

dmesg here has a 100+ consecutive lines of:

[ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500

...

Ratelimit the message to reduce the dmesg log noise.

Quoted 8 lines
Quoted 3 lines

Coalesce the format while at it.

Thanks, applied.

BTW, which hardware shows this problem?
I'm interested rather in that...

It's a little Acer netbook AO725

# lspci -v -v -s0:14.2
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
	Subsystem: Acer Incorporated [ALI] Device 0740
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 46
	Region 0: Memory at f0240000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee0300c  Data: 41b3
	Kernel driver in use: snd_hda_intel
#3 lore raw

At Thu, 07 Nov 2013 12:28:18 -0800,

Quoted 20 lines · Joe Perches
Quoted 18 lines · Takashi Iwai

At Thu, 07 Nov 2013 11:55:15 -0800,

Quoted 6 lines · Joe Perches

dmesg here has a 100+ consecutive lines of:

[ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
Quoted 7 lines

...

Ratelimit the message to reduce the dmesg log noise.

Coalesce the format while at it.

Thanks, applied.

Quoted 8 lines
Quoted 2 lines

BTW, which hardware shows this problem?
I'm interested rather in that...

It's a little Acer netbook AO725

# lspci -v -v -s0:14.2
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
	Subsystem: Acer Incorporated [ALI] Device 0740

Could you give alsa-info.sh output (maybe better to get it after applying your patch)? It'll show more comprehensive information.

thanks,

Takashi

#4 lore raw

(dropping lkml from cc's)

Quoted 15 lines · Takashi Iwai

At Thu, 07 Nov 2013 12:28:18 -0800,

Quoted 13 lines · Joe Perches
Quoted 12 lines · Takashi Iwai

At Thu, 07 Nov 2013 11:55:15 -0800,

Quoted 7 lines · Joe Perches

dmesg here has a 100+ consecutive lines of:

[ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500

...
Ratelimit the message to reduce the dmesg log noise. Coalesce the format while at it.

Thanks, applied.
BTW, which hardware shows this problem?
I'm interested rather in that...

Quoted 6 lines
Quoted 4 lines

It's a little Acer netbook AO725

# lspci -v -v -s0:14.2
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
	Subsystem: Acer Incorporated [ALI] Device 0740

Could you give alsa-info.sh output (maybe better to get it after applying your patch)? It'll show more comprehensive information.

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

!!Script ran on: Sat Nov 9 04:36:16 UTC 2013

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

Ubuntu 13.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 13.10" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 13.10" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

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

Manufacturer:      Acer
Product Name:      AO725
Product Version:   V2.12
Firmware Version:  V2.12

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

Kernel release:    3.12.0
Operating System:  GNU/Linux
Architecture:      i686
Processor:         athlon
SMP Enabled:       Yes

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

Driver version:     k3.12.0
Library version:    1.0.27.2
Utilities version:  1.0.27.1

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

snd_hda_intel

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

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

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

0 [Generic ]: HDA-Intel - HD-Audio Generic

                      HD-Audio Generic at 0xf0244000 irq 45

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

00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)

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

00:01.1 0403: 1002:1314

	Subsystem: 1025:0740
--
00:14.2 0403: 1022:780d (rev 01)
	Subsystem: 1025:0740

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

snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_usb_audio: index=-2
snd_usb_caiaq: index=-2
snd_usb_ua101: index=-2
snd_usb_us122l: index=-2
snd_usb_usx2y: index=-2
snd_cmipci: mpu_port=0x330 fm_port=0x388
snd_pcsp: index=-2
snd_usb_audio: index=-2

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

!!Module: snd_hda_intel

	align_buffer_size : -1
	bdl_pos_adj : 32,32,-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 : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
	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
	jackpoll_ms : 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
	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 : -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
	power_save : 1
	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: ATI ID aa01
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x1002aa01
Subsystem Id: 0x00aa0100
Revision Id: 0x100200
No Modem Function Group found
Default PCM:

    rates [0x70]: 32000 44100 48000
    bits [0x2]: 16
    formats [0x1]: PCM

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D3
Power: setting=D0, actual=D0
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x201: Stereo Digital
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
Device: name="ID aa01 Digital", type="HDMI", device=3
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
IEC Coding Type: 0x0
Node 0x03 [Pin Complex] wcaps 0x400381: Stereo Digital
Control: name="HDMI Jack", index=0, device=0 Pincap 0x00000094: OUT Detect HDMI
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=01, enabled=1
Connection: 1

     0x02

--endcollapse--

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

crw-rw----+ 1 root audio 116,  4 Nov  8 20:34 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  6 Nov  8 20:36 /dev/snd/controlC1
crw-rw----+ 1 root audio 116,  3 Nov  8 20:34 /dev/snd/hwC0D0
crw-rw----+ 1 root audio 116,  5 Nov  8 20:36 /dev/snd/hwC1D0
crw-rw----+ 1 root audio 116,  2 Nov  8 20:35 /dev/snd/pcmC0D3p
crw-rw----+ 1 root audio 116,  1 Nov  8 20:34 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Nov  8 20:34 /dev/snd/timer

/dev/snd/by-path:
total 0

drwxr-xr-x 2 root root  80 Nov  8 20:36 .
drwxr-xr-x 3 root root 200 Nov  8 20:36 ..
lrwxrwxrwx 1 root root  12 Nov  8 20:34 pci-0000:00:01.1 -> ../controlC0
lrwxrwxrwx 1 root root  12 Nov  8 20:36 pci-0000:00:14.2 -> ../controlC1

!!ALSA configuration files
!!------------------------

!!System wide config file (/etc/asound.conf)

pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}

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

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: ID aa01 Digital [ID aa01 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****

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

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

Card hw:0 'Generic'/'HD-Audio Generic at 0xf0244000 irq 45'
Mixer name : 'ATI ID aa01'
Components : 'HDA:1002aa01,00aa0100,00100200'
Controls : 6
Simple ctrls : 1
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]

!!-------Mixer controls for card 1 ]

Card hw:1 'Generic_1'/'HD-Audio Generic at 0xf0240000 irq 46'
Mixer name : 'Realtek ALC271X'
Components : 'HDA:10ec0269,10250740,00100100'
Controls : 21
Simple ctrls : 10
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 0 [0%] [-65.25dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on] Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 0 [0%] [-65.25dB] [on]
Front Right: Playback 0 [0%] [-65.25dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 0 [0%] [-51.00dB]
Front Right: Playback 0 [0%] [-51.00dB]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right
Limits: 0 - 127
Front Left: 127 [100%] [0.00dB]
Front Right: 127 [100%] [0.00dB]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 127
Front Left: Capture 127 [100%] [0.00dB] [on] Front Right: Capture 127 [100%] [0.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Internal Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off] Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Internal Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right
Limits: 0 - 127
Front Left: 127 [100%] [0.00dB]
Front Right: 127 [100%] [0.00dB]

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

--startcollapse--

state.Generic {
	control.1 {
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.2 {
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access read
			type IEC958
			count 1
		}
	}
	control.3 {
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
		comment {
			access 'read write'
			type IEC958
			count 1
		}
	}
	control.4 {
		iface MIXER
		name 'IEC958 Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.5 {
		iface CARD
		name 'HDMI Jack'
		value false
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.6 {
		iface PCM
		device 3
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
}
state.Generic_1 {
	control.1 {
		iface MIXER
		name 'Headphone Playback Volume'
		value.0 87
		value.1 87
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	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 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 -6525
			dbvalue.1 -6525
		}
	}
	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 'Internal Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.6 {
		iface MIXER
		name 'Internal Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.7 {
		iface MIXER
		name 'Mic Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.8 {
		iface MIXER
		name 'Mic Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.9 {
		iface MIXER
		name 'Auto-Mute Mode'
		value Enabled
		comment {
			access 'read write'
			type ENUMERATED
			count 1
			item.0 Disabled
			item.1 Enabled
		}
	}
	control.10 {
		iface MIXER
		name 'Capture Volume'
		value.0 127
		value.1 127
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 127'
			dbmin -9999999
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.11 {
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.12 {
		iface MIXER
		name 'Internal Mic Boost Volume'
		value.0 127
		value.1 127
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 127'
			dbmin -9999999
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.13 {
		iface MIXER
		name 'Mic Boost Volume'
		value.0 127
		value.1 127
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 127'
			dbmin -9999999
			dbmax 0
			dbvalue.0 0
			dbvalue.1 0
		}
	}
	control.14 {
		iface MIXER
		name 'Master Playback Volume'
		value 0
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 87'
			dbmin -6525
			dbmax 0
			dbvalue.0 -6525
		}
	}
	control.15 {
		iface MIXER
		name 'Master Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.16 {
		iface CARD
		name 'Internal Mic Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.17 {
		iface CARD
		name 'Mic Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.18 {
		iface CARD
		name 'Headphone Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.19 {
		iface CARD
		name 'Speaker Phantom Jack'
		value true
		comment {
			access read
			type BOOLEAN
			count 1
		}
	}
	control.20 {
		iface MIXER
		name 'Beep Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write'
			type INTEGER
			count 2
			range '0 - 31'
			dbmin -3450
			dbmax 1200
			dbvalue.0 -3450
			dbvalue.1 -3450
		}
	}
	control.21 {
		iface MIXER
		name 'Beep Playback Switch'
		value.0 false
		value.1 false
		comment {
			access 'read write'
			type BOOLEAN
			count 2
		}
	}
	control.22 {
		iface MIXER
		name 'PCM Playback Volume'
		value.0 0
		value.1 0
		comment {
			access 'read write user'
			type INTEGER
			count 2
			range '0 - 255'
			tlv '0000000100000008ffffec1400000014'
			dbmin -5100
			dbmax 0
			dbvalue.0 -5100
			dbvalue.1 -5100
		}
	}
}

--endcollapse--

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

Module
arc4
brcmsmac
cordic
brcmutil
b43
mac80211
cfg80211
joydev
acer_wmi
sparse_keymap
ssb
kvm
uvcvideo
videobuf2_vmalloc
videobuf2_memops
videobuf2_core
microcode
videodev
psmouse
serio_raw
snd_hda_codec_realtek
parport_pc
ppdev
snd_hda_intel
k10temp
snd_hda_codec
i2c_piix4
snd_hwdep
bnep
rfcomm
bluetooth
snd_pcm
wmi
snd_page_alloc
snd_seq_midi
snd_seq_midi_event
snd_rawmidi
video
snd_seq
snd_seq_device
snd_timer
snd
binfmt_misc
mac_hid
bcma
soundcore
lp
parport
ahci
libahci
ohci_pci
r8169
mii

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

/sys/class/sound/hwC0D0/init_pin_configs:
0x03 0x18560010

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D0/hints:

/sys/class/sound/hwC1D0/init_pin_configs:
0x12 0x411111f0
0x14 0x90170110
0x17 0x411111f0
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x90a70920
0x1d 0x4017992d
0x1e 0x411111f0
0x21 0x0321401f

/sys/class/sound/hwC1D0/driver_pin_configs:
0x14 0x99130110
0x19 0x01a19c20
0x1b 0x99a7012f
0x21 0x0121401f

/sys/class/sound/hwC1D0/user_pin_configs:

/sys/class/sound/hwC1D0/init_verbs:

/sys/class/sound/hwC1D0/hints:

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

[   12.904619] Request for unknown module key 'Magrathea: Glacier signing key: 67fb854805331643285fac717c3eca13bcd27a11' err -11
[   12.934419] hda-intel 0000:00:01.1: Using LPIB position fix
[   12.934926] snd_hda_intel 0000:00:01.1: irq 45 for MSI/MSI-X
[   12.939349] ppdev: user-space parallel port driver
[   12.953651] Request for unknown module key 'Magrathea: Glacier signing key: 67fb854805331643285fac717c3eca13bcd27a11' err -11
[   12.980331] hda-intel 0000:00:01.1: Enable sync_write for stable communication
[   13.023285] autoconfig: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line
--
[   13.023319]    inputs:
[   13.024262] input: HD-Audio Generic HDMI as /devices/pci0000:00/0000:00:01.1/sound/card0/input10
[   13.047906] hda-intel 0000:00:14.2: Using LPIB position fix
[   13.113364] snd_hda_intel 0000:00:14.2: irq 46 for MSI/MSI-X
[   13.143431] hda-intel 0000:00:14.2: Enable sync_write for stable communication
[   13.161091] init: avahi-cups-reload main process (467) terminated with status 1
--
[   19.376633] ieee80211 phy0: registered radio enabled led device: brcmsmac-phy0:radio gpio: 243
[   19.920196] hda_codec: rates == 0 (nid=0x2, val=0x0, ovrd=1)
[   19.920212] hda_codec: cannot attach PCM stream 0 for codec #0
[   21.201741] type=1400 audit(1383971659.219:7): apparmor="STATUS" operation="profile_load" name="/usr/lib/lightdm/lightdm/lightdm-guest-session-wrapper" pid=1158 comm="apparmor_parser"
--
[   22.841535] type=1400 audit(1383971660.859:13): apparmor="STATUS" operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-script" pid=1203 comm="apparmor_parser"
[   22.940626] hda-codec: out of range cmd 0:20:400:ffffffff
[   22.953083] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
--
[   24.968914] IPv6: ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
[   25.961020] hda-codec: out of range cmd 0:20:400:ffffffff
[   26.014218] brcmsmac bcma0:0: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
--
[   28.872890] type=1400 audit(1383971666.887:20): apparmor="STATUS" operation="profile_load" name="/usr/lib/telepathy/telepathy-ofono" pid=1209 comm="apparmor_parser"
[   28.977442] hda-codec: out of range cmd 0:20:400:ffffffff
[   30.839285] type=1400 audit(1383971668.855:21): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=1355 comm="apparmor_parser"
--
[   31.674152] type=1400 audit(1383971669.691:24): apparmor="STATUS" operation="profile_load" name="/usr/sbin/mysqld" pid=1361 comm="apparmor_parser"
[   31.997829] hda-codec: out of range cmd 0:20:400:ffffffff
[   32.480075] type=1400 audit(1383971670.495:25): apparmor="STATUS" operation="profile_load" name="/usr/sbin/tcpdump" pid=1363 comm="apparmor_parser"
--
[   57.577932] init: plymouth-stop pre-start process (2080) terminated with status 1
[  139.549955] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:14.2/sound/card1/input19
[  139.550275] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:14.2/sound/card1/input18
#5 lore raw

At Fri, 08 Nov 2013 20:41:34 -0800,

Quoted 144 lines · Joe Perches

(dropping lkml from cc's)

Quoted 15 lines · Takashi Iwai

At Thu, 07 Nov 2013 12:28:18 -0800,

Quoted 13 lines · Joe Perches
Quoted 12 lines · Takashi Iwai

At Thu, 07 Nov 2013 11:55:15 -0800,

Quoted 7 lines · Joe Perches

dmesg here has a 100+ consecutive lines of:

[ 1464.219446] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219451] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500
[ 1464.219454] hda-intel 0000:00:14.2: spurious response 0x0:0x0, last cmd=0x170500

...
Ratelimit the message to reduce the dmesg log noise. Coalesce the format while at it.

Thanks, applied.
BTW, which hardware shows this problem?
I'm interested rather in that...

Quoted 6 lines
Quoted 4 lines

It's a little Acer netbook AO725

# lspci -v -v -s0:14.2
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
	Subsystem: Acer Incorporated [ALI] Device 0740

Could you give alsa-info.sh output (maybe better to get it after applying your patch)? It'll show more comprehensive information.

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

!!Script ran on: Sat Nov 9 04:36:16 UTC 2013

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

Ubuntu 13.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 13.10" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 13.10" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

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

Manufacturer:      Acer
Product Name:      AO725
Product Version:   V2.12
Firmware Version:  V2.12

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

Kernel release:    3.12.0
Operating System:  GNU/Linux
Architecture:      i686
Processor:         athlon
SMP Enabled:       Yes

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

Driver version:     k3.12.0
Library version:    1.0.27.2
Utilities version:  1.0.27.1

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

snd_hda_intel

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

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

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

0 [Generic ]: HDA-Intel - HD-Audio Generic

                      HD-Audio Generic at 0xf0244000 irq 45

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

00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)

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

00:01.1 0403: 1002:1314

	Subsystem: 1025:0740
--
00:14.2 0403: 1022:780d (rev 01)
	Subsystem: 1025:0740

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

snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_usb_audio: index=-2
snd_usb_caiaq: index=-2
snd_usb_ua101: index=-2
snd_usb_us122l: index=-2
snd_usb_usx2y: index=-2
snd_cmipci: mpu_port=0x330 fm_port=0x388
snd_pcsp: index=-2
snd_usb_audio: index=-2

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

!!Module: snd_hda_intel

	align_buffer_size : -1
	bdl_pos_adj : 32,32,-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 : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
	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
	jackpoll_ms : 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
	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 : -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
	power_save : 1
	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
Quoted 5 lines

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

Codec: ATI ID aa01

You didn't enable CONFIG_SND_HDA_CODEC_HDMI, right? Build with it, at least.

Quoted 35 lines

Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x1002aa01
Subsystem Id: 0x00aa0100
Revision Id: 0x100200
No Modem Function Group found
Default PCM:

    rates [0x70]: 32000 44100 48000
    bits [0x2]: 16
    formats [0x1]: PCM

Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D3
Power: setting=D0, actual=D0
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x201: Stereo Digital
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
Device: name="ID aa01 Digital", type="HDMI", device=3
Converter: stream=0, channel=0
Digital: Enabled
Digital category: 0x0
IEC Coding Type: 0x0
Node 0x03 [Pin Complex] wcaps 0x400381: Stereo Digital
Control: name="HDMI Jack", index=0, device=0 Pincap 0x00000094: OUT Detect HDMI
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x40: OUT
Unsolicited: tag=01, enabled=1
Connection: 1

Quoted 2 lines
     0x02

--endcollapse--

Hrm, the codec proc for the analog audio isn't seen here. Maybe the codec communication was already screwed up at this point.

Can you have a good output by any chance (showing the right contents of /proc/asound/card1/codec#*)?

Takashi

#6 lore raw
Quoted 2 lines · Takashi Iwai

At Fri, 08 Nov 2013 20:41:34 -0800,
Joe Perches wrote:

[]

Quoted 7 lines
Quoted 5 lines

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

Codec: ATI ID aa01

You didn't enable CONFIG_SND_HDA_CODEC_HDMI, right?

No, it's enabled.

Quoted 1 line

Build with it, at least.

$ grep CONFIG_SND_HDA_CODEC_HDMI /boot/config-3.12.0 
CONFIG_SND_HDA_CODEC_HDMI=y
Quoted 5 lines

Hrm, the codec proc for the analog audio isn't seen here. Maybe the codec communication was already screwed up at this point.

Can you have a good output by any chance (showing the right contents of /proc/asound/card1/codec#*)?

Using the linux version I've normally used:

$ cat /proc/version
Linux version 3.11.0-031100rc2-generic (apw@gomeisa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201307211535 SMP Sun Jul 21 19:45:33 UTC 201
$ cat /proc/asound/card1/codec#0 
Codec: Realtek ALC271X
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0269
Subsystem Id: 0x10250740
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  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
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC271X Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, 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
Node 0x03 [Audio Output] wcaps 0x1d: 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=0x57, nsteps=0x57, stepsize=0x02, 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
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC271X Analog", type="Audio", device=0
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x13 0x13]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x8b 0x8b]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Internal Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Internal Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=1, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d
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 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [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
     0x02 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, 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:
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    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]
  Pincap 0x00010014: OUT EAPD Detect
  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
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c 0x0d*
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Pin Complex] wcaps 0x40010c: 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:
  Connection: 1
     0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00001734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x0d
Node 0x19 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000003c: IN OUT HP Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Internal Mic Phantom Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x03 0x03]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00000034: IN OUT Detect
  Pin Default 0x90a70920: [Fixed] Mic at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x4017992d: [N/A] Speaker at Ext N/A
    Conn = Analog, Color = Pink
    DefAssociation = 0x2, Sequence = 0xd
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=25
Node 0x21 [Pin Complex] wcaps 0x40018d: 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 0x0000001c: OUT HP Detect
  Pin Default 0x0321401f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Green
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Connection: 2
     0x0c* 0x0d
Node 0x22 [Audio Selector] wcaps 0x30010b: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Connection: 7
     0x18* 0x19 0x1a 0x1b 0x1d 0x0b 0x12
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] [0x00 0x00] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1d 0x0b
#7 lore raw

At Thu, 14 Nov 2013 09:52:34 -0800,

Quoted 11 lines · Joe Perches
Quoted 2 lines · Takashi Iwai

At Fri, 08 Nov 2013 20:41:34 -0800,
Joe Perches wrote:

[]

Quoted 6 lines
Quoted 5 lines

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

Codec: ATI ID aa01

Quoted 8 lines
Quoted 1 line

You didn't enable CONFIG_SND_HDA_CODEC_HDMI, right?

No, it's enabled.

Quoted 1 line

Build with it, at least.

$ grep CONFIG_SND_HDA_CODEC_HDMI /boot/config-3.12.0 
CONFIG_SND_HDA_CODEC_HDMI=y

Weird. Try to build all sound drivers as modules and see whether the ID string of HDMI codec is still shown like that or a proper name like "ATI R6xx HDMI".

If this works, could you try the patch below and see whether it works better now with built-in kernel?

Takashi

---

sound/pci/hda/hda_codec.c +2 -0
index afb90f48867f..80736e5af548 100644
@@ -976,6 +976,7 @@ find_codec_preset(struct hda_codec *codec)
 	mutex_unlock(&preset_mutex);
 
 	if (mod_requested < HDA_MODREQ_MAX_COUNT) {
+#ifdef CONFIG_SND_HDA_INTEL_MODULE
 		char name[32];
 		if (!mod_requested)
 			snprintf(name, sizeof(name), "snd-hda-codec-id:%08x",
@@ -986,6 +987,7 @@ find_codec_preset(struct hda_codec *codec)
 		request_module(name);
 		mod_requested++;
 		goto again;
+#endif /* CONFIG_SND_HDA_INTEL_MODULE */
 	}
 	return NULL;
 }
#8 lore raw
In reply to Joe Perches

At Thu, 14 Nov 2013 09:52:34 -0800,

Quoted 7 lines · Joe Perches
Quoted 6 lines

Hrm, the codec proc for the analog audio isn't seen here. Maybe the codec communication was already screwed up at this point.

Can you have a good output by any chance (showing the right contents of /proc/asound/card1/codec#*)?

Quoted 7 lines

Using the linux version I've normally used:

$ cat /proc/version
Linux version 3.11.0-031100rc2-generic (apw@gomeisa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201307211535 SMP Sun Jul 21 19:45:33 UTC 201
$ cat /proc/asound/card1/codec#0 
Codec: Realtek ALC271X

So this codec was detected properly. Judging from your patch description, the verb triggering the stall (0x170500) was about the power up to D0 for AFG node. Did the sound work even after the flood of the messages?

The problem might be also not a stall but a bogus CORB/RIRB pointer. Try the first patch, and give the first "spurious response" message. Now it shows rp and wp values, and we might see a pattern in them to trigger the spurious message (e.g. wp is always same value).

Also, to be sure, try the second patch, too. It disables the access to some vendor-specific verbs.

Takashi

---

sound/pci/hda/hda_intel.c +2 -2
index 7a09404579a7..7f39e71cb705 100644
@@ -915,10 +915,10 @@ static void azx_update_rirb(struct azx *chip)
 			smp_wmb();
 			chip->rirb.cmds[addr]--;
 		} else if (printk_ratelimit()) {
-			snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, last cmd=%#08x\n",
+			snd_printk(KERN_ERR SFX "%s: spurious response %#x:%#x, last cmd=%#08x, rp=0x%x, wp=0x%x\n",
 				   pci_name(chip->pci),
 				   res, res_ex,
-				   chip->last_cmd[addr]);
+				   chip->last_cmd[addr], rp, wp);
 		}
 	}
 }
sound/pci/hda/patch_realtek.c +6 -0
index 04d1e6be600e..87e32624522e 100644
@@ -4340,8 +4340,10 @@ static int patch_alc269(struct hda_codec *codec)
 		}
 		if (err < 0)
 			goto error;
+#if 0
 		spec->init_hook = alc269_fill_coef;
 		alc269_fill_coef(codec);
+#endif
 		break;
 
 	case 0x10ec0280:
@@ -4373,10 +4375,12 @@ static int patch_alc269(struct hda_codec *codec)
 		break;
 	}
 
+#if 0
 	if (snd_hda_codec_read(codec, 0x51, 0, AC_VERB_PARAMETERS, 0) == 0x10ec5505) {
 		spec->has_alc5505_dsp = true;
 		spec->init_hook = alc5505_dsp_init;
 	}
+#endif
 
 	/* automatic parse from the BIOS config */
 	err = alc269_parse_auto_config(codec);
@@ -4387,12 +4391,14 @@ static int patch_alc269(struct hda_codec *codec)
 		set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT);
 
 	codec->patch_ops = alc_patch_ops;
+#if 0
 #ifdef CONFIG_PM
 	codec->patch_ops.suspend = alc269_suspend;
 	codec->patch_ops.resume = alc269_resume;
 #endif
 	if (!spec->shutup)
 		spec->shutup = alc269_shutup;
+#endif
 
 	snd_hda_apply_fixup(codec, HDA_FIXUP_ACT_PROBE);
 
#9 lore raw
Quoted 22 lines · Takashi Iwai

At Thu, 14 Nov 2013 09:52:34 -0800,

Quoted 7 lines · Joe Perches
Quoted 6 lines

Hrm, the codec proc for the analog audio isn't seen here. Maybe the codec communication was already screwed up at this point.

Can you have a good output by any chance (showing the right contents of /proc/asound/card1/codec#*)?

Quoted 7 lines

Using the linux version I've normally used:

$ cat /proc/version
Linux version 3.11.0-031100rc2-generic (apw@gomeisa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201307211535 SMP Sun Jul 21 19:45:33 UTC 201
$ cat /proc/asound/card1/codec#0 
Codec: Realtek ALC271X

So this codec was detected properly. Judging from your patch description, the verb triggering the stall (0x170500) was about the power up to D0 for AFG node. Did the sound work even after the flood of the messages?

Quoted 7 lines

The problem might be also not a stall but a bogus CORB/RIRB pointer. Try the first patch, and give the first "spurious response" message. Now it shows rp and wp values, and we might see a pattern in them to trigger the spurious message (e.g. wp is always same value).

Also, to be sure, try the second patch, too. It disables the access to some vendor-specific verbs.

Hi again.

I'm not ignoring you.
I've rebuilt the kernel with these patches and I'm waiting for the messages to show up again.

The only times I've seen them have been after hibernating and resuming.

I've done several hibernate/restart cycles but haven't had the messages emitted in the logs yet.

cheers, Joe

#10 lore raw

At Tue, 19 Nov 2013 00:40:07 -0800,

Quoted 32 lines · Joe Perches
Quoted 22 lines · Takashi Iwai

At Thu, 14 Nov 2013 09:52:34 -0800,

Quoted 7 lines · Joe Perches
Quoted 6 lines

Hrm, the codec proc for the analog audio isn't seen here. Maybe the codec communication was already screwed up at this point.

Can you have a good output by any chance (showing the right contents of /proc/asound/card1/codec#*)?

Quoted 7 lines

Using the linux version I've normally used:

$ cat /proc/version
Linux version 3.11.0-031100rc2-generic (apw@gomeisa) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201307211535 SMP Sun Jul 21 19:45:33 UTC 201
$ cat /proc/asound/card1/codec#0 
Codec: Realtek ALC271X

So this codec was detected properly. Judging from your patch description, the verb triggering the stall (0x170500) was about the power up to D0 for AFG node. Did the sound work even after the flood of the messages?

Quoted 7 lines

The problem might be also not a stall but a bogus CORB/RIRB pointer. Try the first patch, and give the first "spurious response" message. Now it shows rp and wp values, and we might see a pattern in them to trigger the spurious message (e.g. wp is always same value).

Also, to be sure, try the second patch, too. It disables the access to some vendor-specific verbs.

Quoted 8 lines

Hi again.

I'm not ignoring you.
I've rebuilt the kernel with these patches and I'm waiting for the messages to show up again.

The only times I've seen them have been after hibernating and resuming.

Ah, that's an important piece.

Quoted 2 lines

I've done several hibernate/restart cycles but haven't had the messages emitted in the logs yet.

OK, let me know if you still hit the issue.

thanks,

Takashi