GPF in snd_hda_intel
Hello,
with current git kernel (bd381934) I see a GPF when the snd_hda_intel driver is loaded; the regression is recent, 0eca52a works fine.
The machine is an ASUS laptop (F3Sa), this is the sound card:
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
The codec is ALC660-VD (snd_hda_codec_realtek). The is the GFP message:
general protection fault: 0000 [#1] PREEMPT SMP last sysfs file: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0/ CPU 0 Modules linked in: arc4 snd_hda_codec_realtek ecb iwlagn snd_hda_intel(+) usbhid hid btusb snd_hda_codec iwlcore snd_hwdep bluetooth snd_pcm rtc_cmos rtc_core asus_laptop snd_seq snd_timer snd_seq_device snd psmouse mac80211 rtc_lib video soundcore cfg80211 evdev output snd_page_alloc rfkill battery button pcspkr ac processor ext4 mbcache jbd2 crc16 dm_mod sg sr_mod cdrom sd_mod ahci uhci_hcd ata_piix ohci1394 sdhci_pci sdhci mmc_core led_class ieee1394 libata ehci_hcd scsi_mod usbcore intel_agp thermal fan unix [last unloaded: scsi_wait_scan] Pid: 1027, comm: modprobe Not tainted 2.6.32-rc3-00337-gbd38193 #160 F3Sa RIP: 0010:[<ffffffffa033aebd>] [<ffffffffa033aebd>] snd_hda_sequence_write+0x27/0x34 [snd_hda_codec] RSP: 0018:ffff88013e0afbe8 EFLAGS: 00010207 RAX: 0000000000000000 RBX: 36434c4100000006 RCX: 000000000000009a RDX: ffff88013e0afb28 RSI: 36434c4100000006 RDI: ffff88013e259000 RBP: ffff88013e0afbf8 R08: 000000000000005e R09: ffff88013e0af9d8 R10: 0000000000000000 R11: 000000000000d2d0 R12: ffff88013e259000 R13: ffff88013e259000 R14: ffff88013d12c800 R15: ffff88013e0afd08 FS: 00007f423f9086f0(0000) GS:ffff880028200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 000000000061d468 CR3: 000000013e568000 CR4: 00000000000006f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process modprobe (pid: 1027, threadinfo ffff88013e0ae000, task ffff88013ddbc290) Stack: 0000000000000006 ffff88013d12c830 ffff88013e0afc28 ffffffffa03bc117 <0> ffff88013e259000 0000000000000002 ffff88013dd68258 ffff88013de4f600 <0> ffff88013e0afc48 ffffffffa033aef5 ffff88013dd68258 ffff88013e259000 Call Trace: [<ffffffffa03bc117>] alc_init+0x2f8/0x31e [snd_hda_codec_realtek] [<ffffffffa033aef5>] snd_hda_codec_build_controls+0x2b/0x4c [snd_hda_codec] [<ffffffffa033c8ca>] snd_hda_build_controls+0x23/0x7f [snd_hda_codec] [<ffffffffa03899a0>] azx_probe+0x9d9/0xa97 [snd_hda_intel] [<ffffffffa0388e10>] ? azx_send_cmd+0x0/0x174 [snd_hda_intel] [<ffffffffa0388c19>] ? azx_get_response+0x0/0x1f7 [snd_hda_intel] [<ffffffffa0388276>] ? azx_attach_pcm_stream+0x0/0x209 [snd_hda_intel] [<ffffffffa0387ec4>] ? azx_bus_reset+0x0/0x79 [snd_hda_intel] [<ffffffffa0387d28>] ? azx_power_notify+0x0/0x5d [snd_hda_intel] [<ffffffff811829f3>] local_pci_probe+0x12/0x16 [<ffffffff811836b9>] pci_device_probe+0x5f/0x89 [<ffffffff81207f68>] ? driver_sysfs_add+0x4c/0x72 [<ffffffff812080b4>] driver_probe_device+0xad/0x15f [<ffffffff812081be>] __driver_attach+0x58/0x7b [<ffffffff81208166>] ? __driver_attach+0x0/0x7b [<ffffffff81207893>] bus_for_each_dev+0x4e/0x84 [<ffffffff81207f1a>] driver_attach+0x1c/0x1e [<ffffffff81207205>] bus_add_driver+0x126/0x26f [<ffffffff812084b2>] driver_register+0xb3/0x121 [<ffffffffa038f000>] ? alsa_card_azx_init+0x0/0x20 [snd_hda_intel] [<ffffffff811838fe>] __pci_register_driver+0x51/0xbc [<ffffffffa038f000>] ? alsa_card_azx_init+0x0/0x20 [snd_hda_intel] [<ffffffffa038f01e>] alsa_card_azx_init+0x1e/0x20 [snd_hda_intel] [<ffffffff81009060>] do_one_initcall+0x5a/0x14a [<ffffffff8107270a>] sys_init_module+0xd0/0x229 [<ffffffff8100baeb>] system_call_fastpath+0x16/0x1b Code: 31 c0 c9 c3 55 48 89 e5 41 54 49 89 fc 53 48 89 f3 eb 18 8b 4b 04 44 8b 43 08 0f b7 f0 31 d2 4c 89 e7 48 83 c3 0c e8 ce f4 ff ff <66> 8b 03 66 85 c0 75 e0 5b 41 5c c9 c3 55 48 89 e5 53 48 89 fb RIP [<ffffffffa033aebd>] snd_hda_sequence_write+0x27/0x34 [snd_hda_codec] RSP <ffff88013e0afbe8> ---[ end trace 91ec1e9b500145fa ]---
The disassembly:
1e96: 55 push %rbp 1e97: 48 89 e5 mov %rsp,%rbp 1e9a: 41 54 push %r12 1e9c: 49 89 fc mov %rdi,%r12 1e9f: 53 push %rbx 1ea0: 48 89 f3 mov %rsi,%rbx 1ea3: eb 18 jmp 1ebd <snd_hda_sequence_write+0x27> 1ea5: 8b 4b 04 mov 0x4(%rbx),%ecx 1ea8: 44 8b 43 08 mov 0x8(%rbx),%r8d 1eac: 0f b7 f0 movzwl %ax,%esi 1eaf: 31 d2 xor %edx,%edx 1eb1: 4c 89 e7 mov %r12,%rdi 1eb4: 48 83 c3 0c add $0xc,%rbx 1eb8: e8 00 00 00 00 callq 1ebd <snd_hda_sequence_write+0x27> 1ebd: 66 8b 03 mov (%rbx),%ax <-- fault here 1ec0: 66 85 c0 test %ax,%ax 1ec3: 75 e0 jne 1ea5 <snd_hda_sequence_write+0xf> 1ec5: 5b pop %rbx 1ec6: 41 5c pop %r12 1ec8: c9 leaveq 1ec9: c3 retq
Luca
At Sat, 10 Oct 2009 15:01:10 +0200,
Quoted 5 lines · Luca Tettamanti
Hello,
with current git kernel (bd381934) I see a GPF when thesnd_hda_inteldriver is loaded; the regression is recent, 0eca52a works fine.
The machine is an ASUS laptop (F3Sa), this is the sound card:
Could you load the snd-hda-intel module with probe_only=1 option, and give the output of "alsa-info.sh --no-upload" ?
If 0eca52a worked, there are only a few changes regarding hda-intel.
defb5ab2e0ff08ff9a942e2bb7e14c21a55ec26b
ALSA: hda - Fix yet another auto-mic bug in ALC26801d4825df62d1d405035b90294bf38616d3f380b
ALSA: hda - Don't pick up invalid HP pins in alc_subsystem_id()f8f25ba3563dab14b1c3ea4d829642b8a61ca5d7
ALSA: hda - Add a workaround for ASUS A7K15870f05e90a365f8022da416e713be0c5024e2f
ALSA: hda - Fix invalid initializations for ALC861 auto mode
The possible culprit is the third one, f8f25ba3563dab1. Could you try to revert this commit?
thanks,
Takashi
Quoted 8 lines · Takashi Iwai
At Sat, 10 Oct 2009 15:01:10 +0200,
Quoted 5 lines · Luca Tettamanti
Hello,
with current git kernel (bd381934) I see a GPF when thesnd_hda_inteldriver is loaded; the regression is recent, 0eca52a works fine.
The machine is an ASUS laptop (F3Sa), this is the sound card:
Quoted 7 lines
Could you load the snd-hda-intel module with probe_only=1 option, and give the output of "
alsa-info.sh--no-upload" ?If 0eca52a worked, there are only a few changes regarding hda-intel.
f8f25ba3563dab14b1c3ea4d829642b8a61ca5d7
ALSA: hda - Add a workaround for ASUS A7K
This is probably related; I haven't actually tested yet, but I have one more information: I had "model=lenovo" in modprobe configuration. This was necessary because otherwise the driver applied the quirk for Asus G1, resulting in no sound (see bug
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3513).
The driver works fine without "model" parameter (possibly due to the removal of the quirk entry for the the G1); I get a warning about a timeout when MSI is not enabled though:
HDA Intel 0000:00:1b.0: PCI INT A disabled
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: setting latency timer to 64hda_codec: ALC660-VD: BIOS auto-probing.
input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input9
hda-intel: azx_get_response timeout, switching to polling mode: last cmd=0x018f0900
Will do a compile test ASAP.
Luca
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.58
!!################################
!!Script ran on: Mon Oct 12 13:23:26 UTC 2009
!!Linux Distribution
!!------------------
Debian GNU/Linux squeeze/sid \n \l
!!DMI Information
!!---------------
Manufacturer: ASUSTeK Computer Inc. Product Name: F3Sa
!!Kernel Information
!!------------------
Kernel release: 2.6.32-rc3-00337-gbd38193 Operating System: GNU/Linux Architecture: x86_64 Processor: unknown SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version: 1.0.21 Library version: 1.0.21a Utilities version: 1.0.21
!!Loaded ALSA modules
!!-------------------
snd_hda_intel
!!Sound Servers on this system
!!----------------------------
No sound servers found.
!!Soundcards recognised by ALSA
!!-----------------------------
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfebf8000 irq 22
!!PCI Soundcards installed in the system
!!--------------------------------------
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------
00:1b.0 0403: 8086:284b (rev 03)
Subsystem: 1043:1339
!!Modprobe options (Sound related)
!!--------------------------------
snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2
snd-hda-intel: enable_msi=1 model=lenovo
!!Loaded sound module options
!!--------------------------
!!Module: snd_hda_intel
bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1 enable : Y,Y,Y,Y,Y,Y,Y,Y enable_msi : 0 id : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> index : -1,-1,-1,-1,-1,-1,-1,-1 model : <NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL>,<NULL> position_fix : 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 probe_only : Y,N,N,N,N,N,N,N single_cmd : N
!!HDA-Intel Codec information
!!---------------------------
--startcollapse--
Codec: Not Set
Address: 0
Function Id: 0x1
Vendor Id: 0x10ec0660
Subsystem Id: 0x10431339
Revision Id: 0x100001
No Modem Function Group found
Default PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
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
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x04 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x05 [Audio Output] wcaps 0x1d: Stereo Amp-Out
Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x40 0x40]
Converter: stream=0, channel=0
PCM:
rates [0x160]: 44100 48000 96000
bits [0xe]: 16 20 24
formats [0x1]: PCMNode 0x06 [Audio Output] wcaps 0x211: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCMNode 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
Amp-In caps: ofs=0x09, nsteps=0x1f, stepsize=0x05, mute=1 Amp-In vals: [0x89 0x89]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
Connection: 1
0x22Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
Amp-In vals: [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 6
0x18 0x19 0x1a 0x1b 0x1c 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] [0x80 0x80]
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] [0x80 0x80]
Connection: 2
0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Connection: 2
0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-In vals: [0x00 0x00] [0x80 0x80]
Connection: 2
0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x0001003c: IN OUT HP EAPD Detect
EAPD 0x0:
Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0c
Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00010034: IN OUT EAPD Detect
EAPD 0x0:
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: 1
0x0d
Node 0x16 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN 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: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0e
Node 0x17 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN 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: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: 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 0x00001734: IN OUT Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x01a1183f: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0x3, Sequence = 0xf
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 1
0x0e
Node 0x19 [Pin Complex] wcaps 0x40018f: 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 0x0000173c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x99a30130: [Fixed] Mic at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x3, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0f
Node 0x1a [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1 Amp-Out vals: [0x80 0x80]
Pincap 0x00000034: IN 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: 0x20: IN
Unsolicited: tag=00, enabled=0
Connection: 1
0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: 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 0x0000173c: IN OUT HP Detect
Vref caps: HIZ 50 GRD 80
Pin Default 0x0121101f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
Pin-ctls: 0x20: IN VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 2
0x0c* 0x0f
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
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: 0x20: IN
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
Pincap 0x00000020: IN
Pin Default 0x598301f0: [N/A] Line In at Int ATAPI
Conn = ATAPI, Color = Unknown DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
Pincap 0x00000010: OUT
Pin Default 0x99430120: [Fixed] SPDIF Out at Int ATAPI
Conn = ATAPI, Color = Unknown DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Connection: 1
0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=17
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [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] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Connection: 11
0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x25 [Vendor Defined Widget] wcaps 0xf00000: Mono Node 0x26 [Vendor Defined Widget] wcaps 0xf00000: Mono
Codec: Not Set
Address: 1
Function Id: 0x2
Vendor Id: 0x10573055
Subsystem Id: 0x10431316
Revision Id: 0x100700
Modem Function Group: 0x1
--endcollapse--
!!ALSA Device nodes
!!-----------------
crw-rw----+ 1 root audio 116, 0 Oct 12 15:20 /dev/snd/controlC0 crw-rw----+ 1 root audio 116, 4 Oct 12 15:20 /dev/snd/hwC0D0 crw-rw----+ 1 root audio 116, 5 Oct 12 15:20 /dev/snd/hwC0D1 crw-rw----+ 1 root audio 116, 1 Oct 12 15:19 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Oct 12 15:19 /dev/snd/timer
/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Oct 12 15:20 .
drwxr-xr-x 3 root root 160 Oct 12 15:20 ..
lrwxrwxrwx 1 root root 12 Oct 12 15:20 pci-0000:00:1b.0 -> ../controlC0
!!Aplay/Arecord output
!!------------
APLAY
**** List of PLAYBACK Hardware Devices ****
ARECORD
**** List of CAPTURE Hardware Devices ****
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [Intel]
Card hw:0 'Intel'/'HDA Intel at 0xfebf8000 irq 22'
Mixer name : ''
Components : 'HDA:10ec0660,10431339,00100001 HDA:10573055,10431316,00100700'
Controls : 0
Simple ctrls : 0
!!Alsactl output
!!-------------
--startcollapse--
state.Intel {
control {
}
}--endcollapse--
!!All Loaded Modules
!!------------------
Moduleaf_packetsnd_hda_codec_realteksnd_hda_intel
bridge
stp
llc
bnep
sco
rfcomm
l2cap
ipv6acpi_cpufreqcpufreq_userspacecpufreq_statscpufreq_conservativebinfmt_misccpufreq_powersavecpufreq_ondemandfreq_tablekvm_intel
kvm
deflatezlib_deflatetwofish_x86_64twofish_commonaes_x86_64aes_generic
blowfishdes_generic
cbcsha256_genericsha1_genericaf_key
ext3
jbd
coretemp
hwmon
microcode
loop
btusb
usbhidsnd_hda_codec
bluetoothsnd_hwdep
hidsnd_pcmsnd_seqsnd_timersnd_seq_device
arc4
snd
soundcore
ecb
iwlagn
iwlcore
psmouse
mac80211
cfg80211rtc_cmos
video
pcspkrsnd_page_allocrtc_core
rfkill
button
evdev
outputasus_laptoprtc_lib
ac
battery
processor
ext4
mbcache
jbd2
crc16dm_mod
sgsr_mod
cdromsd_modata_piixuhci_hcdsdhci_pci
sdhci
ohci1394
ahci
libata
ieee1394mmc_coreled_classscsi_modehci_hcd
usbcoreintel_agp
thermal
fan
unix
!!ALSA/HDA dmesg
!!------------------
[ 19.887833] Bluetooth: BNEP filters: protocol multicast [ 51.586561] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 [ 51.586773] HDA Intel 0000:00:1b.0: setting latency timer to 64 [ 125.413724] iwlagn 0000:03:00.0: firmware: requesting iwlwifi-4965-2.ucode
At Mon, 12 Oct 2009 21:39:21 +0200,
Quoted 13 lines · Luca Tettamanti
Quoted 11 lines · Takashi Iwai
At Sat, 10 Oct 2009 15:01:10 +0200,
Quoted 5 lines · Luca Tettamanti
Hello,
with current git kernel (bd381934) I see a GPF when thesnd_hda_inteldriver is loaded; the regression is recent, 0eca52a works fine.
The machine is an ASUS laptop (F3Sa), this is the sound card:Could you load the snd-hda-intel module with probe_only=1 option, and give the output of "
alsa-info.sh--no-upload" ?
Quoted 7 lines
Quoted 4 lines
If 0eca52a worked, there are only a few changes regarding hda-intel.
f8f25ba3563dab14b1c3ea4d829642b8a61ca5d7
ALSA: hda - Add a workaround for ASUS A7KThis is probably related; I haven't actually tested yet, but I have one more information: I had "model=lenovo" in modprobe configuration.
Ah, this is it. I can reproduce the problem with my emulator now. The patch below fixes the issue.
Quoted 7 lines
This was necessary because otherwise the driver applied the quirk for Asus G1, resulting in no sound (see bug
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3513).
The driver works fine without "model" parameter (possibly due to the removal of the quirk entry for the the G1); I get a warning about a timeout when MSI is not enabled though:
Quoted 7 lines
HDA Intel 0000:00:1b.0: PCI INT A disabled
HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22 HDA Intel 0000:00:1b.0: setting latency timer to 64hda_codec: ALC660-VD: BIOS auto-probing.
input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input9
hda-intel:azx_get_responsetimeout, switching to polling mode: last cmd=0x018f0900
It's no critical error, but if enable_msi=1 helps, just keep the option. In 2.6.33, MSI will be enabled as default.
thanks,
Takashi
---
From 2d9c648295d7bc376305337d29f540a5e411f632 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Tue, 13 Oct 2009 08:06:55 +0200
Subject: [PATCH] ALSA: hda - Fix overflow of spec->init_verbs in patch_realtek.c
ALC861-VD lenovo model causes overflow of spec->init_verbs entries due to the recent changes. Simply increase the array size to avoid the overflow.
--- sound/pci/hda/patch_realtek.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/pci/hda/patch_realtek.c +1 -1
@@ -275,7 +275,7 @@ struct alc_spec {struct snd_kcontrol_new *cap_mixer;/* capture mixer */ unsigned int beep_amp;/* beep amp value, set via set_beep_amp() */ -const struct hda_verb *init_verbs[5 ];/* initialization verbs +const struct hda_verb *init_verbs[10 ];/* initialization verbs * don't forget NULL * termination! */
Signature · 6 lines
1.6.4.2 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Luca Tettamanti
Tested-byQuoted 17 lines · Takashi Iwai
At Mon, 12 Oct 2009 21:39:21 +0200,
Quoted 15 lines · Luca Tettamanti
Quoted 13 lines · Takashi Iwai
At Sat, 10 Oct 2009 15:01:10 +0200,
Quoted 5 lines · Luca Tettamanti
Hello,
with current git kernel (bd381934) I see a GPF when thesnd_hda_inteldriver is loaded; the regression is recent, 0eca52a works fine.
The machine is an ASUS laptop (F3Sa), this is the sound card:Could you load the snd-hda-intel module with probe_only=1 option, and give the output of "
alsa-info.sh--no-upload" ?If 0eca52a worked, there are only a few changes regarding hda-intel.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
f8f25ba3563dab14b1c3ea4d829642b8a61ca5d7
ALSA: hda - Add a workaround for ASUS A7KThis is probably related; I haven't actually tested yet, but I have one more information: I had "model=lenovo" in modprobe configuration.
Ah, this is it. I can reproduce the problem with my emulator now. The patch below fixes the issue.
Yup, no more GPF.
Quoted 10 lines
From
2d9c648295d7bc376305337d29f540a5e411f632Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Tue, 13 Oct 2009 08:06:55 +0200
Subject: [PATCH] ALSA: hda - Fix overflow ofspec->init_verbsinpatch_realtek.cALC861-VD lenovo model causes overflow of
spec->init_verbsentries due to the recent changes. Simply increase the array size to avoid the overflow.Reported-by Luca Tettamanti <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Quoted 21 lines
---
sound/pci/hda/patch_realtek.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)sound/pci/hda/patch_realtek.c +0
-0@@ -275,7 +275,7 @@ struct alc_spec {struct
snd_kcontrol_new*cap_mixer; /* capture mixer */ unsigned intbeep_amp; /* beep amp value, set viaset_beep_amp()*/- const struct
hda_verb*init_verbs[5]; /* initialization verbs
+ const structhda_verb*init_verbs[10]; /* initialization verbs
* don't forget NULL
* termination! */
--
1.6.4.2