From owner-freebsd-multimedia@FreeBSD.ORG Sun May 15 20:35:41 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 0278C106566B for ; Sun, 15 May 2011 20:35:41 +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 9F6E38FC15 for ; Sun, 15 May 2011 20:35:40 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1QLeHo-0006Wj-1H for multimedia@freebsd.org; Sun, 15 May 2011 23:35:20 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id p4FGafJq066698 for ; Sun, 15 May 2011 23:36:41 +0700 (NOVST) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id p4FGaKaD066558 for multimedia@freebsd.org; Sun, 15 May 2011 23:36:20 +0700 (NOVST) (envelope-from danfe) Date: Sun, 15 May 2011 23:36:19 +0700 From: Alexey Dokuchaev To: multimedia@freebsd.org Message-ID: <20110515163619.GA49401@regency.nsu.ru> References: <20100731163218.GA39249@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100731163218.GA39249@regency.nsu.ru> User-Agent: Mutt/1.4.2.1i Cc: 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: Sun, 15 May 2011 20:35:41 -0000 On Sat, Jul 31, 2010 at 11:32:18PM +0700, Alexey Dokuchaev wrote: > Hello there again, [ let's try it one more time ] > > I'm trying to get sound working on NEC Versa S950 laptop of mine, which > is recognized by snd_hda(4), but unfortunately, playback does not work > out of the box: [...] Still no sound for me after upgrading to 8-stable. I've booted Ubuntu livecd and (surprise!) the sounds works, both playback and recording. I've downloaded latest alsa-driver-1.0.24 sources, and apparently, they do quite some magic in alsa-kernel/pci/hda/patch_sigmatel.c: 1) my sound card (8384:7690) is reported as STAC9220 on FreeBSD, but ALSA code lists it as STAC9200; -- can that be a problem? 2) my codec seems reference one, and ALSA applies the following pin configuration (in addition to other things): static unsigned int ref9200_pin_configs[8] = { 0x01c47010, 0x01447010, 0x0221401f, 0x01114010, 0x02a19020, 0x01a19021, 0x90100140, 0x01813122, }; These values vaguely match what I see from our snd_hda(4), but I am not sure how to properly apply them via device hints. Before I dig deeply into the guts, maybe someone knowledgeable can provide my with some guidance while I'm still on the "river bank"? > Am I missing something? Comparing verbose dmesg outputs (relevant lines > attached for both cases) does not immediately reveal why recording gets > broken with nid13 sequence number reassigned. Attached files can be > also found here in case our mailman drops attachments: > > http://193.124.210.26/dmesg.verbose.default > http://193.124.210.26/dmesg.verbose.hinted In addition to the above, contents of Linux' /proc/asound/card0/ files is available here: http://193.124.210.26/alsa-hda-dump ./danfe