From owner-cvs-all Thu Jan 4 23: 7: 8 2001 From owner-cvs-all@FreeBSD.ORG Thu Jan 4 23:07:04 2001 Return-Path: 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 BD93037B402; Thu, 4 Jan 2001 23:07:04 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f05774f05586; Thu, 4 Jan 2001 23:07:04 -0800 (PST) (envelope-from jhb) Message-Id: <200101050707.f05774f05586@freefall.freebsd.org> From: John Baldwin Date: Thu, 4 Jan 2001 23:07:04 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm datatypes.h mixer.c mixer.h sound.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/01/04 23:07:04 PST Modified files: sys/dev/sound/pcm datatypes.h mixer.c mixer.h sound.c Log: - Make the 'hwvol_mixer' and 'hwvol_step' variables be specific to a specific snd_mixer device rather than global across all mixers. - Add per-mixer mute status and saved mute_level so that the mixer_hwmute() function can now toggle the mute state when the mute button is pressed. - Create a dynamic sysctl tree hw.snd.pcmX when a pcm device is registered. - Move the hw.snd.hwvol_* sysctl's to hw.snd.pcmX.hwvol_* so that they are now properly device-specific. Eventually when the mixers become their own devices these sysctl's will move to live under a mixerX tree. - Change the interface of the hwvol_mixer sysctl so that it reports the name of the current mixer device instead of the number and is settable with the name instead of the number. - Add a new function mixer_hwinit() used to setup the dynamic sysctl's needed for the hwvol support that can be called by drivers that support hwvol. Reviewed by: cg Revision Changes Path 1.21 +7 -1 src/sys/dev/sound/pcm/datatypes.h 1.15 +67 -10 src/sys/dev/sound/pcm/mixer.c 1.7 +2 -1 src/sys/dev/sound/pcm/mixer.h 1.34 +14 -1 src/sys/dev/sound/pcm/sound.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message