Bug 9304
Summary: | Audigy 2 ZS Notebook prevents snd_emu10k1 module from loading/working | ||
---|---|---|---|
Product: | Drivers | Reporter: | unggnu |
Component: | Sound(ALSA) | Assignee: | James Courtier-Dutton (James) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | James, tiwai |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.24-rc1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 9243 | ||
Attachments: |
Fix #1 for emu0404
Fix #2 for emu0404 .config Kernel configuration Adds a simple printk line for diag purposes. This patch (alsa hg#5530) adds mixer control parameter limit checks. old asoundconf.state |
Description
unggnu
2007-11-04 05:24:14 UTC
There are two patches fixing emu0404 support on ALSA HG tree after 2.6.24-rc1 merge. I guess this might help. Unfortunately perex/alsa.git tree isn't updated for them... Created attachment 13397 [details]
Fix #1 for emu0404
Created attachment 13398 [details]
Fix #2 for emu0404
I extracted from HG tree. Could you try the patches above? Many thanks for your quick reply and patch. I have patched and compiled the Kernel but still have the same or a similar problem. dmesg output: Audigy2 value: Special config. Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! Writing to ADC failed! BUG: unable to handle kernel paging request at virtual address 4275212e printing eip: f8aabf30 *pde = 00000000 Oops: 0000 [#1] PREEMPT Modules linked in: snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_emu10k1 hci_usb snd_ac97_codec bluetooth ac97_bus snd_util_mem snd_hwdep snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device tifm_7xx1 ipw2200 snd sony_laptop backlight battery ac power_supply ohci1394 tifm_core uhci_hcd thermal ehci_hcd sr_mod ieee80211 ieee80211_crypt soundcore snd_page_alloc ieee1394 yenta_socket rsrc_nonstatic pcmcia_core e100 mii processor button cdrom evdev usbcore intel_agp agpgart rtc Pid: 1134, comm: alsactl Not tainted (2.6.24-rc1-git11 #22) EIP: 0060:[<f8aabf30>] EFLAGS: 00010246 CPU: 0 EIP is at snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] EAX: 00000000 EBX: c2d6c000 ECX: 00000286 EDX: 00000000 ESI: 3fcf303f EDI: 00000001 EBP: c2cd4540 ESP: c23ddd9c DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 Process alsactl (pid: 1134, ti=c23dc000 task=c21af030 task.ti=c23dc000) Stack: 00000000 c2cd4588 c2c4dc40 f89fa19f c2c4dc00 00000000 c2cd45a0 c2cfec80 c21de200 c21de34c c21de200 00000000 c21de3a0 c2c4dc00 f89fab49 c2012940 c23dde00 bf942040 c2cfec80 c2c7c012 00000000 c2cd45a8 c21de34c c23ddf30 Call Trace: [<f89fa19f>] snd_ctl_elem_write+0x10f/0x140 [snd] [<f89fab49>] snd_ctl_ioctl+0x289/0xab0 [snd] [<c015d0d7>] handle_mm_fault+0xe7/0x3f0 [<f89fa8c0>] snd_ctl_ioctl+0x0/0xab0 [snd] [<c017725b>] do_ioctl+0x2b/0x90 [<c017731c>] vfs_ioctl+0x5c/0x290 [<c0215080>] write_null+0x0/0x10 [<c017758d>] sys_ioctl+0x3d/0x70 [<c010415e>] sysenter_past_esp+0x5f/0x85 [<c02d0000>] unix_autobind+0x0/0x1b0 ======================= Code: 18 ed 85 f6 0f 85 98 00 00 00 83 c8 04 ef 51 9d 89 e0 25 00 e0 ff ff ff 48 14 8b 40 08 a8 04 0f 85 86 00 00 00 8b 93 ac 00 00 00 <0f> b6 8c 73 b0 00 00 00 0f b6 84 53 b0 00 00 00 39 c1 74 18 ba EIP: [<f8aabf30>] snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] SS:ESP 0068:c23ddd9c An interesting thing was that it was possible to remove the card and restart alsa afterwards. I think that doesn't work before but I am not sure. dmesg output: snd-emu10k1: Suspected sound card removal pccard: card ejected from slot 0 Build with CONFIG_SND_DEBUG=y and CONFIG_SND_DEBUG_DETECT=y. This will give you more verbose probe messages. It doesn't seem to have changed much so I activated CONFIG_SND_VERBOSE_PRINTK which gives some more messages: dmesg output after plugged in card: pccard: CardBus card inserted into slot 0 PCI: Enabling device 0000:07:00.0 (0000 -> 0001) ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 21 (level, low) -> IRQ 16 ALSA sound/pci/emu10k1/emu10k1_main.c:1697: vendor=0x1102, device=0x8, subsystem_vendor_id=0x20011102, subsystem_id=0x2001 ALSA sound/pci/emu10k1/emu10k1_main.c:1722: Sound card name=Audigy 2 ZS Notebook [SB0530] PCI: Setting latency timer of device 0000:07:00.0 to 64 ALSA sound/pci/emu10k1/emu10k1_main.c:220: Audigy2 value: Special config. ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! ALSA sound/pci/emu10k1/io.c:222: Writing to ADC failed! BUG: unable to handle kernel paging request at virtual address 49d6612e printing eip: f8c80f00 *pde = 00000000 Oops: 0000 [#1] PREEMPT Modules linked in: snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_emu10k1 snd_ac97_codec ac97_bus snd_util_mem snd_hwdep ieee80211_crypt_ccmp aes_i586 aes_generic lrw blkcipher gf128mul cryptomgr crypto_algapi binfmt_misc rfcomm l2cap i915 drm acpi_cpufreq cpufreq_ondemand cpufreq_performance cpufreq_stats freq_table cpufreq_powersave cpufreq_conservative fan dm_crypt dm_mod sbp2 fuse hci_usb bluetooth snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device ehci_hcd uhci_hcd ipw2200 snd tifm_7xx1 ohci1394 thermal sr_mod ac battery power_supply sony_laptop backlight ieee80211 ieee80211_crypt soundcore yenta_socket rsrc_nonstatic pcmcia_core tifm_core ieee1394 e100 mii button processor cdrom evdev usbcore intel_agp agpgart snd_page_alloc rtc Pid: 3478, comm: alsactl Not tainted (2.6.24-rc1-git11 #24) EIP: 0060:[<f8c80f00>] EFLAGS: 00010246 CPU: 0 EIP is at snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] EAX: 00000000 EBX: ca380000 ECX: 00000282 EDX: 00000000 ESI: 3fcf303f EDI: 00000001 EBP: ca174d40 ESP: cacabd90 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 Process alsactl (pid: 3478, ti=cacaa000 task=caca3a90 task.ti=cacaa000) Stack: 00000000 ca174d88 cac9e840 f89efa0f cac9e800 ca06ed60 ca174da0 ca36d7c0 ca06ec00 ca06ed4c ca06ec00 00000000 ca06eda0 cac9e800 f89f04b9 cacabf30 c0172855 cacabe18 c20128c0 cacabe00 bf9cb0c0 ca36d7c0 c2d0f012 00000000 Call Trace: [<f89efa0f>] snd_ctl_elem_write+0x10f/0x140 [snd] [<f89f04b9>] snd_ctl_ioctl+0x299/0xb70 [snd] [<c0172855>] do_lookup+0x65/0x190 [<c015d0d7>] handle_mm_fault+0xe7/0x3f0 [<f89f0220>] snd_ctl_ioctl+0x0/0xb70 [snd] [<c017725b>] do_ioctl+0x2b/0x90 [<c017731c>] vfs_ioctl+0x5c/0x290 [<c0215080>] write_null+0x0/0x10 [<c017758d>] sys_ioctl+0x3d/0x70 [<c010415e>] sysenter_past_esp+0x5f/0x85 [<c02d0000>] unix_autobind+0x0/0x1b0 ======================= Code: 18 ed 85 f6 0f 85 98 00 00 00 83 c8 04 ef 51 9d 89 e0 25 00 e0 ff ff ff 48 14 8b 40 08 a8 04 0f 85 86 00 00 00 8b 93 ac 00 00 00 <0f> b6 8c 73 b0 00 00 00 0f b6 84 53 b0 00 00 00 39 c1 74 18 ba EIP: [<f8c80f00>] snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] SS:ESP 0068:cacabd90 I do not think that this is an ALSA problem. I think this is a kernel related problem. The ALSA driver expects udelay(10) to correctly delay a certain amount of time. This is not happening, so I suspect a kernel clock issue. Seeing messages like this: Clocksource tsc unstable (delta = -213528793 ns) seem to support this point of view. Nothing has changed in ALSA that would cause this sort of problem. You could verify this by installing alsa-driver 1.0.14 and then 1.0.15 and you will probably not see any change in this bug. Created attachment 13472 [details]
.config Kernel configuration
I have added my kernel configuration.
Fix available in alsa-kernel hg repository, changeset 5521 It turns out that after plugging in the card, it gets power, but a delay of 200ms has to be added after power on, before the card can be initialised and configured. Unfortunately it still happens with changeset 5521. dmesg output from start: PCI: Enabling device 0000:07:00.0 (0000 -> 0001) ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 21 (level, low) -> IRQ 16 ALSA sound/pci/emu10k1/emu10k1_main.c:1673: vendor=0x1102, device=0x8, subsystem_vendor_id=0x20011102, subsystem_id=0x2001 ALSA sound/pci/emu10k1/emu10k1_main.c:1698: Sound card name=Audigy 2 ZS Notebook [SB0530] PCI: Setting latency timer of device 0000:07:00.0 to 64 ALSA sound/pci/emu10k1/emu10k1_main.c:218: Audigy2 value: Special config. BUG: unable to handle kernel paging request at virtual address 4288e12e printing eip: f8ae8f90 *pde = 00000000 Oops: 0000 [#1] PREEMPT Modules linked in: snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_emu10k1 snd_ac97_codec ac97_bus snd_util_mem snd_hwdep snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event ipw2200 snd_seq sr_mod tifm_7xx1 ohci1394 thermal sony_laptop backlight battery ac power_supply ieee80211 ieee80211_crypt snd_timer snd_seq_device e100 mii cdrom tifm_core yenta_socket rsrc_nonstatic pcmcia_core ieee1394 button processor ehci_hcd uhci_hcd usbcore evdev snd soundcore snd_page_alloc rtc intel_agp agpgart Pid: 1188, comm: alsactl Not tainted (2.6.24-rc2 #3) EIP: 0060:[<f8ae8f90>] EFLAGS: 00010246 CPU: 0 EIP is at snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] EAX: 00000000 EBX: c2ea8000 ECX: 00000282 EDX: 00000000 ESI: 3fcf303f EDI: 00000001 EBP: c2e39440 ESP: c23cdd90 DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 Process alsactl (pid: 1188, ti=c23cc000 task=c2116a90 task.ti=c23cc000) Stack: 00000000 c2e39488 c2c54c40 f8860a0f c2c54c00 c2391360 c2e394a0 c2e42f00 c2391200 c239134c c2391200 00000000 c23913a0 c2c54c00 f88614b9 c23cdf30 c01727d5 c23cde18 c20128c0 c23cde00 bfb63a60 c2e42f00 c2d0c012 00000000 Call Trace: [<f8860a0f>] snd_ctl_elem_write+0x10f/0x140 [snd] [<f88614b9>] snd_ctl_ioctl+0x299/0xb70 [snd] [<c01727d5>] do_lookup+0x65/0x190 [<c015d057>] handle_mm_fault+0xe7/0x3f0 [<f8861220>] snd_ctl_ioctl+0x0/0xb70 [snd] [<c01771db>] do_ioctl+0x2b/0x90 [<c017729c>] vfs_ioctl+0x5c/0x290 [<c0215060>] write_null+0x0/0x10 [<c017750d>] sys_ioctl+0x3d/0x70 [<c010415e>] sysenter_past_esp+0x5f/0x85 [<c02d0000>] xfrm_ealg_get_byname+0x0/0x20 ======================= Code: 18 ed 85 f6 0f 85 98 00 00 00 83 c8 04 ef 51 9d 89 e0 25 00 e0 ff ff ff 48 14 8b 40 08 a8 04 0f 85 86 00 00 00 8b 93 ac 00 00 00 <0f> b6 8c 73 b0 00 00 00 0f b6 84 53 b0 00 00 00 39 c1 74 18 ba EIP: [<f8ae8f90>] snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] SS:ESP 0068:c23cdd90 This appears to be a timing problem. Can you please get the kernel to timestamp the dmesg messages. Kernel Hacking -> Show timing information on printks CONFIG_PRINTK=y CONFIG_PRINTK_TIME=y [ 74.253549] pccard: CardBus card inserted into slot 0 [ 74.328954] PCI: Enabling device 0000:07:00.0 (0000 -> 0001) [ 74.329768] ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 21 (level, low) -> IRQ 16 [ 74.329794] ALSA sound/pci/emu10k1/emu10k1_main.c:1673: vendor=0x1102, device=0x8, subsystem_vendor_id=0x20011102, subsystem_id=0x2001 [ 74.329807] ALSA sound/pci/emu10k1/emu10k1_main.c:1698: Sound card name=Audigy 2 ZS Notebook [SB0530] [ 74.329905] PCI: Setting latency timer of device 0000:07:00.0 to 64 [ 74.343714] ALSA sound/pci/emu10k1/emu10k1_main.c:218: Audigy2 value: Special config. [ 74.672552] BUG: unable to handle kernel paging request at virtual address 4a27012e [ 74.672725] printing eip: f8c6ef90 *pde = 00000000 [ 74.672908] Oops: 0000 [#1] PREEMPT [ 74.673083] Modules linked in: snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_emu10k1 snd_ac97_codec ac97_bus snd_util_mem snd_hwdep binfmt_misc rfcomm l2cap i915 drm acpi_cpufreq cpufreq_ondemand cpufreq_performance cpufreq_stats freq_table cpufreq_powersave cpufreq_conservative fan usb_storage hci_usb bluetooth dm_crypt dm_mod sbp2 fuse usbhid snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device ehci_hcd uhci_hcd thermal ipw2200 ohci1394 sr_mod tifm_7xx1 sony_laptop backlight ac battery power_supply snd ieee80211 ieee80211_crypt ieee1394 button processor e100 mii cdrom tifm_core yenta_socket rsrc_nonstatic pcmcia_core evdev usbcore soundcore snd_page_alloc intel_agp agpgart rtc [ 74.677135] [ 74.677212] Pid: 3044, comm: alsactl Not tainted (2.6.24-rc2 #4) [ 74.677302] EIP: 0060:[<f8c6ef90>] EFLAGS: 00010246 CPU: 0 [ 74.677419] EIP is at snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] [ 74.677533] EAX: 00000000 EBX: ca88a000 ECX: 00000282 EDX: 00000000 [ 74.677623] ESI: 3fcf303f EDI: 00000001 EBP: c2d5f1c0 ESP: ca9b9d90 [ 74.677713] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 [ 74.677802] Process alsactl (pid: 3044, ti=ca9b8000 task=ca8e1030 task.ti=ca9b8000) [ 74.677895] Stack: 00000000 c2d5f208 ca889840 f89c3a0f ca889800 c23f9d60 c2d5f220 ca8cca80 [ 74.678445] c23f9c00 c23f9d4c c23f9c00 00000000 c23f9da0 ca889800 f89c44b9 ca9b9f30 [ 74.678993] c01727d5 ca9b9e18 c2012940 ca9b9e00 bfcca3c0 ca8cca80 c2d43012 00000000 [ 74.679542] Call Trace: [ 74.679698] [<f89c3a0f>] snd_ctl_elem_write+0x10f/0x140 [snd] [ 74.687831] [<f89c44b9>] snd_ctl_ioctl+0x299/0xb70 [snd] [ 74.687989] [<c01727d5>] do_lookup+0x65/0x190 [ 74.688218] [<c015d057>] handle_mm_fault+0xe7/0x3f0 [ 74.688365] [<f89c4220>] snd_ctl_ioctl+0x0/0xb70 [snd] [ 74.688518] [<c01771db>] do_ioctl+0x2b/0x90 [ 74.688658] [<c017729c>] vfs_ioctl+0x5c/0x290 [ 74.688791] [<c0215060>] write_null+0x0/0x10 [ 74.688932] [<c017750d>] sys_ioctl+0x3d/0x70 [ 74.689071] [<c010415e>] sysenter_past_esp+0x5f/0x85 [ 74.689217] [<c02d0000>] xfrm_ealg_get_byname+0x0/0x20 [ 74.689364] ======================= [ 74.689444] Code: 18 ed 85 f6 0f 85 98 00 00 00 83 c8 04 ef 51 9d 89 e0 25 00 e0 ff ff ff 48 14 8b 40 08 a8 04 0f 85 86 00 00 00 8b 93 ac 00 00 00 <0f> b6 8c 73 b0 00 00 00 0f b6 84 53 b0 00 00 00 39 c1 74 18 ba [ 74.692737] EIP: [<f8c6ef90>] snd_audigy_i2c_capture_source_put+0x80/0x110 [snd_emu10k1] SS:ESP 0068:ca9b9d90 Created attachment 13510 [details]
Adds a simple printk line for diag purposes.
Please try to reproduce the problem with this patch.
[ 77.762540] pccard: CardBus card inserted into slot 0 [ 77.992841] PCI: Enabling device 0000:07:00.0 (0000 -> 0001) [ 77.993280] ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 21 (level, low) -> IRQ 16 [ 77.993306] ALSA sound/pci/emu10k1/emu10k1_main.c:1673: vendor=0x1102, device=0x8, subsystem_vendor_id=0x20011102, subsystem_id=0x2001 [ 77.993319] ALSA sound/pci/emu10k1/emu10k1_main.c:1698: Sound card name=Audigy 2 ZS Notebook [SB0530] [ 77.993416] PCI: Setting latency timer of device 0000:07:00.0 to 64 [ 78.051026] ALSA sound/pci/emu10k1/emu10k1_main.c:218: Audigy2 value: Special config. [ 78.429618] ALSA sound/pci/emu10k1/emumixer.c:674: source_id=1070542911, i2c_capture_source=0 [ 78.430867] BUG: unable to handle kernel paging request at virtual address 4a1f012e [ 78.431035] printing eip: f8c6efac *pde = 00000000 [ 78.431219] Oops: 0000 [#1] PREEMPT [ 78.431395] Modules linked in: snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_emul snd_emu10k1 snd_ac97_codec ac97_bus snd_util_mem snd_hwdep binfmt_misc rfcomm l2cap i915 drm acpi_cpufreq cpufreq_ondemand cpufreq_performance cpufreq_stats freq_table cpufreq_powersave cpufreq_conservative fan dm_crypt dm_mod hci_usb bluetooth sbp2 fuse usbhid snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event ohci1394 sony_laptop backlight battery ac power_supply snd_seq thermal ipw2200 tifm_7xx1 sr_mod ehci_hcd uhci_hcd button ieee1394 snd_timer snd_seq_device ieee80211 ieee80211_crypt processor tifm_core yenta_socket rsrc_nonstatic pcmcia_core cdrom e100 mii evdev snd intel_agp agpgart rtc usbcore soundcore snd_page_alloc [ 78.446636] [ 78.446715] Pid: 3008, comm: alsactl Not tainted (2.6.24-rc2 #4) [ 78.446805] EIP: 0060:[<f8c6efac>] EFLAGS: 00010246 CPU: 0 [ 78.446920] EIP is at snd_audigy_i2c_capture_source_put+0x9c/0x130 [snd_emu10k1] [ 78.447034] EAX: 00000000 EBX: ca80a000 ECX: 00000282 EDX: 00000000 [ 78.447124] ESI: 3fcf303f EDI: 00000001 EBP: ca78a740 ESP: ca855d7c [ 78.447214] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 [ 78.447302] Process alsactl (pid: 3008, ti=ca854000 task=ca93ea90 task.ti=ca854000) [ 78.447395] Stack: f8c7c40e 000002a2 f8c7ae9c 3fcf303f 00000000 00000000 ca78a788 ca852440 [ 78.447944] f88d5a0f ca852400 c2ff3960 ca78a7a0 ca750480 c2ff3800 c2ff394c c2ff3800 [ 78.448491] 00000000 c2ff39a0 ca852400 f88d64b9 ca855f30 c01727d5 ca855e18 c20128c0 [ 78.449078] Call Trace: [ 78.449242] [<f88d5a0f>] snd_ctl_elem_write+0x10f/0x140 [snd] [ 78.449410] [<f88d64b9>] snd_ctl_ioctl+0x299/0xb70 [snd] [ 78.449564] [<c01727d5>] do_lookup+0x65/0x190 [ 78.449795] [<c015d057>] handle_mm_fault+0xe7/0x3f0 [ 78.449942] [<f88d6220>] snd_ctl_ioctl+0x0/0xb70 [snd] [ 78.450095] [<c01771db>] do_ioctl+0x2b/0x90 [ 78.450236] [<c017729c>] vfs_ioctl+0x5c/0x290 [ 78.450371] [<c0215060>] write_null+0x0/0x10 [ 78.450514] [<c017750d>] sys_ioctl+0x3d/0x70 [ 78.450654] [<c010415e>] sysenter_past_esp+0x5f/0x85 [ 78.450800] [<c02d0000>] xfrm_ealg_get_byname+0x0/0x20 [ 78.450972] ======================= [ 78.451052] Code: 18 ed 85 f6 0f 85 9c 00 00 00 83 c8 04 ef 51 9d 89 e0 25 00 e0 ff ff ff 48 14 8b 40 08 a8 04 0f 85 8a 00 00 00 8b 93 ac 00 00 00 <0f> b6 8c 73 b0 00 00 00 0f b6 84 53 b0 00 00 00 39 c1 74 18 ba [ 78.454370] EIP: [<f8c6efac>] snd_audigy_i2c_capture_source_put+0x9c/0x130 [snd_emu10k1] SS:ESP 0068:ca855d7c Please attach a copy of your /etc/asound.state This file doesn't exist at least with the Standard Ubuntu Gutsy Gibbon 7.10 Kernel. Created attachment 13511 [details]
This patch (alsa hg#5530) adds mixer control parameter limit checks.
This should fix this bug. Please try.
Note: Try to find an "asound.state" on your PC somewhere before trying this patch, as this patch will over write the current bad one. Maybe it is placed elsewhere. Try cd /etc/init.d grep alsactl * grep asound * This might give you some pointers as to where it is. Created attachment 13512 [details]
old asoundconf.state
Found asoundconf.state under /var/lib/alsa.
Thank you. You can try the patch now. That asoundconf.state was trying to write 1070542911 to a control that only knows how to handle values 0 and 1, thus an overflow and the page fault. This 1070542911 is a left over from alsa bug#3095 https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3095 whereby that bad value is saved by alsactl into your asoundconf.state file. So, although alsa bug#3095 was fixed, it still let the bad value back via alsactl restore. The new patch catches the out of limit parameters and therefore prevents a page fault. The latest patch fixes the problem. Many thanks! Great work! [ 74.394172] pccard: CardBus card inserted into slot 0 [ 74.467857] PCI: Enabling device 0000:07:00.0 (0000 -> 0001) [ 74.468658] ACPI: PCI Interrupt 0000:07:00.0[A] -> GSI 21 (level, low) -> IRQ 16 [ 74.468685] ALSA sound/pci/emu10k1/emu10k1_main.c:1673: vendor=0x1102, device=0x8, subsystem_vendor_id=0x20011102, subsystem_id=0x2001 [ 74.468698] ALSA sound/pci/emu10k1/emu10k1_main.c:1698: Sound card name=Audigy 2 ZS Notebook [SB0530] [ 74.468792] PCI: Setting latency timer of device 0000:07:00.0 to 64 [ 74.483855] ALSA sound/pci/emu10k1/emu10k1_main.c:218: Audigy2 value: Special config. Fixed by: commit 74415a36767d99d3adf31b4a62e4e50725e6b66a Author: James Courtier-Dutton <James@superbug.co.uk> Date: Mon Nov 12 14:55:19 2007 +0000 [ALSA] emu10k1: Add mixer controls parameter checking. http://git.kernel.org/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=74415a36767d99d3adf31b4a62e4e50725e6b66a |