From owner-cvs-all Sun May 27 10:22: 5 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3FB7C37B424; Sun, 27 May 2001 10:22:01 -0700 (PDT) (envelope-from cg@FreeBSD.org) Received: (from cg@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4RHM1g45894; Sun, 27 May 2001 10:22:01 -0700 (PDT) (envelope-from cg) Message-Id: <200105271722.f4RHM1g45894@freefall.freebsd.org> From: Cameron Grant Date: Sun, 27 May 2001 10:22:01 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm vchan.c vchan.h channel.c channel.h channel_if.m dsp.c dsp.h fake.c sound.c sound.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG cg 2001/05/27 10:22:01 PDT Modified files: sys/dev/sound/pcm channel.c channel.h channel_if.m dsp.c dsp.h fake.c sound.c sound.h Added files: sys/dev/sound/pcm vchan.c vchan.h Log: beginnings of virtual playback channel support instead of using two malloced arrays for storing channel lists, use an slist. convert the sndstat device to use sbufs and optionally provide more detail about channel state. vchans are software mixed playback channels. they are not enabled by this commit. they use the feeder infrastructure to emulate normal playback channels in a manner transparent to applications, whilst providing as many channels are desired, especially suitable for devices with only one hardware playback channel. in the future they will provide additional features. those wishing to test this functionality will need to add vchan.c to sys/conf/files and use 'sysctl -w hw.snd.pcm0.vchans' to enable it. blocksize and auto-rate selection are not yet supported. Revision Changes Path 1.56 +114 -23 src/sys/dev/sound/pcm/channel.c 1.18 +23 -3 src/sys/dev/sound/pcm/channel.h 1.4 +19 -2 src/sys/dev/sound/pcm/channel_if.m 1.36 +47 -38 src/sys/dev/sound/pcm/dsp.c 1.4 +2 -2 src/sys/dev/sound/pcm/dsp.h 1.9 +2 -2 src/sys/dev/sound/pcm/fake.c 1.43 +294 -146 src/sys/dev/sound/pcm/sound.c 1.30 +18 -4 src/sys/dev/sound/pcm/sound.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message