Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2005 14:59:51 +0300
From:      Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
To:        Ariff Abdullah <skywizard@MyBSD.org.my>
Cc:        pav@FreeBSD.org
Subject:   snd_via8233 dxs_disabled patches (was: Re: skype on current/5.x and maestro-2E sound)
Message-ID:  <20050518145951.49423eaf@it.buh.cameradicommercio.ro>
In-Reply-To: <20050516225039.01def6b0.skywizard@MyBSD.org.my>
References:  <4286AB34.6050101@elischer.org> <42871944.4030506@elischer.org> <20050515163535.GB59332@stud.fit.vutbr.cz> <20050515121406.mawapm16gwkcs4gc@mail.encontacto.net> <1116182140.19799.9.camel@hood.oook.cz> <20050515215140.539d804f@it.buh.cameradicommercio.ro> <1116183590.19799.12.camel@hood.oook.cz> <20050515221522.2361523c@it.buh.cameradicommercio.ro> <20050516225039.01def6b0.skywizard@MyBSD.org.my>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 May 2005 22:50:39 +0800
Ariff Abdullah <skywizard@MyBSD.org.my> wrote:

> On Sun, 15 May 2005 22:15:22 +0300
> Ion-Mihai Tetcu <itetcu@people.tecnik93.com> wrote:
> > On Sun, 15 May 2005 20:59:50 +0200
> > Pav Lucistnik <pav@FreeBSD.org> wrote:
> >=20
> > > Ion-Mihai Tetcu p=ED=A8e v ne 15. 05. 2005 v 21:51 +0300:
> > > > On Sun, 15 May 2005 20:35:40 +0200
> > > > Pav Lucistnik <pav@FreeBSD.org> wrote:
> > > >=20
> > > > > Edwin L. Culp p=ED=B9e v ne 15. 05. 2005 v 12:14 -0500:
> > > > > > Quoting Divacky Roman <xdivac02@stud.fit.vutbr.cz>:
> > > > > >=20
> > > > > > > On Sun, May 15, 2005 at 02:41:24AM -0700, Julian Elischer
> > > > > > > wrote:
> > > > > > >> cpghost@cordula.ws wrote:
> > > > > > >> >On Sat, May 14, 2005 at 06:51:48PM -0700, Julian
> > > > > > >Elischer wrote: > >
> > > > > > >> >>Has anyone run skype successfully on these versions (5
> > > > > > >or 6) of freeBSD? > >>I can run it successfully on 4.x but
> > > > > > >on my 5.x machine the audio is > >>completely
> > > > > > >> >>broken up. like someone is chopping the audio stream.
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >I'm running Skype on 5.4 (via82c686). On an AMD Duron
> > > > > > >1200 MHz, the > >sound quality is all right; on an EPIA
> > > > > > >5000 Eden 500 MHz (also via82c686), > >the sound is totally
> > > > > > >chopped and it is impossible to follow. >
> > > > > > >> hmm so maybe its the fact that my machine is too slow..
> > > > > > >it's also 500MHz > my 1GHz 4.11 machine seems to run it
> > > > > > >fine.
> > > > > > >
> > > > > > > I have exactly the same problem (broken sound)
> > > > > > > pcm0: <VIA VT8237> at io 0xe800 irq 12 kld snd_via8233
> > > > > > > (5p/1r/0v channels duplex default)
> > > > > >=20
> > > > > > I had this on all my AMD/Athlon boards with the via sound
> > > > > > chipset.  I  found a reference to the problem, no solution,
> > > > > > on one of the Skype  BB's.  I finally just disabled the
> > > > > > onboard sound and added cheap  available sound cards and
> > > > > > they all have worked great.  I've tried to  get the via
> > > > > > sound to work a couple of times after that, without success.
> > > > >=20
> > > > > Same story, different solution. With Open Sound drivers from
> > > > > www.opensound.com Skype works correctly.
> > > >=20
> > > > Is this with via8235/8237 on -STABLE ?
> > >=20
> > > pcm0: <VIA VT8237> port 0xb400-0xb4ff irq 22 at device 17.5 on
> > > pci0 pcm0: <Avance Logic ALC850 AC97 Codec>
> > >=20
> > > Both RELENG_5/i386 and RELENG_5/amd64 (different boards, same
> > > chip)
> >=20
> >=20
> > Yup, I got one of this.
> >=20
> >
> =20
> Can you guys with snd_via8233 driver try these patches?
>=20
> http://staff.mybsd.org.my/skywizard/FreeBSD/sound/via8233.c.diff
> http://staff.mybsd.org.my/skywizard/FreeBSD/sound/vchan.c.diff
>=20
> set your hw.snd.maxautovchans or hw.snd.pcm0.vchans appropriately, add
> hint.pcm.0.via_dxs_disabled=3D"1" into your /boot/device.hints and
> possibly with option PREEMPTION in kernel.

