From owner-freebsd-current@FreeBSD.ORG Sun Aug 29 19:06:00 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7F0216A4CE; Sun, 29 Aug 2004 19:06:00 +0000 (GMT) Received: from mail.ipnet.kiev.ua (ns.ip.net.ua [82.193.96.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90DD743D53; Sun, 29 Aug 2004 19:05:59 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by mail.ipnet.kiev.ua (8.12.11/8.12.11) with ESMTP id i7TJ5ssd008219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Aug 2004 22:05:55 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i7TJ5xeC039616; Sun, 29 Aug 2004 22:05:59 +0300 (EEST) (envelope-from ru) Date: Sun, 29 Aug 2004 22:05:59 +0300 From: Ruslan Ermilov To: Marc Fonvieille Message-ID: <20040829190559.GA39435@ip.net.ua> References: <20040828142503.GA52613@ip.net.ua> <20040829160815.GB54085@abigail.blackend.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20040829160815.GB54085@abigail.blackend.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: Cameron Grant cc: multimedia@freebsd.org cc: "Simon L. Nielsen" cc: Seigo Tanimura cc: current@freebsd.org Subject: Re: [PATCH] sound(4) related manpages 5.3 TODO item X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2004 19:06:00 -0000 --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: at io 0xd800, 0xdc80 irq 5 bufsz 16384 kld > snd_ich (1p/2r/0v channels duplex default) >=20 > or in dmesg: >=20 > pcm0: port 0xdc80-0xdcbf,0xd800-0xd8ff irq 5 at > device 31.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: >=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--