Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2006 05:57:21 +0800
From:      Ariff Abdullah <skywizard@MyBSD.org.my>
To:        Simon Barner <barner@FreeBSD.org>
Cc:        freebsd-multimedia@FreeBSD.org, "netchild."@FreeBSD.org
Subject:   Re: snd_solo broken after big MFC to RELENG_6
Message-ID:  <20060104055721.4182120e.skywizard@MyBSD.org.my>
In-Reply-To: <20060103213654.GA1039@zi025.glh.mhn.de>
References:  <20060103213654.GA1039@zi025.glh.mhn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Jan 2006 22:36:54 +0100
Simon Barner <barner@FreeBSD.org> wrote:
> Hi,
>=20
> It seems that the update broke my (old) sound card. When I try to
> play an mp3 file with mplayer (yes I rebuilt it) or mpg123, I get
> the following error message:
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D=3D=3D Opening audio decoder: [mp3lib] MPEG layer-2, layer=
-3
> AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio:
> 16000->176400) Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG
> layer-2, layer-3)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D=3D=3D Checking audio filter chain for 44100Hz/2ch/s16le ->
> 44100Hz/2ch/s16le... AF_pre: 44100Hz/2ch/s16le
> [AO OSS] audio_setup: Can't open audio device /dev/dsp: Operation
> not supported by device /dev/dsp: Operation not supported by device
>=20
> Playing audio cds with cdcontrol works, though. Am I doing something
> horribly stupid, or is this a regression?

How about enabling vchans? Try to enable that first and see whether
that should help. If not, try this patch:

  http://people.freebsd.org/~ariff/test/solo.c.diff

>=20
> It would be nice if you could have a look at this...
>=20
> Here's some information:
>=20
> pcm0: <ESS Solo-1 (unknown vendor)> port
> 0xb000-0xb03f,0xb400-0xb40f,0xb800-0xb80f,0xbc00-0xbc03,0xc000-0xc0
> 03 irq 10 at device 20.0 on pci0 pcm0: [GIANT-LOCKED]
>=20
> pcm0@pci0:20:0: class=3D0x040100 card=3D0x111350b2 chip=3D0x1969125d
> rev=3D0x01 hdr=3D0x00
>     vendor   =3D 'ESS Technology'
>     device   =3D 'ES72222 Solo-1 PCI AudioDrive family'
>     class    =3D multimedia
>     subclass =3D audio
>=20
> cat /dev/sndstat=20
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <ESS Solo-1 (unknown vendor)> at io 0xb000,0xb400,0xb800 irq
> 10 kld snd_solo (1p/1r/0v channels default)
>         [pcm0:play:0]: spd 0, fmt 0x00000000/0x00000008, flags
>         0x00000000, 0x00000000 interrupts 0, underruns 0, ready 0
>         {userland} -> feeder_root(0x00000000) -> {hardware}
>         [pcm0:record:0]: spd 5000/-7456, fmt 0x00000000/0x10000020,
>         flags 0x00000000, 0x00000010 interrupts 0, overruns 0, hfree
>         16384, sfree 131072 {hardware} -> feeder_root(0x10000020) ->
>         feeder_endian16(0x10000020 -> 0x10000010) ->
>         feeder_rate(8000 -> 8000) -> {userland}
>=20
> File Versions:
> $FreeBSD: src/sys/dev/sound/pci/solo.c,v 1.35 2005/03/01 08:58:05
> imp Exp $ $FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3
> 2005/01/06 01:43:17 imp Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/vchan.c,v 1.17.2.2 2005/12/30 19:55:54
> netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.93.2.2
> 2005/12/30 19:55:54 netchild Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/sndstat.c,v 1.20.2.2 2005/12/30 19:55:54
> netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.43.2.3
> 2005/12/30 19:55:54 netchild Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/feeder_volume.c,v 1.2.2.1 2005/12/30 19:55:54
> netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v
> 1.11.2.1 2005/12/30 19:55:54 netchild Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/feeder_fmt.c,v 1.14.2.1 2005/12/30 19:55:54
> netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.33.2.1
> 2005/12/30 19:55:54 netchild Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/fake.c,v 1.14.2.1 2005/12/30 19:55:54 netchild
> Exp $ $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.80.2.3 2005/12/31
> 02:03:48 ariff Exp $ $FreeBSD: src/sys/dev/sound/pcm/channel.c,v
> 1.99.2.1 2005/12/30 19:55:54 netchild Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/buffer.c,v 1.25.2.1 2005/12/30 19:55:54
> netchild Exp $ $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v
> 1.3.2.1 2005/12/30 19:55:54 netchild Exp $ $FreeBSD:
> src/sys/dev/sound/pcm/ac97.c,v 1.53.2.2 2005/12/30 20:44:37 ariff
> Exp $
>=20
> ls -l /dev/dsp*
> crw-rw-rw-  1 root  wheel    0,  28 Jan  3 21:57 /dev/dsp0.0
> crw-rw-rw-  1 root  wheel    0,  32 Jan  3 21:57 /dev/dsp0.1
> crw-rw-rw-  1 root  wheel    0,  29 Jan  3 21:57 /dev/dspW0.0
> crw-rw-rw-  1 root  wheel    0,  33 Jan  3 21:57 /dev/dspW0.1
> crw-rw-rw-  1 root  wheel    0,  31 Jan  3 21:57 /dev/dspr0.0
>=20
> sysctl hw.snd.
> hw.snd.targetirqrate: 32
> hw.snd.report_soft_formats: 1
> hw.snd.verbose: 3
> hw.snd.unit: 0
> hw.snd.maxautovchans: 0
> hw.snd.pcm0.buffersize: 16384
> hw.snd.pcm0.vchans: 0
>=20
> mixer
> Mixer vol      is currently set to  90:90
> Mixer synth    is currently set to  75:75
> Mixer pcm      is currently set to 100:100
> 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 line1    is currently set to  75:75
> Recording source: mic
>=20
> --=20
> Best regards / Viele Gr=FC=DFe,                           =20
> barner@FreeBSD.org
>  Simon Barner                                              =20
>  barner@gmx.de
>=20


--
Ariff Abdullah
MyBSD

http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)



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