From owner-cvs-all Tue Jan 2 17:29:51 2001 From owner-cvs-all@FreeBSD.ORG Tue Jan 2 17:29:48 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 96E5137B400; Tue, 2 Jan 2001 17:29:48 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f031Tmd41851; Tue, 2 Jan 2001 17:29:48 -0800 (PST) (envelope-from jhb) Message-Id: <200101030129.f031Tmd41851@freefall.freebsd.org> From: John Baldwin Date: Tue, 2 Jan 2001 17:29:48 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm mixer.c mixer.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/01/02 17:29:48 PST Modified files: sys/dev/sound/pcm mixer.c mixer.h Log: Add a new API for soundcards that have hardware volume control: - The mixer_hwmute() function can be called when a soundcard receives a mute request. - The mixer_hwstep() function can be used to adjust the volume of one or both channels. - The 'hw.snd.hwvol_step' sysctl determines the amount that mixer_hwstep() adjusts the volume by on each call. - The 'hw.snd.hwvol_mixer' sysctl specifies the mixer device to adjust the volume on for both functions. The values used correspond to the SOUNDCARD_MIXER_* constants. Revision Changes Path 1.14 +37 -1 src/sys/dev/sound/pcm/mixer.c 1.6 +4 -1 src/sys/dev/sound/pcm/mixer.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message