Summary: | ASTERISK-02496: Linux 2.6: Timing off when using USB devices | ||
Reporter: | gunnar (gunnar) | Labels: | |
Date Opened: | 2004-09-28 17:55:48 | Date Closed: | 2004-09-29 16:06:14 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | When using a USB webcam on a box running Asterisk with ztdummy (no ISDN hw) and Linux 2.6, the sound in Asterisk is severly distorted. This applies both to calls made over IAX2 trunks and to prompts being played by the Asterisk box. As soon as the USB webcam is disconnected, or just the driver is manually rmmod'ed, the sound returns to normal. The reason I don't just immediately conclude that the webcam's driver is to blame is that I have tried several different webcams using different drivers and the problem persists. ****** ADDITIONAL INFORMATION ****** libpri, zaptel and Asterisk built from CVS sources as of today: Asterisk CVS-HEAD-09/28/04-23:08:55 In the hope that too much information is better than too little information, I include the latest dmesg from the machine in question: Linux version 2.6.3-16mdk (qateam@updates.mandrakesoft.com) (gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)) #1 Fri Aug 13 16:33:14 MDT 2004 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 000000002fff0000 (usable) BIOS-e820: 000000002fff0000 - 000000002fff3000 (ACPI NVS) BIOS-e820: 000000002fff3000 - 0000000030000000 (ACPI data) BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 767MB LOWMEM available. On node 0 totalpages: 196592 DMA zone: 4096 pages, LIFO batch:1 Normal zone: 192496 pages, LIFO batch:16 HighMem zone: 0 pages, LIFO batch:1 DMI 2.2 present. ACPI disabled because your bios is from 2000 and too old You can enable it with acpi=force Built 1 zonelists Kernel command line: auto BOOT_IMAGE=linux ro root=301 devfs=mount acpi=ht resume=/dev/hda5 splash=silent bootsplash: silent mode. Local APIC disabled by BIOS -- reenabling. Found and enabled local APIC! Initializing CPU#0 PID hash table entries: 4096 (order 12: 32768 bytes) Detected 750.494 MHz processor. Using tsc for high-res timesource Console: colour dummy device 80x25 Memory: 774360k/786368k available (1817k kernel code, 11256k reserved, 848k data, 272k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay loop... 1470.46 BogoMIPS Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 132k freed CPU: After generic identify, caps: 0183fbff c1c3fbff 00000000 00000000 CPU: After vendor identify, caps: 0183fbff c1c3fbff 00000000 00000000 CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 512K (64 bytes/line) CPU: After all inits, caps: 0183fbff c1c3fbff 00000000 00000020 Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: AMD Athlon(tm) Processor stepping 01 Enabling fast FPU save and restore... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX enabled ExtINT on CPU#0 ESR value before enabling vector: 00000000 ESR value after enabling vector: 00000000 Using local APIC timer interrupts. calibrating APIC timer ... ..... CPU clock speed is 749.0950 MHz. ..... host bus clock speed is 199.0986 MHz. NET: Registered protocol family 16 EISA bus registered PCI: PCI BIOS revision 2.10 entry at 0xfb170, last bus=1 PCI: Using configuration type 1 mtrr: v2.0 (20020519) ACPI: Subsystem revision 20040211 ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay PnPBIOS: Disabled PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Using IRQ router VIA [1106/0686] at 0000:00:07.0 spurious 8259A interrupt: IRQ7. vesafb: framebuffer at 0xd4000000, mapped to 0xf0800000, size 16384k vesafb: mode is 800x600x16, linelength=1600, pages=33 vesafb: protected mode interface info at c000:4bbb vesafb: scrolling: redraw vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 fb0: VESA VGA frame buffer device apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac) ikconfig 0.7 with /proc/config* VFS: Disk quotas dquot_6.5.1 devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 Initializing Cryptographic API PCI: Disabling Via external APIC routing isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found bootsplash 3.1.4-2004/02/19: looking for picture.... silentjpeg size 14856 bytes, found (800x600, 14808 bytes, v3). Console: switching to colour frame buffer device 92x32 pty: 1024 Unix98 ptys configured Serial: 8250/16550 driver $Revision: 1.90 $ 20 ports, IRQ sharing enabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller at PCI slot 0000:00:07.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: VIA vt82c686a (rev 1b) IDE UDMA66 controller on pci0000:00:07.1 ide0: BM-DMA at 0xa000-0xa007, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xa008-0xa00f, BIOS settings: hdc:DMA, hdd:pio hda: WDC WD400BB-75CAA0, ATA DISK drive Using anticipatory io scheduler ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hdc: SONY CD-RW CRX160E, ATAPI CD/DVD-ROM drive ide1 at 0x170-0x177,0x376 on irq 15 hda: max request size: 128KiB hda: Host Protected Area detected. current capacity is 78125000 sectors (40000 MB) native capacity is 78125040 sectors (40000 MB) hda: 78125000 sectors (40000 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(66) /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 > mice: PS/2 mouse device common for all mice serio: i8042 AUX port at 0x60,0x64 irq 12 input: ImPS/2 Generic Wheel Mouse on isa0060/serio1 serio: i8042 KBD port at 0x60,0x64 irq 1 input: AT Translated Set 2 keyboard on isa0060/serio0 md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 EISA: Probing bus 0 at eisa0 NET: Registered protocol family 2 IP: routing cache hash table of 8192 buckets, 64Kbytes TCP: Hash tables configured (established 262144 bind 65536) NET: Registered protocol family 1 BIOS EDD facility v0.13 2004-Mar-09, 1 devices found Please report your BIOS at http://linux.dell.com/edd/results.html Resume Machine: resuming from /dev/hda5 Resuming from device hda5 Resume Machine: This is normal swap space PM: Reading pmdisk image. PM: Resume from disk failed. md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). Mounted devfs on /dev EXT3-fs: INFO: recovery required on readonly filesystem. EXT3-fs: write access will be enabled during recovery. kjournald starting. Commit interval 5 seconds EXT3-fs: hda1: orphan cleanup on readonly fs ext3_orphan_cleanup: deleting unreferenced inode 425805 EXT3-fs: hda1: 1 orphan inode deleted EXT3-fs: recovery complete. EXT3-fs: mounted filesystem with ordered data mode. Mounted devfs on /dev Freeing unused kernel memory: 272k freed Real Time Clock Driver v1.12 drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1 PCI: Found IRQ 11 for device 0000:00:07.2 PCI: Sharing IRQ 11 with 0000:00:07.3 PCI: Sharing IRQ 11 with 0000:00:0d.0 uhci_hcd 0000:00:07.2: UHCI Host Controller uhci_hcd 0000:00:07.2: irq 11, io base 0000a400 uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected PCI: Found IRQ 11 for device 0000:00:07.3 PCI: Sharing IRQ 11 with 0000:00:07.2 PCI: Sharing IRQ 11 with 0000:00:0d.0 uhci_hcd 0000:00:07.3: UHCI Host Controller uhci_hcd 0000:00:07.3: irq 11, io base 0000a800 uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2 hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected usb 1-2: new full speed USB device using address 2 usb 2-1: new full speed USB device using address 2 bootsplash: status on console 0 changed to on SCSI subsystem initialized Initializing USB Mass Storage driver... scsi0 : SCSI emulation for USB Mass Storage devices Vendor: USB2.0 Model: HS-CF Rev: 1.95 Type: Direct-Access ANSI SCSI revision: 02 Vendor: USB2.0 Model: HS-MS Rev: 1.95 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1 Vendor: USB2.0 Model: HS-SM Rev: 1.95 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sdc at scsi0, channel 0, id 0, lun 2 Vendor: USB2.0 Model: HS-SD/MMC Rev: 1.95 Type: Direct-Access ANSI SCSI revision: 02 Attached scsi removable disk sdd at scsi0, channel 0, id 0, lun 3 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 2 drivers/usb/core/usb.c: registered new driver usb-storage USB Mass Storage support registered. EXT3 FS on hda1, internal journal Adding 511520k swap on /dev/hda5. Priority:-1 extents:1 Linux agpgart interface v0.100 (c) Dave Jones agpgart: Detected VIA KX133 chipset agpgart: Maximum main memory to use for agp memory: 690M agpgart: AGP aperture is 64M @ 0xd0000000 kjournald starting. Commit interval 5 seconds EXT3 FS on hda6, internal journal EXT3-fs: mounted filesystem with ordered data mode. 8139too Fast Ethernet driver 0.9.27 PCI: Found IRQ 11 for device 0000:00:0d.0 PCI: Sharing IRQ 11 with 0000:00:07.2 PCI: Sharing IRQ 11 with 0000:00:07.3 eth0: RealTek RTL8139 at 0xf1950000, 00:00:e8:99:87:48, IRQ 11 eth0: Identified 8139 chip type 'RTL-8139A' | ||
Comments: | By: Russell Bryant (russell) 2004-09-28 18:03:15 ok, so ... why are you using a webcam on your Asterisk server? By: gunnar (gunnar) 2004-09-28 18:12:50 > why are you using a webcam on your Asterisk server? It's just a question of keeping the number of boxes down. The webcam can be removed or I can set up another machine, but I figured there might be a bug worth looking at here, so I wanted to report it in any case. By: Mark Spencer (markster) 2004-09-29 10:21:11 Unfortunately this is an operating system level problem. You may actually have better luck *not* using ztdummy, i'm not sure, but to the degree you are having trouble there's really nothing we can do :( |