Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2002 13:53:54 -0800 (PST)
From:      kannan varadhan <kva3_outbound_only@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   SONY PCG-Z505LE, Freebsd 4.5 RELEASE and sound
Message-ID:  <20020225215354.57866.qmail@web21309.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
I just recently installed freebsd 4.5 release on my sony laptop,
and my sound does not appear to be working at all.  It looks like
this area of source code in the repository has not been touched in
awhile; however, my problems appear identical to others that
people have observed in the past.  So I must be doing something
wrong, but am not sure what that would be.  

I see  one of two  possible symptoms.  In  one, I see the dreaded
`ac97 codec init failed', at which point, trying to probe the
device, with say the `mixer' tool gets me:

malgudi# mixer
mixer: /dev/mixer: Device not configured

Otherwise, the mixer tells me that the device is configured for 75%
volume etc.  In either case, sending "junk" into /dev/audio does not
result in any audible response.

Any help is appreciated. 
Thanks, -- Kannan

Here are the details:

1.  The machine is:
$ uname -a
FreeBSD kannan@hostname 4.5-RELEASE FreeBSD 4.5-RELEASE #3: 
                  Fri Feb22 16:44:56 PST 2002
                  kannan@hostname:/usr/src/sys/compile/MALGUDI
                  i386

2.  On boot, I get the following:

malgudi# dmesg | grep pcm
pcm0: <Yamaha DS-1E (YMF744)> mem 0xfecf0000-0xfecf7fff irq 9 at device 9.0 on p
ci0
pcm0: ac97 codec init failed
pcm0: play interrupt timeout, channel dead
...

pcm0: <Yamaha DS-1E (YMF744)> mem 0xfecf0000-0xfecf7fff irq 9 at device 9.0 on p
ci0
ds_initcd(), pci_read_config(<pcm0, Yamaha DS-1E (YMF744)>, PCIR_DSXGCTRL = 72,
1) = 00000000                   <<<
pcm0: ac97 codec init failed
pcm: setmap 21000, 1000; 0xc9dff000 -> 21000
pcm: setmap 31000, 1000; 0xc9e0f000 -> 31000
pcm: setmap 41000, 1000; 0xc9e1f000 -> 41000
pcm: setmap 51000, 1000; 0xc9e2f000 -> 51000
pcm: setmap 61000, 1000; 0xc9e3f000 -> 61000
pcm: setmap 71000, 1000; 0xc9e4f000 -> 71000
...

<<< I added that line of printout in /sys/dev/sound/pci/ds1.c to try to see what
was happenning.
3.  The chip appears correctly identified.  Here's the output of
pciconf around that region.

$ pciconf -l -v
...
none0@pci0:8:0: class=0x0c0010 card=0x8080104d chip=0x8039104d
                                        rev=0x02 hdr=0x00
    vendor   = 'Sony Corporation'
    device   = 'CXD3222 OHCI i.LINK (IEEE 1394) PCI Host Ctrlr'
    class    = serial bus
    subclass = FireWire
pcm0@pci0:9:0:  class=0x040100 card=0x8081104d chip=0x00101073
                                        rev=0x02 hdr=0x00
    vendor   = 'Yamaha Corporation'
    device   = 'YMF744B DS-1S PCI audio controller'
    class    = multimedia
    subclass = audio
none1@pci0:10:0:        class=0x078000 card=0x8083104d
                                 chip=0x244314f1 rev=0x01 hdr=0x00
    vendor   = 'Conexant Systems, Inc.'
    device   = 'HSF 56k Data/Fax Modem (Mob WorldW SmartDAA)'
    class    = simple comms
...

