Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2013 21:20:32 +0100 (BST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        freebsd-questions@freebsd.org
Subject:   X breaks sound
Message-ID:  <201305142020.r4EKKWeB065218@mech-cluster241.men.bris.ac.uk>

next in thread | raw e-mail | index | archive | help
Briefly, the sound works fine until X starts.
As soon as X starts, sound doesn't work until a reboot.

This is HP Compaq 6715s laptop.
I'm running current r250633.

I have this sound device:

hdac0@pci0:0:20:2:      class=0x040300 card=0x30c2103c chip=0x43831002 rev=0x00
hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD] nee ATI'
    device     = 'SBx00 Azalia (Intel HDA)'
    class      = multimedia
    subclass   = HDA

I use it with snd_hda(4):

hdac0: <ATI SB600 HDA Controller> mem 0xc0000000-0xc0003fff irq 16 at device 20.
2 on pci0

Until I start X, I can get sound e.g.
via /dev/dsp, or play a cd with:

dd if=/dev/cd0 of=/dev/dspcd bs=2352

As soon as I start X, either via xdm,
or simply "X -config /roor/xorg.conf.new -retro"
the sound does not work anymore until reboot.
Instead I see on the console a very long stream
of:

hdac0: Unexpected unsolicited response from address 0: 00400083
hdac0: Unexpected unsolicited response from address 0: 00000000
hdac0: Unexpected unsolicited response from address 0: 04a12020
hdac0: Unexpected unsolicited response from address 0: 00001727
hdac0: Unexpected unsolicited response from address 0: 00000020
hdac0: Unexpected unsolicited response from address 0: 00400187
hdac0: Unexpected unsolicited response from address 0: 00000002
hdac0: Unexpected unsolicited response from address 0: 00000e03
hdac0: Unexpected unsolicited response from address 0: 0181302e
hdac0: Unexpected unsolicited response from address 0: 00001737

etc.

and sometimes:

hdac0: Command timeout on address 0
hdac0: Reset setting timeout
pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead

My graphics device is:

vgapci0@pci0:1:5:0:     class=0x030000 card=0x30c2103c chip=0x791f1002 rev=0x00
hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD] nee ATI'
    device     = 'RS690M [Radeon X1200 Series]'
    class      = display
    subclass   = VGA

which is seen in dmesg as:

vgapci0: <VGA-compatible display> port 0x4000-0x40ff mem 0xc0100000-0xc80fffff,0
xd0200000-0xd020ffff,0xd0300000-0xd03fffff irq 19 at device 5.0 on pci1
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0

I use x11-drivers/xf86-video-ati port to drive it.

In Xorg logs I see that the card is recognised correctly:

(--) PCI:*(0:1:5:0) 1002:791f:103c:30c2 Advanced Micro Devices [AMD] nee ATI RS6
90M [Radeon X1200 Series] rev 0, Mem @ 0xc0000000/134217728, 0xd0200000/65536, 0
xd0300000/1048576, I/O @ 0x00004000/256, BIOS @ 0x????????/65536

The only issue seems to be with DRM/DRI:

drmOpenDevice: node name is /dev/dri/card0
Failed to change owner or group for file /dev/dri! 2: No such file or directory
Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire
ctory
drmOpenDevice: open result is -1, (No such file or directory)
Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire
ctory
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
[drm] failed to load kernel module "radeon"
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.

But I don't think this is related to the sound problem.
Anyway, should I add radeon and drm to the kernel?
Is it a good idea?

I'd be grateful for any advice.

Thanks

Anton




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