Sound skipping problems

Sebastiaan van Erk sebster at sebster.com
Tue Nov 8 02:14:52 PST 2005


Hi,

thanks for the reply. In fact I already used the REL_ENG_6 patch. I 
applied the new version and recompiled and still no sound. I attached 
the information you requested below.

Greetings,
Sebastiaan van Erk

Ariff Abdullah wrote:
> [ stable@ -> multimedia@ ]
> 
> On Mon, 07 Nov 2005 12:27:50 +0100
> Sebastiaan van Erk <sebster at sebster.com> wrote:
> 
>>I tried the patch, but unfortunately when I reboot with the patch
>>(which  cleanly applies and compiles), audio stops working. The
>>device (pcm0) is  still there, the mixer is set ok, and everything
>>looks normal, just no  sound comes out of the speakers.
>>
>>I have no idea why the patch doesn't work, but if you want any more 
>>information I'll be happy to supply it to you. The sound skipping
>>seems  at least fixed by just increasing the buffer size, but don't
>>know how  reliable this workaround is compared to a structural
>>workaround.
>>
>>Furthermore I don't know if this message is relevant, but it seems
>>the  snd_8233 driver doesn't like my audio codec very much:
>>
>>pcm0: <VIA VT8237> port 0xec00-0xecff irq 22 at device 17.5 on pci0
>>pcm0: [GIANT-LOCKED]
>>pcm0: <Unknown AC97 Codec (id = 0x56494170)>
>>
> Sorry, I gave the wrong patch. You should get snd_RELENG_6_2005*
> instead of snd_RELENG_6_0_2005*. Still, the problem (non working
> sound) is quite interesting for me. I'm mostly interested for the
> output of /usr/sbin/mixer and cat /dev/sndstat (with sysctl
> hw.snd.verbose=2). Please try again. Your AC97 codec id has been
> added.
> 
> http://people.freebsd.org/~ariff/snd_RELENG_6_20051108_059.diff
> 
> http://people.freebsd.org/~ariff/README for hints and common
> problem/solution.
> 
> 
> 
> 
> --
> Ariff Abdullah
> MyBSD
> 
> http://www.MyBSD.org.my (IPv6/IPv4)
> http://staff.MyBSD.org.my (IPv6/IPv4)
> http://tomoyo.MyBSD.org.my (IPv6/IPv4)
-------------- next part --------------
root at piglet(ttyp1:32:0):~# uname -a
FreeBSD piglet.sebster.com 6.0-STABLE FreeBSD 6.0-STABLE #4: Tue Nov  8 10:34:27 CET 2005     root at piglet.sebster.com:/usr/obj/usr/src/sys/PIGLET  i386

root at piglet(ttyp1:33:0):~# dmesg | grep pcm
pcm0: <VIA VT8237> port 0xec00-0xecff irq 22 at device 17.5 on pci0
pcm0: [GIANT-LOCKED]
pcm0: <Unknown AC97 Codec (id = 0x56494170)>
pcm0: <VIA VT8237> port 0xec00-0xecff irq 22 at device 17.5 on pci0
pcm0: <VIA Technologies VIA1617A AC97 Codec>
pcm0: <VIA DXS Enabled: DXS 4 / SGD 1 / REC 1>

root at piglet(ttyp1:34:0):~# sysctl -w hw.snd.verbose=2
hw.snd.verbose: 1 -> 2

root at piglet(ttyp1:35:0):~# sysctl -a hw.snd
hw.snd.report_soft_formats: 1
hw.snd.targetirqrate: 32
hw.snd.feeder_rate_buffersize: 8192
hw.snd.feeder_rate_scaling: 5
hw.snd.feeder_rate_ratemax: 1102500
hw.snd.feeder_rate_ratemin: 4000
hw.snd.verbose: 2
hw.snd.slave_enabled: 1
hw.snd.maxautovchans: 0
hw.snd.unit: 0
hw.snd.pcm0.buffersize: 65536
hw.snd.pcm0.vchans: 0
hw.snd.pcm0.spdif_enabled: 0
hw.snd.pcm0.via_dxs_src: 0

root at piglet(ttyp1:36:0):~# pciconf -lv
...
pcm0 at pci0:17:5: class=0x040100 card=0x04301462 chip=0x30591106 rev=0x60 hdr=0x00
    vendor   = 'VIA Technologies Inc'
    device   = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller'
    class    = multimedia
    subclass = audio
...

root at piglet(ttyp1:37:0):~# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <VIA VT8237> at io 0xec00 irq 22 kld snd_via8233 (5p/5s/1r/0v channels duplex default)
        [pcm0:play:0]: spd 48000, fmt 0x10000010, flags 0x00203000, 0x00000000
        interrupts 2196, underruns 0, ready 0 [b:8192/4096/2|bs:8192/4096/2]
        {userland} -> feeder_slave(0x10000010) -> {hardware}
        pcm0:play:0[pcm0:slave:0]: spd 44100/48000, fmt 0x10000010, flags 0x20000000, 0x00000020
        interrupts 0, underruns 0, ready 0 [b:0/4096/0|bs:131072/4096/32]
        {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware}
        [pcm0:play:1]: spd 48000, fmt 0x00000008, flags 0x00201000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:2048/1024/2|bs:131072/1024/128]
        {userland} -> feeder_slave(0x00000008) -> {hardware}
        pcm0:play:1[pcm0:slave:1]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:play:2]: spd 48000, fmt 0x00000008, flags 0x00201000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:2048/1024/2|bs:131072/1024/128]
        {userland} -> feeder_slave(0x00000008) -> {hardware}
        pcm0:play:2[pcm0:slave:2]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:play:3]: spd 48000, fmt 0x00000008, flags 0x00201000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:2048/1024/2|bs:131072/1024/128]
        {userland} -> feeder_slave(0x00000008) -> {hardware}
        pcm0:play:3[pcm0:slave:3]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:play:4]: spd 4000, fmt 0x00000008, flags 0x00201000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:128/64/2|bs:131072/64/2048]
        {userland} -> feeder_slave(0x00000008) -> {hardware}
        pcm0:play:4[pcm0:slave:4]: spd 0, fmt 0x00000000/0x00000008, flags 0x20000000, 0x00000000
        interrupts 0, underruns 0, ready 0 [b:0/0/0|bs:0/0/0]
        {userland} -> feeder_root(0x00000000) -> {hardware}
        [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000, 0x00000000 
        interrupts 0, overruns 0, hfree 65536, sfree 0 [b:65536/32768/2|bs:0/0/0]
        {hardware} -> feeder_root(0x00000000) -> {userland}

root at piglet(ttyp1:38:0):~# /usr/sbin/mixer 
Mixer vol      is currently set to  75:75
Mixer pcm      is currently set to  75:75
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 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   0:0
Recording source: mic


More information about the freebsd-multimedia mailing list