From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 9 19:13:48 2007 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAFB016A46D for ; Mon, 9 Jul 2007 19:13:48 +0000 (UTC) (envelope-from loafier@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 8B44113C4C9 for ; Mon, 9 Jul 2007 19:13:48 +0000 (UTC) (envelope-from loafier@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so230538anc for ; Mon, 09 Jul 2007 12:13:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=iu7Habc54skYW0tmdRQDo3D2wWbbb74Jnd2CKNNUnZJTXLmfnb7z2UkxPKESVoEu3KzYj8dK2vW30TLEo2t/UdARjPXN1gR9zj/GOeVUsAPX7LDfso4joIknnlxY7AhZeSVMaGn5yxAL0+mS93ir/rcn2cuACpri3fTBP5pgWoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=O56l04sMTXupAZF3zTdVhd6UcupLYK8MjAt5dCjQOW7Qdpy+sIvGfvd1eyXks9QZk7YuzU1VZv/GFZxoCwMSAN8RKuh2uPi1Wqx9XWSr/01Qfj+2wXJN4tplawXoXKYAa4UJ9I5xI3NANGMSjNwk0RETMxPRh7Ytabpfp8wXXKM= Received: by 10.100.106.5 with SMTP id e5mr1766877anc.1184006834265; Mon, 09 Jul 2007 11:47:14 -0700 (PDT) Received: by 10.100.109.17 with HTTP; Mon, 9 Jul 2007 11:47:14 -0700 (PDT) Message-ID: Date: Mon, 9 Jul 2007 11:47:14 -0700 From: "Christopher Davis" Sender: loafier@gmail.com To: multimedia@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: d3d0a54fbe4c9f81 Cc: Subject: Audio driver template X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 19:13:48 -0000 http://people.freebsd.org/~cg/template.c Thought I would take a look at the audio driver template as part of my task to modernize drivers, soc2007. I would simplify the read and write functions to avoid using the bus tag and handle, but I'm not sure what else to do to bring it up to date. How else can it be improved? -- Christopher Davis