From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 18 11:44:55 2007 Return-Path: X-Original-To: freebsd-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 8C6F016A51B; Thu, 18 Jan 2007 11:44:55 +0000 (UTC) (envelope-from Ingeborg.Hellemo@cc.uit.no) Received: from mux2.uit.no (mux2.uit.no [129.242.5.252]) by mx1.freebsd.org (Postfix) with ESMTP id 1065613C465; Thu, 18 Jan 2007 11:44:54 +0000 (UTC) (envelope-from Ingeborg.Hellemo@cc.uit.no) Received: from flode.cc.uit.no (flode.cc.uit.no [129.242.6.250]) by mux2.uit.no (8.13.8/8.13.6/Mux) with ESMTP id l0IBirwV056037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Jan 2007 12:44:53 +0100 (CET) Received: from barnetv.cc.uit.no (barnetv.cc.uit.no [129.242.6.226]) by flode.cc.uit.no (8.13.3/8.13.3) with ESMTP id l0IBirrD052201; Thu, 18 Jan 2007 12:44:53 +0100 (CET) (envelope-from ingeborg@cc.uit.no) Received: from barnetv.cc.uit.no (localhost.cc.uit.no [127.0.0.1]) by barnetv.cc.uit.no (8.13.8/8.13.8) with ESMTP id l0IBirEB008321; Thu, 18 Jan 2007 12:44:53 +0100 (CET) (envelope-from ingeborg@barnetv.cc.uit.no) Message-Id: <200701181144.l0IBirEB008321@barnetv.cc.uit.no> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Ariff Abdullah In-reply-to: Your message of "Thu, 18 Jan 2007 18:14:07 +0800." <20070118181407.72f29176.ariff@FreeBSD.org> Date: Thu, 18 Jan 2007 12:44:53 +0100 From: Ingeborg Hellemo X-Virus-Scanned: : ok X-Scanned-By: MIMEDefang 2.56 on 129.242.5.252 Cc: freebsd-multimedia@FreeBSD.org Subject: Re: snd_hda, sound in both speaker and headphones 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, 18 Jan 2007 11:44:55 -0000 ariff@FreeBSD.org said: > Did you grab the latest hdac.c and recompile? Yes. I have now done the following: * Compiled with tuesdays hdac.c. Result: Sound in speaker, none in headphone. There is a minor difference inn dmesg: Original hdac.c: pcm0: HDA_DEBUG: OSS mixer initialization... pcm0: HDA_DEBUG: Enabling Soft PCM volume Tuesdays hdac.c: pcm0: HDA_DEBUG: OSS mixer initialization... pcm0: HDA_DEBUG: Pin sense: nid=21 res=0x7fffffff pcm0: HDA_DEBUG: Enabling headphone/speaker audio routing switching: pcm0: HDA_DEBUG: index=4 nid=21 pci_subvendor=0x3013103c codec=0x10ec0260 pcm0: HDA_DEBUG: Enabling Soft PCM volume I am not able to trigger any more "Pin sense"-lines if I plug/unplug the headphone. The "Pin sense"-line does not change if I load the module with or without the headphone plugged in. * Compiled with todays hdac.c. Result: Sound in both speaker and headphone. dmesg says: pcm0: HDA_DEBUG: OSS mixer initialization... pcm0: HDA_DEBUG: Enabling Soft PCM volume ~/>grep XW43 /usr/src/sys/dev/sound/pci/hda/hdac.c #define HP_XW4300_SUBVENDOR HDA_MODEL_CONSTRUCT(HP, 0x3013) if (subvendor == HP_XW4300_SUBVENDOR) { /usr/sbin/mixer only recognise "vol, pcm, line, mic, cd, rec" I recompile with "cd /usr/src/sys/modules/sound/; make clean cleandir; make && make install" Thank you for spending time on this! --Ingeborg