From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 13 15:21:49 2007 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0469116A420 for ; Thu, 13 Dec 2007 15:21:49 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 70EC713C46E for ; Thu, 13 Dec 2007 15:21:48 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1068536uge.37 for ; Thu, 13 Dec 2007 07:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=1LVi9vK3AnWblWipjT+IccinqunS5gePo29Hx/S77Aw=; b=bPsAsGOZ7ZHwN19Z5TpKsw3r2K+CvsL2OBnzoOFOkH4V6x914kqJIzXppIf8l5nxCiNfGUPJZQsuGi15K2k4IsNDbzfywp+M95d4gRWL2H+8Fa7NsK1TlWJxL/0XCBiR6im+Bt6ccUe76s975hbjxXJ7C5f6CgecEONVVylfv30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dunp4dxAA3wH2YstuB2KvuvBOBUphI0eXY1Ja04y0e1FPYtsjtxjgqx5wpYW4l7cnlAscWz/QZV/5RQX10Zo95C0vy2SzbhjIgGhX62BBFCQczSHRsGMpK1eVqemDGxb1pl96VUGn33r9Zodz8YuPtfRyyZvHLWPy+VK+QV6YzI= Received: by 10.67.19.17 with SMTP id w17mr3576868ugi.33.1197559305844; Thu, 13 Dec 2007 07:21:45 -0800 (PST) Received: by 10.67.95.3 with HTTP; Thu, 13 Dec 2007 07:21:45 -0800 (PST) Message-ID: Date: Thu, 13 Dec 2007 13:21:45 -0200 From: "Carlos A. M. dos Santos" To: "Ariff Abdullah" , freebsd-multimedia@freebsd.org In-Reply-To: <20071213220350.33937f7b.ariff@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071213220350.33937f7b.ariff@FreeBSD.org> Cc: Subject: Re: snd_hda on HP DC7700 SFF 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, 13 Dec 2007 15:21:49 -0000 On Dec 13, 2007 12:03 PM, Ariff Abdullah wrote: > On Thu, 13 Dec 2007 10:03:19 -0200 > "Carlos A. M. dos Santos" wrote: > > Hi, > > > > I have a HP Compaq dc7700 Small Form Factor PC, as described here: > > > > http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/12454-12454-64287-321860-3328898-3232029.html?jumpid=oc_R1002_USENC-001_HP%20Compaq%20dc7700%20Small%20Form%20Factor%20PC&lang=en&cc=us > > > > (sorry for the lengthy URL) > > > > The subvendor ID of this machine is 0x2801, not 0x2802 as expected > > by the code in hdac.c. Also, sound usually is sento to the internal > > speaker, as long as the phone and line outputs. I was able to make > > it work better using the attached patch. > > I can see that with this patch, you can control headphone volume > through "phout", am I correct (or, is that what you call better) ? Correct, I can control both the speaker and headphone volumes. The output of the mixer command becomes this: % mixer Mixer vol is currently set to 100:100 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 0:0 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer rec is currently set to 0:0 Mixer phout is currently set to 100:100 Recording source: mic > > Perhaps there is a more elegant way to do this, so I'd like do hear > > some opinions before submitting a PR. > > No, please, no more PR :) If things can be solved here, no need for > PR. Ok, no PR. :-) > > I can run other tests on my machine, if necessary. > > > > If it is good enough for you, I guess it must be enough for others > (with simmilar hardware) as well. Fine. If you need any additional test and/or debug, just let me know. -- Carlos A. M. dos Santos