From owner-cvs-src@FreeBSD.ORG Tue Oct 18 21:33:52 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1596116A41F; Tue, 18 Oct 2005 21:33:52 +0000 (GMT) (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 A7C8743D45; Tue, 18 Oct 2005 21:33:51 +0000 (GMT) (envelope-from ariff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9ILXpeq014103; Tue, 18 Oct 2005 21:33:51 GMT (envelope-from ariff@repoman.freebsd.org) Received: (from ariff@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9ILXpje014102; Tue, 18 Oct 2005 21:33:51 GMT (envelope-from ariff) Message-Id: <200510182133.j9ILXpje014102@repoman.freebsd.org> From: Ariff Abdullah Date: Tue, 18 Oct 2005 21:33:51 +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 vchan.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 21:33:52 -0000 ariff 2005-10-18 21:33:51 UTC FreeBSD src repository Modified files: sys/dev/sound/pcm vchan.c Log: Fix vchan speed for hardware with discrete (non-continuous) sampling rate: - Improve vchan chn_setspeed() strategy. Try to avoid FEEDER_RATE on parent channel if the requested value is not supported by the hardware. - Fix vchan default speed calculation. In any case, vchan should rely on parent bufsoft speed instead of bufhard since it is possible that the entire feeder chain might involve FEEDER_RATE. This is possible under extreme, rare condition if the above chn_setspeed() strategy failed. Approved by: netchild (mentor) Revision Changes Path 1.20 +24 -6 src/sys/dev/sound/pcm/vchan.c