From owner-freebsd-multimedia Thu Mar 20 13:30:44 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDB8637B401 for ; Thu, 20 Mar 2003 13:30:42 -0800 (PST) Received: from thor.piqnet.org (adsl-66-125-235-59.dsl.sntc01.pacbell.net [66.125.235.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0E54440B6 for ; Thu, 20 Mar 2003 13:30:41 -0800 (PST) (envelope-from joelh@gnu.org) Received: from thor.piqnet.org (localhost [IPv6:::1]) by thor.piqnet.org (8.12.6/8.12.6) with ESMTP id h2KLUfjm050118 for ; Thu, 20 Mar 2003 13:30:41 -0800 (PST) (envelope-from joelh@gnu.org) Received: (from joelh@localhost) by thor.piqnet.org (8.12.6/8.12.6/Submit) id h2KLUe0C050106; Thu, 20 Mar 2003 13:30:40 -0800 (PST) X-Authentication-Warning: thor.piqnet.org: joelh set sender to joelh@gnu.org using -f X-Authentication-Warning: thor.piqnet.org: joelh set sender to joelh@gnu.org using -f To: freebsd-multimedia@freebsd.org Subject: How to handle sound card patches? From: Joel Ray Holveck Date: 20 Mar 2003 13:19:43 -0800 Message-ID: <87isudsplc.fsf@thor.piqnet.org> Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have a problem. The csa bridge driver breaks if I try to attach the MIDI port on my Turtle Beach Santa Cruz. I traced the problem to a problem with the interrupt, and patched it. The problem is, it looks like the interrupt used to be handled the way my new code does it, and was intentionally changed. This was in a batch of changes, so the CVS log is not very enlightening. So, now I have a patch to the sound driver that is required to make it work on my sound card, but will possibly break other CSA-based sound cards. Surely this comes up often, since the same driver is used for many different sound cards. What has the FreeBSD multimedia community done to handle this sort of situation in the past? What is the right way to test this patch before I send a PR? Thanks, joelh -- Joel Ray Holveck - joelh@gnu.org Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message