From owner-freebsd-multimedia@FreeBSD.ORG Thu Jul 26 09:45:28 2007 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5360616A41A for ; Thu, 26 Jul 2007 09:45:28 +0000 (UTC) (envelope-from loafier@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF3113C4B5 for ; Thu, 26 Jul 2007 09:45:27 +0000 (UTC) (envelope-from loafier@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so118927anc for ; Thu, 26 Jul 2007 02:45:27 -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:cc:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=upO9boP2vgCutyb2Y4rj1GaeOOKG4Iqs+cobmp106be48bs1p8lfUtJJ3nfZYg7SSmb5Z4VGWkfyPFhIE8Sm4D445cHOXzaLscF4UINyDlKxQcNtM0uKbKQhjPrJIPqm7AdzWHGXAnFrQWdpHlNOB4hovq/qyNl5UrjwEZ4MQM8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=MquvymOjaDc0f/90WRFcTifoRMXUfBIurVG1K6BH6iMXppoP7DzmjgMxyv15QaOSDI3o119DTXjaWpdu+a3n9WjRyQkPhA5lFo+dZhMOoC9R6n+Dgmo9XxcMH25ou+hd3zGY+U1gYSxsTOjdX3urH/UPwxWLmJyRKkosJL66duM= Received: by 10.100.196.3 with SMTP id t3mr1042692anf.1185443126900; Thu, 26 Jul 2007 02:45:26 -0700 (PDT) Received: by 10.100.13.14 with HTTP; Thu, 26 Jul 2007 02:45:26 -0700 (PDT) Message-ID: Date: Thu, 26 Jul 2007 02:45:26 -0700 From: "Christopher Davis" Sender: loafier@gmail.com To: multimedia@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: 14256931a29fcb17 Cc: "M. Warner Losh" Subject: Aureal sound driver 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: Thu, 26 Jul 2007 09:45:28 -0000 I've edited sys/dev/sound/pci/aureal.c to use bus_alloc_resources(), pci_enable_io(), etc as part of my SoC project. I changed it to allocate only one I/O port; it previously allocated about 3 I/O ports, but it seemed to only use the first one. I also added the detach method, which was missing, but there is likely a message to send to the card to shut it down properly. I don't have this card, so I'm not sure if things still work. It's in my branch if anyone's interested in testing it out: //depot/projects/soc2007/loafier_busalloc/src/sys/dev/sound/pci/aureal.c http://loafier.sixbit.org/aureal.c -- Christopher Davis