From owner-freebsd-multimedia@FreeBSD.ORG Fri May 27 15:10:26 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 ABE4D16A41C for ; Fri, 27 May 2005 15:10:26 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54E2D43D48 for ; Fri, 27 May 2005 15:10:21 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j4RFCA8q049932; Fri, 27 May 2005 09:12:11 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4297382A.3060505@samsco.org> Date: Fri, 27 May 2005 09:09:30 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: yongari@rndsoft.co.kr References: <20050527062200.GA17663@rndsoft.co.kr> In-Reply-To: <20050527062200.GA17663@rndsoft.co.kr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-multimedia@freebsd.org Subject: Re: maestro3 hardware volume control 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: Fri, 27 May 2005 15:10:26 -0000 Pyun YongHyeon wrote: > Hi, > > I noticed hardware volume control of maestro3 didn't work. With > small patch it worked on my system(Gateway Solo 5300). > > Hardware volume control of maestro3 can be configured with two > different control pins. Unfortunately it seems that it's hard to > know which control pin was wired to control the volume. > At present maestro3 provides a way via hint file to select one of > the two configurations. > > hint.pcm.0.hwvol_config="0" : select GD(game port interface) pin 6, 7 > hint.pcm.0.hwvol_config="1" : select GPIO pin 4,5 > If there is no hint the driver select GD pin 6, 7. > > In my system selecting GD pins didn't work and a comment at the > beginning of the driver source indicates it didn't ever work. So I'd > like to change to select GPIO pins as a default hardware volume > control. For users needs to select GD pins it could be easily done > with hint.pcm.0.hwvol_config="0" in /boot/device.hints file. > But I think there are no such users since device.hints file had no > such entry. > I believe that the source comment was out of date. It certainly worked when I wrote the code (see rev 1.11). However, you're doing a much better job of maintaining this driver than I, so you're welcome to change it as you see fit. Make sure that it gets documented, though. Scott