4.  Finally, my kernel config is:
malgudi# strings /kernel.TEST | egrep ^___
___machine              i386
___cpu          I386_CPU
___cpu          I486_CPU
___cpu          I586_CPU
___cpu          I686_CPU
___ident                MALGUDI
___maxusers     0
___#makeoptions DEBUG=-g                #Build kernel with gdb(1) debug symbols
___options      MATH_EMULATE            #Support for x87 emulation
___options      INET                    #InterNETworking
___options      FFS                     #Berkeley Fast Filesystem
___options      FFS_ROOT                #FFS usable as root device [keep this!]
___options      SOFTUPDATES             #Enable FFS soft updates support
___options      UFS_DIRHASH             #Improve performance on big directories
___options      MFS                     #Memory Filesystem
___options      MD_ROOT                 #MD is a potential root device
___options      NFS                     #Network Filesystem
___options      MSDOSFS                 #MSDOS Filesystem
___options      CD9660                  #ISO 9660 Filesystem
___options      CD9660_ROOT             #CD-ROM usable as root, CD9660 required
___options      PROCFS                  #Process filesystem
___options      COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
___options      SCSI_DELAY=15000        #Delay (in ms) before probing SCSI
___options      UCONSOLE                #Allow users to grab the console
___options      KTRACE                  #ktrace(1) support
___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              ICMP_BANDLIM            #Rate limit bad replies
___options      KBD_INSTALL_CDEV        # install a CDEV entry in /dev
___options              USER_LDT                # allow user-level control of i3
86 ldt
___options         INCLUDE_CONFIG_FILE     # Include this file in kernel
___#options         PNPBIOS
___device               isa
___device               eisa
___device               pci
___# ATA and ATAPI devices
___device               ata0    at isa? port IO_WD1 irq 14
___device               ata1    at isa? port IO_WD2 irq 15
___device               ata
___device               atadisk                 # ATA disk drives
___device               atapicd                 # ATAPI CDROM drives
___device               atapifd                 # ATAPI floppy drives
___device               atapist                 # ATAPI tape drives
___options      ATA_STATIC_ID           #Static device numbering
___# SCSI peripherals
___device               scbus           # SCSI bus (required)
___device               da              # Direct Access (disks)
___# atkbdc0 controls both the keyboard and the PS/2 mouse
___device               atkbdc0 at isa? port IO_KBD
___device               atkbd0  at atkbdc? irq 1 flags 0x1
___device               psm0    at atkbdc? irq 12
___device               vga0    at isa?
___pseudo-device        splash                          # splash screen/screen s
aver
___device               sc0     at isa? flags 0x100     # default console driver
___device               npx0    at nexus? port IO_NPX irq 13
___device               apm0                            # Advanced Power Managem
ent
___# PCCARD (PCMCIA) support
___device               card
___device               pcic0   at isa? irq 0 port 0x3e0 iomem 0xd0000  
___# Serial (COM) ports
___device               sio0    at isa? port IO_COM1 flags 0x10 irq 4
___device               sio1    at isa? port IO_COM2 irq 3
___# Parallel port
___device               ppc0    at isa? irq 7
___device               ppbus           # Parallel port bus (required)
___device               miibus          # MII bus support
___device               fxp             # Intel EtherExpress PRO/100B (82557, 82
558)
___device               wi
___device               an
___pseudo-device        loop            # Network loopback
___pseudo-device        ether           # Ethernet support
___pseudo-device        tun             # Packet tunnel.
___pseudo-device        pty             # Pseudo-ttys (telnet etc)
___pseudo-device        md              # Memory "disks"
___pseudo-device        bpf             #Berkeley packet filter
___# sounds
___#pseudo-device       speaker
___#device              pca0 at isa? port IO_TIMER1
___#device         pcm0 at isa? irq 10 drq 1 flags 0x0
___device               pcm
___# USB support
___device               uhci            # UHCI PCI->USB interface
___device               ohci            # OHCI PCI->USB interface
___device               usb             # USB Bus (required)
___device               ugen            # Generic
___device               uhid            # "Human Interface Devices"
___device               ukbd            # Keyboard
___device               ulpt            # Printer
___device               umass           # Disks/Mass storage - Requires scbus an
d da
___device               ums             # Mouse
___device               uscanner        # Scanners
___device               urio            # Diamond Rio MP3 Player
___# USB Ethernet, requires mii
___device               aue             # ADMtek USB ethernet
___device               cue             # CATC USB ethernet
___device               kue             # Kawasaki LSI USB ethernet


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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