Re: X breaks sound

2013-05-15 Thread Anton Shterenlikht

On Tue, 2013-05-14 at 21:20 +0100, Anton Shterenlikht wrote:
 Briefly, the sound works fine until X starts.
 As soon as X starts, sound doesn't work until a reboot.

Assumed pulseaudio should be installed, this likely is the culprit, if
so, remove it.

Hth,
Ralf

no, I haven't got it installed.

Anton

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


X breaks sound

2013-05-14 Thread Anton Shterenlikht
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 0xc000-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: 
hdac0: Unexpected unsolicited response from address 0: 04a12020
hdac0: Unexpected unsolicited response from address 0: 1727
hdac0: Unexpected unsolicited response from address 0: 0020
hdac0: Unexpected unsolicited response from address 0: 00400187
hdac0: Unexpected unsolicited response from address 0: 0002
hdac0: Unexpected unsolicited response from address 0: 0e03
hdac0: Unexpected unsolicited response from address 0: 0181302e
hdac0: Unexpected unsolicited response from address 0: 1737

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=0x03 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 0xc010-0xc80f,0
xd020-0xd020,0xd030-0xd03f irq 19 at device 5.0 on pci1
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb 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 @ 0xc000/134217728, 0xd020/65536, 0
xd030/1048576, I/O @ 0x4000/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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: X breaks sound

2013-05-14 Thread Ralf Mardorf
On Tue, 2013-05-14 at 21:20 +0100, Anton Shterenlikht wrote:
 Briefly, the sound works fine until X starts.
 As soon as X starts, sound doesn't work until a reboot.

Assumed pulseaudio should be installed, this likely is the culprit, if
so, remove it.

Hth,
Ralf

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org