Date: Sat, 4 Jan 2003 00:29:38 +0700 (KRAT) From: Eugene.Grosbein@grosbein.pp.ru To: FreeBSD-gnats-submit@freebsd.org Cc: multimedia@freebsd.org Subject: ISA audio CS4232 (HP Omnibook 5000C) work only once Message-ID: <200301031729.h03HTc5W042650@grosbein.pp.ru>
next in thread | raw e-mail | index | archive | help
>Submitter-Id: current-users
>Originator: Eugene Grosbein
>Organization: Private person
>Confidential: no
>Synopsis: ISA audio CS4232 (HP Omnibook 5000C) work only once
>Severity: serious
>Priority: medium
>Category: kern
>Class: sw-bug
>Release: FreeBSD 4.7-STABLE i386
>Environment:
System: FreeBSD hp.grosbein.pp.ru 4.7-STABLE FreeBSD 4.7-STABLE #5: Fri Jan 3 22:51:17 KRAT 2003 root@hp.grosbein.pp.ru:/usr/src/sys/compile/HP i386
HP OmniBook 5000C without accumulator, ISA audio card CS4232,
pcm(4) kernel driver, apm is not enabled.
>Description:
My HP Omnibook 5000C has built-in ISA sound card CS4232
that is properly detected by a kernel. I use mpg123 from ports
to play MP3's. It plays a file OK but only once. If I run it
second time, it pretends to work but there is no sound,
top(1) shows that mpg123 spends all the time in RUN state
(it spends lots of time in pcmwrite first time) and a message
is written to console:
pcm0:play:0: play interrupt timeout, channel dead
Plain reboot does NOT revive audio playback. Note: after
reboot my PCMCIA 3com Etherlink III ethernet card will NOT
be detected by pccardd as usual uless I manually run
'pccardc enabler'.
I have two options:
1. This system doesn't have a battry, so I can halt
it and disconect AC power supply for short period of time.
NP: this system preserves dmesg(8) output between several
plain reboots.
-or-
2. This system is dual-boot, so I can just reboot to Windows95
and go back to FreeBSD without turning power off.
Sound is revived after one of these two actions and 3com
card is detected by pccardd automatically.
But, again, until next usage of audio only.
It seems there is a bug in a driver.
Here is some info about my system:
# cat </dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <CS423x> at io 0x534 irq 5 drq 1:0 bufsz 4096 (1p/1r/0v channels duplex)
# cat </var/run/dmesg.boot
Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.7-STABLE #5: Fri Jan 3 22:51:17 KRAT 2003
root@hp.grosbein.pp.ru:/usr/src/sys/compile/HP
Timecounter "i8254" frequency 1193175 Hz
CPU: Pentium/P54C (90.00-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x525 Stepping = 5
Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory = 16777216 (16384K bytes)
sio0: gdb debugging port
avail memory = 13156352 (12848K bytes)
Preloaded elf kernel "kernel" at 0xc0331000.
Intel Pentium detected, installing workaround for F00F bug
VESA: v1.2, 960k memory, flags:0x0, mode table:0xc00c36b1 (c00036b1)
VESA: CHIPS 65520/525/530 Flat Panel VGA
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
isab0: <PCI to ISA bridge (vendor=1045 device=c558)> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <Chips & Technologies 65545 SVGA controller> at 2.0
pcic0: <Cirrus Logic PD6729/6730 PCI-PCMCIA Bridge> port 0x3400-0x3403 at device 3.0 on pci0
pcic0: Polling mode
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pccard1: <PC Card 16-bit bus (classic)> on pcic0
orm0: <Option ROMs> at iomem 0xc0000-0xc9fff,0xca000-0xca7ff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0
sio0: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
pca0 at port 0x40 on isa0
pcm0: <CS423x> at port 0x534-0x537,0x388-0x38b,0x220-0x22f irq 5 drq 1,0 on isa0
DUMMYNET initialized (011031)
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, unlimited logging
ad0: 777MB <TOSHIBA MK1926FCV> [1579/16/63] at ata0-master BIOSPIO
Mounting root from ufs:/dev/ad0s2a
pccard: card inserted, slot 1
>How-To-Repeat:
Get HP OmniBook 5000C, install mpg123 from ports, build next
kernel, boot it and try to play an MP3 file several times.
Kernel config:
# HP kernel config
#for strings -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
options INCLUDE_CONFIG_FILE
machine i386
cpu I586_CPU
ident HP
maxusers 0
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
options CLK_CALIBRATION_LOOP
options "CLK_USE_I8254_CALIBRATION"
options CLK_USE_TSC_CALIBRATION
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI
options IDE_DELAY=8000 # Be optimistic about Joe IDE device
options UCONSOLE #Allow users to grab the console
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options KTRACE #ktrace(1) support
options CPU_SUSP_HLT
options USER_LDT
options PPP_BSDCOMP
options PPP_DEFLATE
options PPP_FILTER
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L
options ICMP_BANDLIM #Rate limit bad replies
options NSWAPDEV=3
device isa
device pci
# Floppy drives
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device ata0 at isa? port IO_WD1 irq 14
device ata1 at isa? port IO_WD2 irq 15 disable
options ATA_STATIC_ID #Static device numbering
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
# Options for atkbd:
options ATKBD_DFLT_KEYMAP # specify the built-in keymap
makeoptions ATKBD_DFLT_KEYMAP="ru.koi8-r.pdwn"
device psm0 at atkbdc? irq 12
device vga0 at isa?
options VESA
# splash screen/screen saver
pseudo-device splash
# syscons is the default console driver, resembling an SCO console
device sc0 at isa?
options SC_DFLT_FONT # compile font in
makeoptions SC_DFLT_FONT=cp866
options MAXCONS=16
options SC_HISTORY_SIZE=1000
options SC_MOUSE_CHAR=0x03
options SC_TWOBUTTON_MOUSE
options SC_PIXEL_MODE
# Floating point support - do not disable.
device npx0 at nexus? port IO_NPX irq 13
# Power management support (see LINT for more options)
device apm0 at nexus? disable # Advanced Power Management
# Serial (COM) ports
device sio0 at isa? port IO_COM1 flags 0x90 irq 4
device sio1 at isa? port IO_COM2 irq 3 disable
options BREAK_TO_DEBUGGER #a BREAK on a comconsole goes to
#DDB, if available.
options CONSPEED=115200 # speed for serial console
device card
device pcic
device ep
# Parallel port
device ppc0 at isa? irq 7
device ppbus # Parallel port bus (required)
device lpt # Printer
device ppi # Parallel port interface device
#device joy0 at isa? port IO_GAME
# Pseudo devices - the number indicates how many units to allocated.
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device pty 64 # Pseudo-ttys (telnet etc)
pseudo-device speaker
# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device bpf #Berkeley packet filter
options MSGBUF_SIZE=40960
device pcm
device pca0 at isa? port IO_TIMER1
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPDIVERT
options DUMMYNET
options SOFTUPDATES
options DDB
options GDB_REMOTE_CHAT
options RANDOM_IP_ID
options UFS_DIRHASH
options SHOW_BUSYBUFS
options PCIC_RESUME_RESET
>Fix:
Unknown to me.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301031729.h03HTc5W042650>
