From owner-freebsd-multimedia@FreeBSD.ORG Thu Dec 13 12:30:41 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 3EB6E16A417 for ; Thu, 13 Dec 2007 12:30:41 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id AB06413C45D for ; Thu, 13 Dec 2007 12:30:40 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so1017582uge.37 for ; Thu, 13 Dec 2007 04:30:39 -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:mime-version:content-type; bh=aUnKaFo0R0ydxqk8i5qTnnD1HrddGcRw9H6X6cDkIyk=; b=fHbwwbUOsqq5LhhliMhLw5NGTcs4f+50l3vD5QnkCmJTQ/LACok4f5/vZpHCiOpABOF38ZLM9AFQIuzN+cMeeFGJO/L4dcC19QxVafa0urgAfQdZgX9RXXA5GO108PbIOy3BWD8I84Tr11/pcENLGsKcAZk+b8mycArO14HhbvE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ZCEUakntFbXwN6Q3ObN6+IlYbN0qHuhEzDRmKYj7wwTG1Qx6m7kr9lZADqe/oELZgvp3mhSyA6/dIQcS8uaOW55viDiCThwoxTHR3QsifXOtRhp1Ea96mr2SFXvrg/cyFBWJ+Oak6LlSrZindNIYFxhybSTJNW99bg46QjoH2ss= Received: by 10.67.115.1 with SMTP id s1mr3371495ugm.74.1197547399386; Thu, 13 Dec 2007 04:03:19 -0800 (PST) Received: by 10.67.95.3 with HTTP; Thu, 13 Dec 2007 04:03:19 -0800 (PST) Message-ID: Date: Thu, 13 Dec 2007 10:03:19 -0200 From: "Carlos A. M. dos Santos" To: freebsd-multimedia@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3254_11972159.1197547399380" Cc: Subject: 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 12:30:41 -0000 ------=_Part_3254_11972159.1197547399380 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. Perhaps there is a more elegant way to do this, so I'd like do hear some opinions before submitting a PR. I can run other tests on my machine, if necessary. Please answer directly to me because I don't subscribe the list. -- Carlos A. M. dos Santos ------=_Part_3254_11972159.1197547399380 Content-Type: text/x-patch; name=hdac.c.hp_dc7700s.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fa58dy4b0 Content-Disposition: attachment; filename=hdac.c.hp_dc7700s.diff LS0tIGhkYWMuYy5vcmlnCTIwMDctMTEtMzAgMTM6MTE6MTMuMDAwMDAwMDAwIC0wMjAwCisrKyBo ZGFjLmMJMjAwNy0xMi0xMiAxOTo1MzoyMS4wMDAwMDAwMDAgLTAyMDAKQEAgLTE3OSw2ICsxNzks NyBAQAogI2RlZmluZSBIUF9YVzQzMDBfU1VCVkVORE9SCUhEQV9NT0RFTF9DT05TVFJVQ1QoSFAs IDB4MzAxMykKICNkZWZpbm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