Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2004 22:05:59 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Marc Fonvieille <blackend@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: [PATCH] sound(4) related manpages 5.3 TODO item
Message-ID:  <20040829190559.GA39435@ip.net.ua>
In-Reply-To: <20040829160815.GB54085@abigail.blackend.org>
References:  <20040828142503.GA52613@ip.net.ua> <20040829160815.GB54085@abigail.blackend.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Aug 29, 2004 at 06:08:16PM +0200, Marc Fonvieille wrote:
> On Sat, Aug 28, 2004 at 05:25:03PM +0300, Ruslan Ermilov wrote:
[...]
> > One and most important thing I'm not sure I understand, and
> > that's causing a lot of confusion, is why "device pcm" was
> > renamed to "device sound" in the first place?  I believe the
> > reason is that "device sound" is a generic sound driver,
> > which has support for PCM playback, mixer, /dev/sndstat,
> > eventually MIDI, sequencer, and so on.  Individual sound
> > drivers are free to implement either of these interfaces.
> > Most of them implement "pcm" nowadays, so saying that
> > "pcm was renamed to sound" is not quite correct.  In other
> > words, the sound.ko module provides the infrastructure for
> > more than just PCM, and the sound(4) manpage should eventually
> > document more than just PCM.  Does that sound correct?
> >
>=20
> I'm not a sound(4) expert, but I think you're right.
> However, I see something that may be confusing for the new comer: in the
> kernel we add:
>=20
> device sound
> device snd_ich 		# as example
>=20
> and in /dev/sndstat we see:
>=20
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <Intel ICH3 (82801CA)> at io 0xd800, 0xdc80 irq 5 bufsz 16384 kld
> snd_ich (1p/2r/0v channels duplex default)
>=20
> or in dmesg:
>=20
> pcm0: <Intel ICH3 (82801CA)> port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at
> device 31.5 on pci0
> pcm0: [GIANT-LOCKED]
> pcm0: <Cirrus Logic CS4205 AC97 Codec>
>=20
>=20
> Are the "pcm0" and "newpcm" words totally correct here, why no sound/snd ?
>=20
It's my current understanding that pcm(4) is only one part
of the sound(4) subsystem.  midi(4) will be another part of
it, and mixer(4) is another such device.  The sound(4) man
page should eventually document the entire sound subsystem.
The snd_foo(4) module can register with the sound(4) system
one "pcm" device, one "midi" device, and one "mixer" device.

> > Does that look sane?  I'd be grateful is someone more fluent with
> > our sound subsystem could review this.
> >=20
>=20
> I'm not more fluent than you, but your changes seem correct.
>=20
Thanks, Marc.  I will wait for one more day, then if nothing
changes, will order repo-copies and proceed with the patch
and merging this to RELENG_5.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQFBMikXqRfpzJluFF4RAi5vAJ9/INbHV7uoOrB3OSR9RzpEzxFk4QCfYxds
Sy1VSmW30qZdcHr4CBf+VbI=
=D4bc
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--



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