Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Nov 2007 22:35:25 +0200
From:      Toomas Aas <Toomas.Aas@post.raad.tartu.ee>
To:        freebsd-multimedia@freebsd.org
Subject:   Integrated ICH5 sound on Intel D865GLC
Message-ID:  <20071107223525.7cdgzfww80gss0g0@webmail.raad.tartu.ee>

next in thread | raw e-mail | index | archive | help
Hello!

Is anyone here successfully using the onboard (ICH5) sound of Intel =20
D865GLC motherboard with 6.2? I'm trying to, and I'm not hearing any =20
:) I have tried both playing a .mp3 file via bmpx and simple 'cat =20
/dev/urandom > /dev/audio0.0', but there is simplly no sound, no =20
matter wheter I'm trying with my desktop speakers or headphones. This =20
system was running Windows XP until recently and sound worked there, =20
so it is likely that hardware is OK. The motherboard's BIOS is latest =20
version (P25). I tried booting with ACPI disabled (as suggested by =20
some Google search results) but this made no difference.

I do get one 'interesting' line in dmesg output ("pcm0: primary codec =20
not ready!"), I wonder whether this is somehow related to the problem...

Below is my system info.

# uname -a
FreeBSD originaal.kodu.lan 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Oct =20
17 21:59:22 EEST 2007     =20
toomas@originaal.kodu.lan:/usr/obj/usr/src/sys/ORIGINAAL  i386

# pciconf -lv | grep -B4 audio
pcm0@pci0:31:5: class=3D0x040100 card=3D0xe0028086 chip=3D0x24d58086 =20
rev=3D0x02 hdr=3D0x00
     vendor     =3D 'Intel Corporation'
     device     =3D '82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller'
     class      =3D multimedia
     subclass   =3D audio

# grep ^pcm /var/run/dmesg.boot
pcm0: <Intel ICH5 (82801EB)> mem =20
0xffa7f800-0xffa7f9ff,0xffa7f400-0xffa7f4ff irq 17 at device 31.5 on =20
pci0
pcm0: primary codec not ready!
pcm0: <Analog Devices AD1985 AC97 Codec>

# sysctl hw.snd.verbose=3D3 ; cat /dev/sndstat
hw.snd.verbose: 1 -> 3
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH5 (82801EB)> at io 0xffa7f800, 0xffa7f400 irq 17 bufsz =20
16384  (1p/1r/4v channels duplex default)
         [pcm0:play:0:dsp0.0]: spd 48000, fmt 0x10000010, flags =20
0x00101000, 0x00000000
         interrupts 6270, underruns 0, ready 0 =20
[b:8192/4096/2|bs:131072/4096/32]
         {userland} -> feeder_vchan_s16(0x10000010) -> {hardware}
         [pcm0:record:0:dsp0.1]: spd 0, fmt 0x00000000/0x00000008, =20
flags 0x00000000, 0x00000000
         interrupts 0, overruns 0, hfree 16384, sfree 0 =20
[b:16384/8192/2|bs:0/0/0]
         {hardware} -> feeder_root(0x00000000) -> {userland}
         pcm0:play:0:dsp0.0[pcm0:virtual:0:dsp0.2]: spd 8000/48000, =20
fmt 0x00000008/0x10000010, flags 0x10000000, 0x00000010
         interrupts 0, underruns 0, ready 0 [b:0/4096/0|bs:131072/128/1024]
         {userland} -> feeder_root(0x00000008) -> =20
feeder_u8toulaw(0x00000008 -> 0x00000001) -> =20
feeder_ulawtos16le(0x00000001 -> 0x00000010) -> =20
feeder_monotostereo16(0x00000010 -> 0x10000010) -> feeder_rate(8000 -> =20
48000) -> {hardware}
         pcm0:play:0:dsp0.0[pcm0:virtual:1:dsp0.3]: spd 0, fmt =20
0x00000000/0x00000008, flags 0x10000000, 0x00000000
         interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
         {userland} -> feeder_root(0x00000000) -> {hardware}
         pcm0:play:0:dsp0.0[pcm0:virtual:2:dsp0.4]: spd 0, fmt =20
0x00000000/0x00000008, flags 0x10000000, 0x00000000
         interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
         {userland} -> feeder_root(0x00000000) -> {hardware}
         pcm0:play:0:dsp0.0[pcm0:virtual:3:dsp0.5]: spd 0, fmt =20
0x00000000/0x00000008, flags 0x10000000, 0x00000000
         interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
         {userland} -> feeder_root(0x00000000) -> {hardware}

File Versions:
$FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.17.2.5 2007/02/04 06:17:14 =20
ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.93.2.5 2007/06/04 09:06:05 =20
ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.20.2.2 2005/12/30 =20
19:55:54 netchild Exp $
$FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.43.2.5 2007/05/13 20:53:39 =20
ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.2.2.1 2005/12/30 =20
19:55:54 netchild Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.11.2.2 2006/01/29 =20
02:27:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.14.2.2 2006/01/29 =20
02:27:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.33.2.3 2006/03/07 =20
15:51:19 jhb Exp $
$FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.14.2.1 2005/12/30 19:55:54 =20
netchild Exp $
$FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.80.2.7 2007/07/08 14:01:11 =20
ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.99.2.5 2007/05/13 =20
20:53:39 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.25.2.3 2007/04/26 =20
08:21:43 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.3.2.4 2007/07/04 =20
04:04:42 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.53.2.5 2007/05/13 20:53:39 =20
ariff Exp $
$FreeBSD: src/sys/dev/sound/pci/ich.c,v 1.53.2.12 2007/07/12 06:39:38 =20
ariff Exp $
$FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3 2005/01/06 01:43:17 =20
imp Exp $

# sysctl hw.snd dev.pcm
hw.snd.report_soft_formats: 1
hw.snd.targetirqrate: 32
hw.snd.compat_linux_mmap: 0
hw.snd.verbose: 3
hw.snd.maxautovchans: 4
hw.snd.unit: 0
hw.snd.pcm0.buffersize: 16384
hw.snd.pcm0.vchans: 4
hw.snd.pcm0.ac97rate: 48000
dev.pcm.0.%desc: Intel ICH5 (82801EB)
dev.pcm.0.%driver: pcm
dev.pcm.0.%location: slot=3D31 function=3D5
dev.pcm.0.%pnpinfo: vendor=3D0x8086 device=3D0x24d5 subvendor=3D0x8086 =20
subdevice=3D0xe002 class=3D0x040100
dev.pcm.0.%parent: pci0
# /usr/sbin/mixer
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to  75:75
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to  75:75
Mixer rec      is currently set to   0:0
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to  50:50
Mixer line1    is currently set to  75:75
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to  50:50
Recording source: mic

# cat /sys/i386/conf/ORIGINAAL

machine         i386
cpu             I686_CPU
ident           ORIGINAAL

options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
#options        INET6                   # IPv6 communications protocols
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big =20
directories
options         MD_ROOT                 # MD is a potential root device
#options        NFSCLIENT               # Network Filesystem Client
#options        NFSSERVER               # Network Filesystem Server
#options        NFS_ROOT                # NFS usable as /, requires NFSCLIEN=
T
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires =20
PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THIS=
!]
#options        COMPAT_FREEBSD4         # Compatible with FreeBSD4
#options        COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         SCSI_DELAY=3D5000         # Delay (in ms) before probing SCS=
I
options         KTRACE                  # ktrace(1) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time =20
extensions
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.

device          apic                    # I/O APIC

# Bus support.device          eisa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
options         ATA_STATIC_ID   # Static device numbering

# SCSI peripherals
device          scbus           # SCSI bus (required for SCSI)
device          da              # Direct Access (disks)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          kbdmux          # keyboard multiplexer

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc

device          agp             # support several AGP chipsets

# Add suspend/resume support for the i8254.
device          pmtimer

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus          # MII bus support
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
#device         sl              # Kernel SLIP
#device         ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"
#device         gif             # IPv6 and IPv4 tunneling
#device         faith           # IPv6-to-IPv4 relaying (translation)

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device          bpf             # Berkeley packet filter

# USB support
device          uhci            # UHCI PCI->USB interface
device          ehci            # EHCI PCI->USB interface (USB 2.0)
device          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse

# FireWire support
device          firewire        # FireWire bus code
device          sbp             # SCSI over FireWire (Requires scbus and da)

# Sound
device          sound
device          snd_ich

# SMBUS
device          smb
device          smbus
device          ichsmb

# ATAPI/CAM
device          atapicam

# Linux emulator
options         COMPAT_LINUX

# pf
device          pf
device          pflog




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071107223525.7cdgzfww80gss0g0>