CS4232 Playback bug on Tecra 500
I have been running into the problem briefly mentioned at the wiki entry http://alsa.opensrc.org/index.php/Toshiba_Tecra_500CDT.
Playback using the CS4232 driver in native or oss emulation mode fails randomly. Once the failure occurs, subsequent attempts to playback stop shortly after opening the device and tickling the speakers (perhaps the buffer gets filled once). Under heavy network load, the initial failure will occur rather soon, within 15 minutes or so of
playback. When I am playing songs from the hard drive, the failure
takes a very long time, and when I use oss emulation and play from the harddrive, I have been unable to replicate the bug. The CPU does have the F00F bug if that might make some difference. I have attached a backtrace resulting from the attempts to use aplay after the failure has occurred. I may be able to attempt to capture a backtrace at the initial failure if this would be helpful. There are no obvious error messages in my logfiles or printed to the console when the bug occurs.
Please let me know how I can assist in squashing this bug. I
attempted to use the alsa-info script, but it appears that the database where it uploads the results is broken at the moment. I have pastebinned the results at http://pastebin.ca/1315459
Thanks
Stanley Pinchak
(gdb) bt
#0 0xb7e39586 in poll () from /lib/libc.so.6 #1 0xb7f4679f in snd1_pcm_wait_nocheck (pcm=0x9d33e30, timeout=-1) at pcm.c:2360 #2 0xb7f46944 in snd_pcm_wait (pcm=0x1, timeout=-1) at pcm.c:2329 #3 0xb7f46b25 in snd1_pcm_write_areas (pcm=0x9d33e30, areas=0xbffe49f0, offset=0, size=5510, func=0xb7f52a80 <snd_pcm_mmap_write_areas>) at pcm.c:6644 #4 0xb7f52d8e in snd_pcm_mmap_writei (pcm=0x9d33e30, buffer=0x9d55f2c, size=5510) at pcm_mmap.c:186 #5 0xb7f412d4 in snd_pcm_writei (pcm=0x9d34220, buffer=0x9d55f2c, size=1) at pcm_local.h:516 #6 0x0804d4e3 in pcm_write (data=0x9d55f2c "!\003\002\002\002\002\002\025\003\002\230\002\235\002\002\235\002\002\002\035\0037\0034\003\005\003\002\030\003)\003<\003l\003\003\003\235\003\003\003r\003S\003|\003\003\003\003\0030\004G\004%\004?\004\004\004\004\232\004\004\004\004\004\004\177\004:\004\035\004(\004-\004\f\004\003\217\003\237\003\003s\003R\003P\003<\0037\003y\003\177\003\030\003\002\002\002\002\002\002\002|\002\002\002\002\002\212\002v\002\002\002\002\002u\003\003`\003\031\003\016\003\021\003\002\002\201\002L\0028\002a\002\201\002T\0028\002T\002"..., count=5510) at aplay.c:1432 #7 0x0804dc27 in playback_go (fd=3, loaded=0, count=8986624, rtype=2, name=0xbffe6a84 "Guitbox N Glasses.wav") at aplay.c:2171 #8 0x0804f0b9 in playback (name=0xbffe6a84 "Guitbox N Glasses.wav") at aplay.c:2231 #9 0x080514f1 in main (argc=3, argv=0xbffe4d44) at aplay.c:641
(gdb)
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Stanley,
Could you post a dmesg output for this laptop?
Regards,
Krzysztof
----------------------------------------------------------------------
Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis. Sprawdz. >> http://link.interia.pl/f2019
Krzysztof,
I have attached the dmesg output to this email. Let me know if
there is more that I can provide.
Thanks
Stanley Pinchak
2009/1/22 Krzysztof Helt <[email protected]>:
Quoted 12 lines
Hi Stanley,
Could you post a dmesg output for this laptop?
Regards,
Krzysztof----------------------------------------------------------------------
Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis. Sprawdz. >> http://link.interia.pl/f2019
[ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.26-1-486 (Debian 2.6.26-6) ([email protected]) (gcc version 4.1.3 20080623 (prerelease) (Debian 4.1.2-23)) #1 Wed Sep 24 14:06:01 UTC 2008 [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [ 0.000000] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 0000000003020000 (usable) [ 0.000000] BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved) [ 0.000000] 48MB LOWMEM available. [ 0.000000] Entering add_active_range(0, 0, 12320) 0 entries of 256 used [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0 -> 4096 [ 0.000000] Normal 4096 -> 12320 [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[1] active PFN ranges [ 0.000000] 0: 0 -> 12320 [ 0.000000] On node 0 totalpages: 12320 [ 0.000000] DMA zone: 32 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 4064 pages, LIFO batch:0 [ 0.000000] Normal zone: 65 pages used for memmap [ 0.000000] Normal zone: 8159 pages, LIFO batch:0 [ 0.000000] Movable zone: 0 pages used for memmap [ 0.000000] DMI not present or invalid. [ 0.000000] Allocating PCI resources starting at 10000000 (gap: 03020000:fcfc0000) [ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000 [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000 [ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12223 [ 0.000000] Kernel command line: root=/dev/hda2 ro acpi=off pci=assign-busses,noacpi [ 0.000000] No local APIC present or hardware disabled [ 0.000000] mapped APIC to ffffb000 (0106a000) [ 0.000000] Initializing CPU#0 [ 0.000000] PID hash table entries: 256 (order: 8, 1024 bytes) [ 0.000000] Detected 120.002 MHz processor. [ 0.004000] Console: colour VGA+ 80x25 [ 0.004000] console [tty0] enabled [ 0.004000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.004000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.004000] Memory: 44220k/49280k available (1693k kernel code, 4668k reserved, 746k data, 320k init, 0k highmem) [ 0.004000] virtual kernel memory layout: [ 0.004000] fixmap : 0xfffb3000 - 0xfffff000 ( 304 kB) [ 0.004000] vmalloc : 0xc4000000 - 0xfffb1000 ( 959 MB) [ 0.004000] lowmem : 0xc0000000 - 0xc3020000 ( 48 MB) [ 0.004000] .init : 0xc0364000 - 0xc03b4000 ( 320 kB) [ 0.004000] .data : 0xc02a7733 - 0xc0362000 ( 746 kB) [ 0.004000] .text : 0xc0100000 - 0xc02a7733 (1693 kB) [ 0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok. [ 0.004000] CPA: page pool initialized 1 of 1 pages preallocated [ 0.085852] Calibrating delay using timer specific routine.. 241.48 BogoMIPS (lpj=482963) [ 0.086878] Security Framework initialized [ 0.087129] SELinux: Disabled at boot. [ 0.087338] Capability LSM initialized [ 0.087738] Mount-cache hash table entries: 512 [ 0.090350] Initializing cgroup subsys ns [ 0.090629] Initializing cgroup subsys cpuacct [ 0.090883] Initializing cgroup subsys devices [ 0.091345] Intel Pentium with F0 0F bug - workaround enabled. [ 0.091652] [ 0.091996] CPU: Intel Pentium 75 - 200 stepping 0c [ 0.092005] Checking 'hlt' instruction... OK. [ 0.133903] Freeing SMP alternatives: 0k freed [ 0.137622] net_namespace: 652 bytes [ 0.137896] Booting paravirtualized kernel on bare hardware [ 0.142641] NET: Registered protocol family 16 [ 0.149819] EISA bus registered [ 0.153011] PCI: PCI BIOS revision 2.10 entry at 0xfd50e, last bus=21 [ 0.153302] PCI: Using configuration type 1 for base access [ 0.153545] Setting up standard PCI resources [ 0.181570] ACPI: Interpreter disabled. [ 0.181795] Linux Plug and Play Support v0.97 (c) Adam Belay [ 0.182950] pnp: PnP ACPI: disabled [ 0.183156] PnPBIOS: Scanning system for PnP BIOS support... [ 0.183680] PnPBIOS: Found PnP BIOS installation structure at 0xc00f8dd0 [ 0.183974] PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0x9aa6, dseg 0x0 [ 0.304019] PnPBIOS: 20 nodes reported by PnP BIOS; 20 recorded by driver [ 0.312353] PCI: Probing PCI hardware [ 0.312568] PCI: Probing PCI hardware (bus 00) [ 0.325058] system 00:01: iomem range 0x0-0x9ffff could not be reserved [ 0.325421] system 00:01: iomem range 0xf0000-0xfffff could not be reserved [ 0.325763] system 00:01: iomem range 0x100000-0x301ffff could not be reserved [ 0.326116] system 00:01: iomem range 0xfff00000-0xffffffff could not be reserved [ 0.326604] system 00:0a: ioport range 0x1882-0x1885 has been reserved [ 0.326895] system 00:0a: ioport range 0x1888-0x188d has been reserved [ 0.327175] system 00:0a: ioport range 0x480-0x48f has been reserved [ 0.327450] system 00:0a: ioport range 0xcf8-0xcff could not be reserved [ 0.327734] system 00:0a: ioport range 0x4d0-0x4d1 has been reserved [ 0.339622] PCI: Bus 1, cardbus bridge: 0000:00:02.0 [ 0.339915] IO window: 0x00001000-0x000010ff [ 0.340342] IO window: 0x00001400-0x000014ff [ 0.340623] PREFETCH window: 0x10000000-0x13ffffff [ 0.340900] MEM window: 0x14000000-0x17ffffff [ 0.341164] PCI: Bus 5, cardbus bridge: 0000:00:02.1 [ 0.341426] IO window: 0x00001c00-0x00001cff [ 0.341676] IO window: 0x00002000-0x000020ff [ 0.341934] PREFETCH window: 0x18000000-0x1bffffff [ 0.342204] MEM window: 0x1c000000-0x1fffffff [ 0.342495] pci 0000:00:02.0: enabling device (0004 -> 0007) [ 0.342764] PCI: Setting latency timer of device 0000:00:02.0 to 64 [ 0.342847] pci 0000:00:02.1: enabling device (0004 -> 0007) [ 0.343112] PCI: Setting latency timer of device 0000:00:02.1 to 64 [ 0.343528] NET: Registered protocol family 2 [ 0.345628] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.349703] TCP established hash table entries: 2048 (order: 2, 16384 bytes) [ 0.350359] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) [ 0.350819] TCP: Hash tables configured (established 2048 bind 2048) [ 0.351115] TCP reno registered [ 0.352586] NET: Registered protocol family 1 [ 0.354985] checking if image is initramfs... it is [ 2.482090] Freeing initrd memory: 1014k freed [ 2.492728] audit: initializing netlink socket (disabled) [ 2.493118] type=2000 audit(1232599636.492:1): initialized [ 2.494860] Total HugeTLB memory allocated, 0 [ 2.496496] VFS: Disk quotas dquot_6.5.1 [ 2.497173] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 2.498063] msgmni has been set to 88 [ 2.500566] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 2.501011] io scheduler noop registered [ 2.501243] io scheduler anticipatory registered [ 2.501505] io scheduler deadline registered [ 2.501905] io scheduler cfq registered (default) [ 2.502327] pci 0000:00:04.0: Boot video device [ 2.509685] isapnp: Scanning for PnP cards... [ 2.865986] isapnp: No Plug & Play device found [ 2.939401] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled [ 2.941092] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 2.942660] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 2.951011] 00:0e: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 2.954439] 00:15: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 2.995428] brd: module loaded [ 2.998225] PNP: PS/2 Controller [PNP0303,PNP0f13] at 0x60,0x64 irq 1,12 [ 3.004662] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 3.005005] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 3.009289] mice: PS/2 mouse device common for all mice [ 3.012618] rtc_cmos 00:09: rtc core: registered rtc_cmos as rtc0 [ 3.013033] rtc0: alarms up to one day [ 3.016404] EISA: Probing bus 0 at eisa.0 [ 3.016696] Cannot allocate resource for EISA slot 1 [ 3.016972] Cannot allocate resource for EISA slot 2 [ 3.017375] EISA: Detected 0 cards. [ 3.017605] cpuidle: using governor ladder [ 3.017846] cpuidle: using governor menu [ 3.018125] No iBFT detected. [ 3.026736] TCP cubic registered [ 3.026944] NET: Registered protocol family 17 [ 3.027208] Using IPI Shortcut mode [ 3.030686] registered taskstats version 1 [ 3.031943] rtc_cmos 00:09: setting system clock to 2009-01-22 04:47:18 UTC (1232599638) [ 3.038826] Freeing unused kernel memory: 320k freed [ 3.068530] input: AT Translated Set 2 keyboard as /class/input/input0 [ 3.390073] thermal: Unknown symbol acpi_processor_set_thermal_limit [ 3.563191] Uniform Multi-Platform E-IDE driver [ 3.563517] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx [ 3.588724] ide_generic: please use "probe_mask=0x3f" module parameter for probing all legacy ISA IDE ports [ 3.589215] Probing IDE interface ide0... [ 3.876348] hda: WDC WD1200BEVE-00WZT0, ATA DISK drive [ 4.549425] Probing IDE interface ide1... [ 5.284594] hdc: TOSHIBA CD-ROM XM-1402B, ATAPI CD/DVD-ROM drive [ 5.957565] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 [ 5.958217] ide1 at 0x170-0x177,0x376 on irq 15 [ 6.004398] hda: max request size: 512KiB [ 6.268774] hda: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=16383/255/63 [ 6.269450] hda: cache flushes supported [ 6.270161] hda: hda1 hda2 hda3 hda4 [ 6.844431] kjournald starting. Commit interval 5 seconds [ 6.844827] EXT3-fs: mounted filesystem with ordered data mode. [ 22.636422] input: PC Speaker as /class/input/input1 [ 30.344760] Floppy drive(s): fd0 is 1.44M [ 30.891315] FDC 0 is an 8272A [ 42.010670] input: PS/2 Generic Mouse as /class/input/input2 [ 43.263094] Yenta: CardBus bridge found at 0000:00:02.0 [0000:0000] [ 43.710909] Yenta: ISA IRQ mask 0x0000, PCI irq 11 [ 43.711221] Socket status: 30000020 [ 43.713043] Yenta: CardBus bridge found at 0000:00:02.1 [0000:0000] [ 43.839079] Yenta: ISA IRQ mask 0x0000, PCI irq 11 [ 43.839385] Socket status: 30000006 [ 44.553960] pccard: CardBus card inserted into slot 0 [ 45.517982] hdc: ATAPI 6X CD-ROM drive, 128kB Cache [ 45.518429] Uniform CD-ROM driver Revision: 3.20 [ 52.516542] cs: IO port probe 0x100-0x3af: excluding 0x120-0x127 0x220-0x22f 0x378-0x37f 0x388-0x38f [ 52.519866] cs: IO port probe 0x3e0-0x4ff: clean. [ 52.521717] cs: IO port probe 0x820-0x8ff: clean. [ 52.523609] cs: IO port probe 0xc00-0xcf7: clean. [ 53.569618] cs: IO port probe 0x100-0x3af: excluding 0x120-0x127 0x220-0x22f 0x378-0x37f 0x388-0x38f [ 53.572852] cs: IO port probe 0x3e0-0x4ff: clean. [ 53.574791] cs: IO port probe 0x820-0x8ff: clean. [ 53.576513] cs: IO port probe 0xc00-0xcf7: clean. [ 58.443582] parport_pc 00:10: reported by Plug and Play BIOS [ 58.444025] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE] [ 59.689203] NET: Registered protocol family 23 [ 61.819269] 8139too Fast Ethernet driver 0.9.28 [ 61.819885] 8139too 0000:01:00.0: enabling device (0000 -> 0003) [ 61.820258] PCI: Setting latency timer of device 0000:01:00.0 to 64 [ 61.826030] eth0: RealTek RTL8139 at 0x1000, 00:50:ba:a8:26:25, IRQ 11 [ 61.826314] eth0: Identified 8139 chip type 'RTL-8139C' [ 85.168077] Adding 1951888k swap on /dev/hda3. Priority:-1 extents:1 across:1951888k [ 86.871787] EXT3 FS on hda2, internal journal [ 89.833249] Toshiba System Management Mode driver v1.11 26/9/2001 [ 91.243845] BUG: unable to handle kernel NULL pointer dereference at 00000158 [ 91.244314] IP: [<c02088ad>] pnp_activate_dev+0x3/0x3a [ 91.244714] *pde = 00000000 [ 91.244977] Oops: 0000 [#1] [ 91.245224] Modules linked in: snd_cs4232(+) toshiba snd_cs4236 snd_cs4236_lib snd_wavefront snd_opl3_lib snd_cs4231_lib snd_pcm snd_page_alloc snd_hwdep snd_mpu401_uart snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_timer snd_seq_device snd soundcore 8139too mii irtty_sir sir_dev irda crc_ccitt parport_pc parport pcmcia firmware_class ide_cd_mod cdrom yenta_socket rsrc_nonstatic pcmcia_core serio_raw psmouse floppy pcspkr ext3 jbd mbcache ide_disk ide_generic ide_core evdev thermal_sys [ 91.247720] [ 91.247720] Pid: 1108, comm: modprobe Not tainted (2.6.26-1-486 #1) [ 91.247720] EIP: 0060:[<c02088ad>] EFLAGS: 00010246 CPU: 0 [ 91.247720] EIP is at pnp_activate_dev+0x3/0x3a [ 91.247720] EAX: 00000000 EBX: 00000000 ECX: 00000014 EDX: 00000000 [ 91.247720] ESI: 00000001 EDI: c2840400 EBP: c0227106 ESP: c2247df8 [ 91.247720] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 [ 91.247720] Process modprobe (pid: 1108, ti=c2246000 task=c2088000 task.ti=c2246000) [ 91.247720] Stack: 00000000 c41323a3 c180ee00 00000001 c413277d c2840400 fffffff0 c4134680 [ 91.247720] c02077d8 c2840400 00000000 c413469c c0227090 c2840400 c28404a8 c413469c [ 91.247720] c022713d 00000000 c034e780 c413469c c022696d c2838758 c2838758 c2840448 [ 91.247720] Call Trace: [ 91.247720] [<c41323a3>] snd_cs423x_pnp_init_wss+0xd/0xe1 [snd_cs4232] [ 91.247720] [<c413277d>] snd_cs4232_pnpbios_detect+0x88/0xe8 [snd_cs4232] [ 91.247720] [<c02077d8>] pnp_device_probe+0x70/0x90 [ 91.247720] [<c0227090>] driver_probe_device+0xb4/0x12a [ 91.247720] [<c022713d>] __driver_attach+0x37/0x55 [ 91.247720] [<c022696d>] bus_for_each_dev+0x39/0x5b [ 91.247720] [<c0226f2c>] driver_attach+0x11/0x13 [ 91.247720] [<c0227106>] __driver_attach+0x0/0x55 [ 91.247720] [<c0226cc1>] bus_add_driver+0x8a/0x1a5 [ 91.247720] [<c01ca183>] kset_find_obj+0x18/0x40 [ 91.247720] [<c0227295>] driver_register+0x6d/0xc1 [ 91.247720] [<c406b027>] alsa_card_cs423x_init+0x27/0x64 [snd_cs4232] [ 91.247720] [<c0136203>] sys_init_module+0x1509/0x165a [ 91.247720] [<c0154825>] __do_fault+0x2c4/0x300 [ 91.247720] [<c011fb9b>] __request_region+0x0/0x5f [ 91.247720] [<c01037b2>] syscall_call+0x7/0xb [ 91.247720] ======================= [ 91.247720] Code: 93 8c 00 00 00 52 50 68 99 5a 31 c0 e8 d3 39 f1 ff b8 f0 ff ff ff 83 c4 0c eb 09 b8 ed ff ff ff eb 02 31 c0 5b 5e 5f c3 53 31 d2 <83> b8 58 01 00 00 00 89 c3 75 25 e8 73 ff ff ff ba f0 ff ff ff [ 91.247720] EIP: [<c02088ad>] pnp_activate_dev+0x3/0x3a SS:ESP 0068:c2247df8 [ 91.266206] ---[ end trace bdefa33d8d91c5b7 ]--- [ 93.592219] device-mapper: uevent: version 1.0.3 [ 93.606765] device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: [email protected] [ 96.557117] fuse init (API version 7.9) [ 97.040721] kjournald starting. Commit interval 5 seconds [ 97.041693] EXT3 FS on hda1, internal journal [ 97.041979] EXT3-fs: mounted filesystem with ordered data mode. [ 102.508754] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 [ 116.373494] NET: Registered protocol family 10 [ 116.382205] lo: Disabled Privacy Extensions [ 122.890376] warning: `ntpd' uses 32-bit capabilities (legacy support in use) [ 127.313450] eth0: no IPv6 routers present
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Hi Stanley,
In short words, you need to upgrade the kernel. Also, blacklist or delete the snd-cs4236.ko module.
A longer description. The ALSA page about Tecra laptop you mentioned is wrong. Your CS4232 card is a PNP BIOS device and does not need any parameters. However, your kernel is dated 20080623 and there was a fix for a cs4232 driver crash commited on 20080727 to the kernel. The crash is visible in your dmesg file:
[ 91.243845] BUG: unable to handle kernel NULL pointer dereference at 00000158 [ 91.244314] IP: [<c02088ad>] pnp_activate_dev+0x3/0x3a [ 91.244714] *pde = 00000000 [ 91.244977] Oops: 0000 [#1]
Next thing is that your have a second driver loaded:
the snd-cs4236. Do not load this driver. AFAIR, the snd-cs4236 driver should be blacklisted or removed on laptop with the cs4232 chip and PNP BIOS. The cs4236 and cs4232 have the same PNP BIOS id-s. The snd-cs4236 was incorrectly loaded instead of the snd-cs4232 at least on my laptop (old Dell).
I hope this helps you,
Krzysztof
----------------------------------------------------------------------
Promocja w Speak Up. 3 miesiace angielskiego gratis. Sprawdz teraz i wypelnij formularz! >> http://link.interia.pl/f2019
At Thu, 22 Jan 2009 17:28:56 +0100,
Quoted 19 lines · Krzysztof Helt
Hi Stanley,
In short words, you need to upgrade the kernel. Also, blacklist or delete the snd-cs4236.ko module.
A longer description. The ALSA page about Tecra laptop you mentioned is wrong. Your CS4232 card is a PNP BIOS device and does not need any parameters. However, your kernel is dated 20080623 and there was a fix for a cs4232 driver crash commited on 20080727 to the kernel. The crash is visible in your dmesg file:
[ 91.243845] BUG: unable to handle kernel NULL pointer dereference at 00000158 [ 91.244314] IP: [<c02088ad>] pnp_activate_dev+0x3/0x3a [ 91.244714] *pde = 00000000 [ 91.244977] Oops: 0000 [#1]
Quoted 7 lines
Next thing is that your have a second driver loaded:
the snd-cs4236. Do not load this driver. AFAIR, the snd-cs4236 driver should be blacklisted or removed on laptop with the cs4232 chip and PNP BIOS. The cs4236 and cs4232 have the same PNP BIOS id-s. The snd-cs4236 was incorrectly loaded instead of the snd-cs4232 at least on my laptop (old Dell).
Isn't there any way to check this conflict between CS4232 and CS4236? If we can know that the particular card is for snd-cs4232, snd-cs4236 could give a warning and quit...
Takashi
Quoted 11 lines · On Thu, 22 Jan 2009 17:37:48 +0100 Takashi Iwai <[email protected]> wrote:
At Thu, 22 Jan 2009 17:28:56 +0100,
Quoted 8 lines · Krzysztof Helt
Next thing is that your have a second driver loaded:
the snd-cs4236. Do not load this driver. AFAIR, the snd-cs4236 driver should be blacklisted or removed on laptop with the cs4232 chip and PNP BIOS. The cs4236 and cs4232 have the same PNP BIOS id-s. The snd-cs4236 was incorrectly loaded instead of the snd-cs4232 at least on my laptop (old Dell).
Quoted 4 lines
Isn't there any way to check this conflict between CS4232 and CS4236? If we can know that the particular card is for snd-cs4232, snd-cs4236 could give a warning and quit...
I don't know. A chip inside my laptop is identified as CS4236 but works with the snd-cs4232 driver. I have to open the laptop to verify. I remember problems when it run with the snd-cs4236 driver.
Regards,
Krzysztof
----------------------------------------------------------------------
Zobacz gry internetowe dla dzieci!
sprawdz >>>http://link.interia.pl/f202c
Quoted 10 lines · On Thu, 22 Jan 2009 17:37:48 +0100 Takashi Iwai <[email protected]> wrote:
At Thu, 22 Jan 2009 17:28:56 +0100,
Quoted 7 lines · Krzysztof Helt
Next thing is that your have a second driver loaded:
the snd-cs4236. Do not load this driver. AFAIR, the snd-cs4236 driver should be blacklisted or removed on laptop with the cs4232 chip and PNP BIOS. The cs4236 and cs4232 have the same PNP BIOS id-s. The snd-cs4236 was incorrectly loaded instead of the snd-cs4232 at least on my laptop (old Dell).
Quoted 4 lines
Isn't there any way to check this conflict between CS4232 and CS4236? If we can know that the particular card is for snd-cs4232, snd-cs4236 could give a warning and quit...
I have opened my laptop and it has the CS4237B chipset (the one the Dell states for this model).
A problem is with ALSA drivers. The snd-cs4232 is the only driver which supports pnpbios. The snd-cs4236 does not so it does not recognize the card.
An ultimate solution would be to merge the snd-cs4236-lib into the wss-lib (as Rene Herman proposed some time ago) then prepare a single driver for all cs423x cards.
Regards,
Krzysztof
----------------------------------------------------------------------
Zobacz program TV na dzis!
sprawdz >>>http://link.interia.pl/f202a
At Sat, 24 Jan 2009 09:26:06 +0100,
Quoted 25 lines · Krzysztof Helt
Quoted 10 lines · On Thu, 22 Jan 2009 17:37:48 +0100 Takashi Iwai <[email protected]> wrote:
At Thu, 22 Jan 2009 17:28:56 +0100,
Quoted 7 lines · Krzysztof Helt
Next thing is that your have a second driver loaded:
the snd-cs4236. Do not load this driver. AFAIR, the snd-cs4236 driver should be blacklisted or removed on laptop with the cs4232 chip and PNP BIOS. The cs4236 and cs4232 have the same PNP BIOS id-s. The snd-cs4236 was incorrectly loaded instead of the snd-cs4232 at least on my laptop (old Dell).Quoted 4 lines
Isn't there any way to check this conflict between CS4232 and CS4236? If we can know that the particular card is for snd-cs4232, snd-cs4236 could give a warning and quit...
I have opened my laptop and it has the CS4237B chipset (the one the Dell states for this model).
A problem is with ALSA drivers. The snd-cs4232 is the only driver which supports pnpbios. The snd-cs4236 does not so it does not recognize the card.
Quoted 3 lines
An ultimate solution would be to merge the snd-cs4236-lib into the wss-lib (as Rene Herman proposed some time ago) then prepare a single driver for all cs423x cards.
Agreed. I don't think that would be too much job, just checking cs4236_lib.c. Only the testing isn't easy nowadays just lack of available hardware.
Takashi
Quoted 9 lines · On Mon, 26 Jan 2009 10:45:01 +0100 Takashi Iwai <[email protected]> wrote:
At Sat, 24 Jan 2009 09:26:06 +0100,
Quoted 7 lines · Krzysztof Helt
I have opened my laptop and it has the CS4237B chipset (the one the Dell states for this model).
A problem is with ALSA drivers. The snd-cs4232 is the only driver which supports pnpbios. The snd-cs4236 does not so it does not recognize the card.
Quoted 8 lines
Quoted 3 lines
An ultimate solution would be to merge the snd-cs4236-lib into the wss-lib (as Rene Herman proposed some time ago) then prepare a single driver for all cs423x cards.
Agreed. I don't think that would be too much job, just checking
cs4236_lib.c. Only the testing isn't easy nowadays just lack of available hardware.
The proposed solution does not help.
The problem is more complicated. The cs4236+ cards have two separate PNP bios ids! The problem here is that Linux kernel allows only one id per device. The ids are CS0010* for the CS0000* device and CS0110* for the CS0100* devices. The second device has only control port range (one io range).
I have prepared the patch which I tested on my Dell Latitude CPi laptop and now it properly discovers the CS4237B codec. Stanley, please test it as well.
The patch checks all PNP devices for the second id and if it is found (so the control port io is known) it assumes the CS4236+ chip. If not, it assumes the CS4232 chip.
This patch makes both drivers snd-cs4232 and snd-cs4236 identical so the next step is to remove one. My proposition is to remove the snd-cs4236 and change the description of the snd-cs4232 driver to handle all cs4232+ codecs.
Kind regards,
Krzysztof
PS. Stanley, please build only one the snd-cs4232 or snd-cs4236 driver.
sound/isa/cs423x/cs4236.c +73 -89
@@ -33,17 +33,14 @@MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>" );MODULE_LICENSE ("GPL" ); -#ifdef CS4232 -MODULE_DESCRIPTION ("Cirrus Logic CS4232" ); +MODULE_DESCRIPTION ("Cirrus Logic CS4232-9" );MODULE_SUPPORTED_DEVICE ("{{Turtle Beach,TBS-2000}," "{Turtle Beach,Tropez Plus}," "{SIC CrystalWave 32}," "{Hewlett Packard,Omnibook 5500}," "{TerraTec,Maestro 32/96}," -"{Philips,PCA70PS}}" ); -#else -MODULE_DESCRIPTION ("Cirrus Logic CS4235-9" ); -MODULE_SUPPORTED_DEVICE ("{{Crystal Semiconductors,CS4235}," +"{Philips,PCA70PS}}," +"{{Crystal Semiconductors,CS4235}," "{Crystal Semiconductors,CS4236}," "{Crystal Semiconductors,CS4237}," "{Crystal Semiconductors,CS4238},"
@@ -70,15 +67,9 @@ MODULE_SUPPORTED_DEVICE("{{Crystal Semiconductors,CS4235},""{Typhoon Soundsystem,CS4236B}," "{Turtle Beach,Malibu}," "{Unknown,Digital PC 5000 Onboard}}"); -#endif -#ifdef CS4232 -#define IDENT "CS4232" -#define DEV_NAME "cs4232" -#else -#define IDENT "CS4236+" -#define DEV_NAME "cs4236" -#endif +#define IDENT "CS4232+" +#define DEV_NAME "cs4232+"static int index[SNDRV_CARDS ] =SNDRV_DEFAULT_IDX ;/* Index 0-MAX */ static char *id[SNDRV_CARDS ] =SNDRV_DEFAULT_STR ;/* ID for this card */
@@ -128,9 +119,7 @@ MODULE_PARM_DESC(dma2, "DMA2 # for " IDENT " driver.");#ifdef CONFIG_PNP static int isa_registered;static int pnpc_registered; -#ifdef CS4232 static int pnp_registered; -#endif #endif /* CONFIG_PNP */ struct snd_card_cs4236 {
@@ -145,11 +134,10 @@ struct snd_card_cs4236 {#ifdef CONFIG_PNP -#ifdef CS4232 /* * PNP BIOS */ -static const struct pnp_device_id snd_cs4232_pnpbiosids[] = { +static const struct pnp_device_id snd_cs423x_pnpbiosids[] = { { .id ="CSC0100" }, { .id ="CSC0000" },/* Guillemot Turtlebeach something appears to be cs4232 compatible
@@ -157,10 +145,8 @@ static const struct pnp_device_id snd_cs4232_pnpbiosids[] = { { .id = "GIM0100" }, { .id = "" } }; -MODULE_DEVICE_TABLE (pnp, snd_cs4232_pnpbiosids); -#endif /* CS4232 */ +MODULE_DEVICE_TABLE (pnp, snd_cs423x_pnpbiosids); -#ifdef CS4232 #define CS423X_ISAPNP_DRIVER "cs4232_isapnp"static struct pnp_card_device_id snd_cs423x_pnpids[] = {/* Philips PCA70PS */
@@ -179,12 +165,6 @@ static struct pnp_card_device_id snd_cs423x_pnpids[] = { { .id = "CSCf032", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },/* Netfinity 3000 on-board soundcard */ { .id = "CSCe825", .devs = { { "CSC0100" }, { "CSC0110" }, { "CSC010f" } } }, -/* --- */ - { .id = "" } /* end */ -}; -#else /* CS4236 */ -#define CS423X_ISAPNP_DRIVER "cs4236_isapnp" -static struct pnp_card_device_id snd_cs423x_pnpids[] = {/* Intel Marlin Spike Motherboard - CS4235 */ { .id = "CSC0225", .devs = { { "CSC0000" }, { "CSC0010" }, { "CSC0003" } } },/* Intel Marlin Spike Motherboard (#2) - CS4235 */
@@ -266,7 +246,6 @@ static struct pnp_card_device_id snd_cs423x_pnpids[] = {/* --- */ { .id = "" } /* end */ }; -#endif MODULE_DEVICE_TABLE (pnp_card, snd_cs423x_pnpids);
@@ -323,17 +302,19 @@ static int __devinit snd_cs423x_pnp_init_mpu(int dev, struct pnp_dev *pdev)return 0 ; } -#ifdef CS4232 -static int __devinit snd_card_cs4232_pnp (int dev,struct snd_card_cs4236 *acard, -struct pnp_dev *pdev) +static int __devinit snd_card_cs423x_pnp (int dev,struct snd_card_cs4236 *acard, +struct pnp_dev *pdev, +struct pnp_dev *cdev) { acard->wss = pdev;if (snd_cs423x_pnp_init_wss (dev, acard->wss) <0 )return -EBUSY ; - cport[dev] =-1 ; +if (cdev) + cport[dev] =pnp_port_start (cdev,0 ); +else + cport[dev] =-1 ;return 0 ; } -#endif static int __devinit snd_card_cs423x_pnpc(int dev, struct snd_card_cs4236 *acard, struct pnp_card_link *card,
@@ -409,40 +390,38 @@ static int __devinit snd_cs423x_probe(struct snd_card *card, int dev)return -EBUSY ; } -#ifdef CS4232 - err =snd_wss_create (card, port[dev], cport[dev], - irq[dev], - dma1[dev], dma2[dev], -WSS_HW_DETECT ,0 , &chip); -if (err <0 ) -return err; - acard->chip = chip; - - err =snd_wss_pcm (chip,0 , &pcm); -if (err <0 ) -return err; - - err =snd_wss_mixer (chip); -if (err <0 ) -return err; - -#else /* CS4236 */ - err =snd_cs4236_create (card, - port[dev], cport[dev], - irq[dev], dma1[dev], dma2[dev], -WSS_HW_DETECT ,0 , &chip); -if (err <0 ) -return err; - acard->chip = chip; - - err =snd_cs4236_pcm (chip,0 , &pcm); -if (err <0 ) -return err; - - err =snd_cs4236_mixer (chip); -if (err <0 ) -return err; -#endif +if (cport[dev] >0 ) { + err =snd_cs4236_create (card, + port[dev], cport[dev], + irq[dev], dma1[dev], dma2[dev], +WSS_HW_DETECT ,0 , &chip); +if (err <0 ) +return err; + acard->chip = chip; + + err =snd_cs4236_pcm (chip,0 , &pcm); +if (err <0 ) +return err; + + err =snd_cs4236_mixer (chip); +if (err <0 ) +return err; + }else { + err =snd_wss_create (card, port[dev], cport[dev], + irq[dev], + dma1[dev], dma2[dev], +WSS_HW_DETECT ,0 , &chip); +if (err <0 ) +return err; + acard->chip = chip; + err =snd_wss_pcm (chip,0 , &pcm); +if (err <0 ) +return err; + + err =snd_wss_mixer (chip); +if (err <0 ) +return err; + }strcpy (card->driver, pcm->name);strcpy (card->shortname, pcm->name); sprintf(card->longname, "%s at 0x%lx, irq %i, dma %i",
@@ -577,13 +556,15 @@ static struct isa_driver cs423x_isa_driver = {#ifdef CONFIG_PNP -#ifdef CS4232 -static int __devinit snd_cs4232_pnpbios_detect(struct pnp_dev *pdev, +static int __devinit snd_cs423x_pnpbios_detect (struct pnp_dev *pdev,const struct pnp_device_id *id) {static int dev;int err;struct snd_card *card; +struct pnp_dev *cdev; +struct list_head *pos; +char cid[PNP_ID_LEN ];if (pnp_device_is_isapnp (pdev))return -ENOENT ;/* we have another procedure - card */
@@ -594,10 +575,20 @@ static int __devinit snd_cs4232_pnpbios_detect(struct pnp_dev *pdev,if (dev >=SNDRV_CARDS )return -ENODEV ; +/* prepare second id */ +strcpy (cid, pdev->id[0 ].id); + cid[5 ] ='1' ; + cdev =NULL ; +list_for_each (pos, &(pdev->protocol->devices)) { + cdev = list_entry(pos, struct pnp_dev, protocol_list); +if (!strcmp (cdev->id[0 ].id, cid)) +break ; + } card =snd_cs423x_card_new (dev);if (! card)return -ENOMEM ; -if ((err =snd_card_cs4232_pnp (dev, card->private_data, pdev)) <0 ) { + err =snd_card_cs423x_pnp (dev, card->private_data, pdev, cdev); +if (err <0 ) {printk (KERN_ERR "PnP BIOS detection failed for " IDENT "\n" );snd_card_free (card);return err;
@@ -612,35 +603,34 @@ static int __devinit snd_cs4232_pnpbios_detect(struct pnp_dev *pdev,return 0 ; } -static void __devexit snd_cs4232_pnp_remove(struct pnp_dev * pdev) +static void __devexit snd_cs423x_pnp_remove(struct pnp_dev *pdev) {snd_card_free (pnp_get_drvdata (pdev));pnp_set_drvdata (pdev,NULL ); }#ifdef CONFIG_PM -static int snd_cs4232_pnp_suspend (struct pnp_dev *pdev,pm_message_t state) +static int snd_cs423x_pnp_suspend (struct pnp_dev *pdev,pm_message_t state) {return snd_cs423x_suspend (pnp_get_drvdata (pdev)); } -static int snd_cs4232_pnp_resume (struct pnp_dev *pdev) +static int snd_cs423x_pnp_resume (struct pnp_dev *pdev) {return snd_cs423x_resume (pnp_get_drvdata (pdev)); }#endif -static struct pnp_driver cs4232_pnp_driver = { - .name ="cs4232-pnpbios" , - .id_table = snd_cs4232_pnpbiosids, - .probe = snd_cs4232_pnpbios_detect, - .remove =__devexit_p (snd_cs4232_pnp_remove), +static struct pnp_driver cs423x_pnp_driver = { + .name ="cs423x-pnpbios" , + .id_table = snd_cs423x_pnpbiosids, + .probe = snd_cs423x_pnpbios_detect, + .remove =__devexit_p (snd_cs423x_pnp_remove), #ifdef CONFIG_PM - .suspend = snd_cs4232_pnp_suspend, - .resume = snd_cs4232_pnp_resume, + .suspend = snd_cs423x_pnp_suspend, + .resume = snd_cs423x_pnp_resume, #endif }; -#endif /* CS4232 */ static int __devinit snd_cs423x_pnpc_detect (struct pnp_card_link *pcard,const struct pnp_card_device_id *pid)
@@ -714,18 +704,14 @@ static int __init alsa_card_cs423x_init(void)#ifdef CONFIG_PNP if (!err) isa_registered =1 ; -#ifdef CS4232 - err =pnp_register_driver (&cs4232_pnp_driver); + err =pnp_register_driver (&cs423x_pnp_driver);if (!err) pnp_registered =1 ; -#endif err =pnp_register_card_driver (&cs423x_pnpc_driver);if (!err) pnpc_registered =1 ; -#ifdef CS4232 if (pnp_registered) err =0 ; -#endif if (isa_registered) err =0 ;#endif
@@ -737,10 +723,8 @@ static void __exit alsa_card_cs423x_exit(void)#ifdef CONFIG_PNP if (pnpc_registered)pnp_unregister_card_driver (&cs423x_pnpc_driver); -#ifdef CS4232 if (pnp_registered) -pnp_unregister_driver (&cs4232_pnp_driver); -#endif +pnp_unregister_driver (&cs423x_pnp_driver); if (isa_registered)#endif isa_unregister_driver (&cs423x_isa_driver);
----------------------------------------------------------------------
Konkurs Walentynkowy! Wybierz nagrode i wygraj!
Sprawdz >> http://link.interia.pl/f2039
Quoted 10 lines · On Mon, 26 Jan 2009 18:33:15 +0100 Krzysztof Helt <[email protected]>…
The problem is more complicated. The cs4236+ cards have two separate PNP bios ids! The problem here is that Linux kernel allows only one id per device. The ids are CS0010* for the CS0000* device and CS0110* for the CS0100* devices. The second device has only control port range (one io range).
I have prepared the patch which I tested on my Dell Latitude CPi laptop and now it properly discovers the CS4237B codec. Stanley, please test it as well.
Takashi,
Please take a look at the patch which unifies the cs4232 and the cs4236+ driver code. It should solve all problems with the Crystal PnP BIOS chip detection. At least, it solves this at my Dell laptop.
Regards,
Krzysztof
----------------------------------------------------------------------
Promocja w Speak Up. 3 miesiace angielskiego gratis. Sprawdz teraz i wypelnij formularz! >> http://link.interia.pl/f2019
At Thu, 29 Jan 2009 16:02:13 +0100,
Quoted 15 lines · Krzysztof Helt
Quoted 10 lines · On Mon, 26 Jan 2009 18:33:15 +0100 Krzysztof Helt <[email protected]>…
The problem is more complicated. The cs4236+ cards have two separate PNP bios ids! The problem here is that Linux kernel allows only one id per device. The ids are CS0010* for the CS0000* device and CS0110* for the CS0100* devices. The second device has only control port range (one io range).
I have prepared the patch which I tested on my Dell Latitude CPi laptop and now it properly discovers the CS4237B codec. Stanley, please test it as well.
Quoted 5 lines
Takashi,
Please take a look at the patch which unifies the cs4232 and the cs4236+ driver code. It should solve all problems with the Crystal PnP BIOS chip detection. At least, it solves this at my Dell laptop.
It's pending just because I'm waiting for the report from Stanley.
The patch itself looks sane to me. We'll need an additional change to remove snd-cs4236, too, though.
Regarding removal of cs4236 -- it'd be perhaps better to provide a module alias of snd-cs4236 to keep the old system happy. But it's just a minor issue.
Takashi
Krzysztof,
Thank you for the pointers. I have since upgraded to 2.6.28 and
followed your blacklist suggestions. I will report back if the bug reappears. Perhaps if the bug is indeed squashed, the wiki entry on the Tecra can be updated with these suggestions.
Stanley Pinchak
Quoted 34 lines · Krzysztof Helt
Hi Stanley,
In short words, you need to upgrade the kernel. Also, blacklist or delete the snd-cs4236.ko module.
A longer description. The ALSA page about Tecra laptop you mentioned is wrong. Your CS4232 card is a PNP BIOS device and does not need any parameters. However, your kernel is dated 20080623 and there was a fix for a cs4232 driver crash commited on 20080727 to the kernel. The crash is visible in your dmesg file:
[ 91.243845] BUG: unable to handle kernel NULL pointer dereference at 00000158 [ 91.244314] IP: [<c02088ad>] pnp_activate_dev+0x3/0x3a [ 91.244714] *pde = 00000000 [ 91.244977] Oops: 0000 [#1]Next thing is that your have a second driver loaded:
the snd-cs4236. Do not load this driver. AFAIR, the snd-cs4236 driver should be blacklisted or removed on laptop with the cs4232 chip and PNP BIOS. The cs4236 and cs4232 have the same PNP BIOS id-s. The snd-cs4236 was incorrectly loaded instead of the snd-cs4232 at least on my laptop (old Dell).I hope this helps you,
Krzysztof----------------------------------------------------------------------
Promocja w Speak Up. 3 miesiace angielskiego gratis. Sprawdz teraz i wypelnij formularz! >> http://link.interia.pl/f2019