I get an instant reboot when trying to play anything in xmms; I tested
it this morning before leaving for work so this is all that I can say
for now.

With hw.snd.maxautovchans=3D0 it doesn't happen.

5.4-STABLE #6: Wed May 18 04:35:34 EEST 2005 sources + your patches and
the hint, ULE and no PREEMPTION kernel,

pcm0@pci0:17:5: class=3D0x040100 card=3D0xa0021458 chip=3D0x30591106 rev=3D=
0x60 hdr=3D0x00
    vendor   =3D 'VIA Technologies Inc'
    device   =3D 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller'
    class    =3D multimedia
    subclass =3D audio

pcm0: <VIA VT8237> port 0xbc00-0xbcff irq 22 at device 17.5 on pci0
pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xbc00
pcm0: [MPSAFE]
pcm0: <Avance Logic ALC655 AC97 Codec (id =3D 0x414c4760)>
pcm0: Codec features 5 bit master volume, no 3D Stereo Enhancement
pcm0: Primary codec extended features reserved 1, center DAC, surround DAC,=
 LFE DAC
, reserved 5
pcm0: sndbuf_setmap 252000, 1000; 0xc237e000 -> 252000
pcm0: sndbuf_setmap 274000, 1000; 0xc2380000 -> 274000
pcm0: <VIA DXS Disabled>

 # sysctl hw.snd
hw.snd.report_soft_formats: 1
hw.snd.targetirqrate: 32
hw.snd.verbose: 3
hw.snd.maxautovchans: 3
hw.snd.unit: 0
hw.snd.pcm0.buffersize: 4096
hw.snd.pcm0.vchans: 1

 # cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <VIA VT8237> at io 0xbc00 irq 22 kld snd_via8233 (1p/1r/1v channels d=
uplex default)
        [pcm0:play:0]: spd 48000, fmt 0x10000010, flags 0x00003000, 0x00000=
000
        interrupts 5678, underruns 5650, ready 0
        {userland} -> feeder_vchan_s16(0x10000010) -> {hardware}
        pcm0:play:0[pcm0:virtual:0]: spd 44100/48000, fmt 0x10000010, flags=
 0x10000000, 0x00000010
        interrupts 0, underruns 0, ready 0
        {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000=
) -> {hardware}
        [pcm0:record:0]: spd 0, fmt 0x00000000/0x00000008, flags 0x00000000=
, 0x00000000
        interrupts 0, overruns 0, hfree 4096, sfree 0
        {hardware} -> feeder_root(0x00000000) -> {userland}

File Versions:
$FreeBSD: src/sys/dev/sound/pci/via8233.c,v 1.17.2.2 2005/01/30 01:00:04 im=
p Exp $
$FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.2.4.1 2005/01/30 01:00:03 =
imp Exp $
$FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.16.2.1 2005/01/30 01:00:05 imp =
Exp $
$FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.92.2.1 2005/01/30 01:00:05 imp =
Exp $
$FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.17.2.2 2005/01/30 01:00:05 im=
p Exp $
$FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.40.2.1 2005/01/30 01:00:05 imp =
Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.10.6.1 2005/01/30 01:00:0=
5 imp Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.13.4.1 2005/01/30 01:00:05=
 imp Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.32.4.1 2005/01/30 01:00:05 imp=
 Exp $
$FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.13.4.1 2005/01/30 01:00:05 imp E=
xp $
$FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.77.2.1 2005/01/30 01:00:04 imp Ex=
p $
$FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.97.2.1 2005/01/30 01:00:04 im=
p Exp $
$FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.23.2.2 2005/01/30 01:00:04 imp=
 Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.2.4.1 2005/01/30 01:00:04 =
imp Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.51.2.2 2005/05/01 14:31:06 scott=
l Exp $

and this xmms config:
[OSS]
audio_device=3D0
mixer_device=3D0
buffer_size=3D3000
prebuffer=3D25
use_master=3DFALSE
use_alt_audio_device=3DFALSE
            ^^^^^^^^^^^^^^^ (I think this was =3DTRUE, I'll check when I ge=
t home)
alt_audio_device=3D/dev/dsp0.2
use_alt_mixer_device=3DFALSE
alt_mixer_device=3D/dev/mixer


--=20
IOnut
Unregistered ;) FreeBSD "user"




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