From owner-freebsd-multimedia@FreeBSD.ORG Tue Jun 7 12:09:04 2011 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B25A106564A; Tue, 7 Jun 2011 12:09:04 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (r2b9.nsu.ru [212.192.164.39]) by mx1.freebsd.org (Postfix) with ESMTP id 7D7548FC1D; Tue, 7 Jun 2011 12:09:03 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1QTv5c-0007Z8-7a; Tue, 07 Jun 2011 19:08:56 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id p57CBXUd059729; Tue, 7 Jun 2011 19:11:34 +0700 (NOVST) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id p57CBCE7059579; Tue, 7 Jun 2011 19:11:12 +0700 (NOVST) (envelope-from danfe) Date: Tue, 7 Jun 2011 19:11:11 +0700 From: Alexey Dokuchaev To: Alexander Motin Message-ID: <20110607121111.GA38205@regency.nsu.ru> References: <20100731163218.GA39249@regency.nsu.ru> <20110515163619.GA49401@regency.nsu.ru> <20110516032002.GA94798@regency.nsu.ru> <20110604142511.GA2424@regency.nsu.ru> <4DECC964.4040009@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DECC964.4040009@FreeBSD.org> User-Agent: Mutt/1.4.2.1i Cc: multimedia@FreeBSD.org Subject: Re: snd_hda(4) pin routing issues 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: Tue, 07 Jun 2011 12:09:04 -0000 On Mon, Jun 06, 2011 at 03:34:44PM +0300, Alexander Motin wrote: > Here you have output association including three independent outputs. > What's strange is that pin 9 is digital, while the rest two is analog. > It is not fatal, but usually wrong. Also note that all 3 pins configured > to have own channels with no redirection. But looking on further output > you should see that codec has only one analog and one digital DACs! > > Tunable you were using: > hint.hdac.0.cad0.nid13.config="as=1 seq=15" > is correct. It makes driver to setup audio redirection for headphones > output, using same DAC as for the line-out. > > I would also added another tunable: > hint.hdac.0.cad0.nid9.config="as=4 seq=0" > to separate digital output into separate device, as it should. By the > way it will return analog recording to pcm0 device, which was pushed out > to pcm1, as pcm0 was considered digital because of using one digital pin > there. Alexander, you rock! :-) After applying two tunables suggested I finally have working playback and recording (I've patched hdac_widget_pin_patch() function directly to avoid doing a reboot), huge thanks! I'm having an almost forgotten feeling of something getting quite obvious after being explained. I will try to prepare a patch for manpage as I know there are others complaining that while it's very thorough and detailed, it often fails to help in real life (e.g. in my case, I could not come up with proper patch for nid9). Thanks again, ./danfe