From owner-cvs-all@FreeBSD.ORG Thu Sep 28 17:29:01 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E69616A415; Thu, 28 Sep 2006 17:29:01 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C05CE43D4C; Thu, 28 Sep 2006 17:29:00 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8SHT05S023158; Thu, 28 Sep 2006 17:29:00 GMT (envelope-from ariff@repoman.freebsd.org) Received: (from ariff@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8SHT0gg023157; Thu, 28 Sep 2006 17:29:00 GMT (envelope-from ariff) Message-Id: <200609281729.k8SHT0gg023157@repoman.freebsd.org> From: Ariff Abdullah Date: Thu, 28 Sep 2006 17:29:00 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/sound/pcm ac97.c ac97_patch.c ac97_patch.h channel.c mixer.c mixer.h sound.h src/sys/dev/sound/usb uaudio_pcm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2006 17:29:01 -0000 ariff 2006-09-28 17:29:00 UTC FreeBSD src repository Modified files: sys/dev/sound/pcm ac97.c ac97_patch.c ac97_patch.h channel.c mixer.c mixer.h sound.h sys/dev/sound/usb uaudio_pcm.c Log: Various fixups, especially for the upcomming High Definition Audio commit. 1) sys/dev/sound/pcm/sound.h sys/dev/sound/pcm/channel.c * Be more specific: SD_F_SOFTVOL -> SD_F_SOFTPCMVOL 2) sys/dev/sound/pcm/mixer.[ch] * Implement mix_setparentchild() mix_setrealdev() mix_getparent() mix_getchild() The purpose of these functions is implement relative volume adjustment, such as to tie two or more mixer device into a single logical device. Usefull for the upcoming HDA driver and few AC97 codec (such as AD1981B) where the master volume "vol" need to be implemented using this logical manner. 3) sys/dev/sound/pcm/ac97_patch.[ch] * Patch for AD1981B codec to enable (automuting) headphone jack sense. 4) sys/dev/sound/pcm/ac97.c * Implement proper logical master volume for AD9181B codec through various mix_set{parentchild,realdev}(). Tie both "ogain" (headphone volume) and "phone" (speaker/lineout) to a logical "vol". 5) sys/dev/sound/pcm/usb/uaudio_pcm.c * ditto, for "vol" -> { "pcm" }. MFC after: 1 month Revision Changes Path 1.62 +50 -40 src/sys/dev/sound/pcm/ac97.c 1.5 +6 -0 src/sys/dev/sound/pcm/ac97_patch.c 1.5 +1 -0 src/sys/dev/sound/pcm/ac97_patch.h 1.111 +24 -4 src/sys/dev/sound/pcm/channel.c 1.52 +164 -29 src/sys/dev/sound/pcm/mixer.c 1.17 +4 -0 src/sys/dev/sound/pcm/mixer.h 1.72 +1 -1 src/sys/dev/sound/pcm/sound.h 1.19 +14 -6 src/sys/dev/sound/usb/uaudio_pcm.c