From owner-freebsd-multimedia@FreeBSD.ORG Wed Sep 16 09:37:32 2009 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 E5F291065672 for ; Wed, 16 Sep 2009 09:37:32 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.freebsd.org (Postfix) with ESMTP id A45968FC0A for ; Wed, 16 Sep 2009 09:37:32 +0000 (UTC) Received: from 138.78.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.78.138]) by smtp.vzavenue.net with ESMTP; 16 Sep 2009 05:08:03 -0400 X-REPUTATION: None X-REMOTE-IP: 66.171.78.138 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAGdGsEpCq06K/2dsb2JhbACBUtw3hBcF X-IronPort-AV: i="4.44,396,1249272000"; d="scan'208"; a="207393388:sNHT23265954" Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.3/8.14.3) with ESMTP id n8G97o2b085877 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 16 Sep 2009 05:08:02 -0400 (EDT) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([86.211.202.242] helo=shibato.opal.com) with IPv4:587 by opal.com; 16 Sep 2009 05:07:50 -0400 Date: Wed, 16 Sep 2009 11:07:47 +0200 From: "J.R. Oldroyd" To: freebsd-multimedia@freebsd.org Message-ID: <20090916110747.1c812b79@shibato.opal.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; amd64-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: snd_hda same output on two pcms? 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: Wed, 16 Sep 2009 09:37:33 -0000 Is it possible to configure snd_hda so that one output is available on two pcm devices? I would like: pcm0: built-in speaker, headphone jack mic pcm1: built-in speaker only My default hda config is here: http://opal.com/jr/snd_hda/default.txt I added the following device hints: hint.hdac.0.cad3.nid20.config="as=1 seq=0" hint.hdac.0.cad3.nid21.config="as=1 seq=15" hint.hdac.0.cad3.nid24.config="as=2 seq=0" hint.hdac.0.cad3.nid25.config="as=2 seq=1" hint.hdac.0.cad3.nid22.config="as=3 seq=0 device=Speaker conn=Fixed" The result is here: http://opal.com/jr/snd_hda/changed.txt The result is that pcm0 works as expected, but the initialization of pcm1 fails, as can be seen in the trace: hdac0: Tracing association 2 (3) hdac0: Unable to trace pin 22 seq 0 with min nid 0 hdac0: Association 2 (3) trace failed I also tried: hint.hdac.0.cad3.nid22.config="0x99130130" with the same failed result. I note the last paragraph in the snd_hda man page: BUGS Due to OSS limitation multichannel (not multidevice) playback is not supported. Does that mean I cannot do what I am attempting to do? -jr