From owner-cvs-src@FreeBSD.ORG Sat Aug 23 06:00:49 2003 Return-Path: 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 17F2D16A4BF; Sat, 23 Aug 2003 06:00:49 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA7A43FE1; Sat, 23 Aug 2003 06:00:48 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7ND0m0U021936; Sat, 23 Aug 2003 06:00:48 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7ND0m8D021935; Sat, 23 Aug 2003 06:00:48 -0700 (PDT) Message-Id: <200308231300.h7ND0m8D021935@repoman.freebsd.org> From: Ian Dowse Date: Sat, 23 Aug 2003 06:00:48 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/sound/pci ds1.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 23 Aug 2003 13:00:49 -0000 iedowse 2003/08/23 06:00:48 PDT FreeBSD src repository Modified files: sys/dev/sound/pci ds1.c Log: When calculating the block size to use for a particular sample rate, round the result up to a multiple of 4 bytes so that it will always be a multiple of the sample size. Also use the actual buffer size from sc->bufsz instead of the default DS1_BUFFSIZE. This fixes panics and bad distortion I have seen on Yamaha DS-1 hardware, mainly when playing certain Real Audio media. Reviewed by: orion (an earlier version of the patch) Revision Changes Path 1.35 +6 -4 src/sys/dev/sound/pci/ds1.c