From owner-freebsd-multimedia@FreeBSD.ORG Wed Dec 1 07:02:14 2010 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 24A89106566B; Wed, 1 Dec 2010 07:02:14 +0000 (UTC) (envelope-from stefan@freebsd.org) Received: from mail.hamcom.de (mail.hamcom.de [212.37.37.213]) by mx1.freebsd.org (Postfix) with ESMTP id D17608FC16; Wed, 1 Dec 2010 07:02:13 +0000 (UTC) Received: from adsl-dyn-88-208-153-67.heliweb.de ([88.208.153.67] helo=birne.dunkelkammer.void) by mail.hamcom.de with esmtpa (Exim 4.71) (envelope-from ) id 1PNghg-0008Cz-8n; Wed, 01 Dec 2010 08:02:12 +0100 Received: by birne.dunkelkammer.void (Postfix, from userid 1002) id BBB381142D; Wed, 1 Dec 2010 08:02:11 +0100 (CET) X-HeLi-id: cfcd208495d565ef66e7dff9f98764da Date: Wed, 1 Dec 2010 08:02:11 +0100 From: Stefan Walter To: Alexander Motin Message-ID: <20101201070211.GA1437@birne.dunkelkammer.void> Mail-Followup-To: Alexander Motin , freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org, Ariff Abdullah , "Stephane E. Potvin" References: <20101115093709.GA1452@birne.dunkelkammer.void> <20101130201208.GA1472@birne.dunkelkammer.void> <4CF5677E.1040104@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <4CF5677E.1040104@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, freebsd-stable@freebsd.org, Ariff Abdullah Subject: Re: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off 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, 01 Dec 2010 07:02:14 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Alexander Motin, 30.11.10, 22:07h CET: > On 30.11.2010 22:12, Stefan Walter wrote: > > Stefan Walter, 15.11.10, 10:37h CET: > >> Audio with snd_hda(4) works, but only if loaded as a module AND only i= f I > >> load the module AFTER booting. If I compile it into the kernel or add > >> snd_hda_load=3D"YES" to /boot/loader.conf, dmesg shows the following: > >> > >> hdac0: HDA Codec #0: ATI RS690/780 HDMI > >> pcm0: at cad 0 nid 1 on hdac0 > >> hdac1: HDA Codec #0: Realtek ALC885 > >> pcm1: at cad 0 nid 1 on hdac1 > >> pcm2: at cad 0 nid 1 on hdac1 > >> pcm3: at cad 0 nid 1 on hdac1 > >> > >> mixer(8) shows: > >> > >> Mixer vol is currently set to 75:75 > >> Mixer pcm is currently set to 75:75 > >> > >> There is no audio in that case. Unloading and reloading the module (or > >> just loading the module manually after the boot process) logs: > >> > >> hdac0: mem 0xfe024000-0xf= e027fff irq 16 at device 20.2 on pci0 > >> hdac0: HDA Driver Revision: 20100226_0142 > >> hdac0: [ITHREAD] > >> hdac0: HDA Codec #0: Realtek ALC885 > >> hdac1: mem 0xfdffc000= -0xfdffffff irq 19 at device 5.1 on pci1 > >> hdac1: HDA Driver Revision: 20100226_0142 > >> hdac1: [ITHREAD] > >> hdac1: HDA Codec #0: ATI RS690/780 HDMI > >> pcm0: at cad 0 nid 1 on hdac0 > >> pcm1: at cad 0 nid 1 on hdac0 > >> pcm2: at cad 0 nid 1 on hdac0 > >> pcm3: at cad 0 nid 1 on hdac1 > >> > >> mixer then shows: > >> > >> Mixer vol is currently set to 75:75 > >> Mixer pcm is currently set to 75:75 > >> Mixer speaker is currently set to 75:75 > >> Mixer line is currently set to 75:75 > >> Mixer mic is currently set to 0:0 > >> Mixer mix is currently set to 0:0 > >> Mixer rec is currently set to 75:75 > >> Mixer igain is currently set to 0:0 > >> > >> Audio then seems to work fine. (Plugging earphones into the computer's > >> case's front plugs doesn't do anything, though - audio still comes from > >> the speakers attached to the plug at the back of the case. Any ideas a= bout > >> that?) Loading snd_hda from a startup script would probably work, but I > >> guess that's not the way it was meant to work. > > > > Unfortunately, the recent update to 8-STABLE didn't change anything with > > these problems - any ideas, anyone? >=20 > Loading driver aftre boot seems have different device probe order. That= =20 > causes HDMI HDA codec on video card to be probed either first or second.= =20 > It is not snd_hda problem and could be handled just by choosing right=20 > pcm device to use (possibly via hw.snd.default_unit sysctl). Indeed - setting hw.snd.default_unit to 1 helped. > Lack of audio redirection can probably be explained by CODEC=20 > configuration made by BIOS. I suppose that front connectors are=20 > configured as separate pcm device. Ah, OK - seems like you're right again. Setting hw.snd.default_unit to the other analog one directed the sound to the front plugs. Thanks a lot! Regards, Stefan --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQGVAwUBTPXy81aRERsSueCzAQJoVAv/eDb3M+KxSggi5lshlCs7NiGQwfTcBBC1 0Qb7BkOKFpocbEpEMWHO95SSA/gFmWHPSvkNCa6o32IgzCFCQOWssSRiHK3PNF35 q260+LvbDfNBE83Qgow5sLmvHOhPJeFnKA/a1yj+t/Vqd3nJ8K/110DaRyyBJfrf 824xmAKH+GVwcJNyYLEa/UyFfxD17+a5nJ9rXemzjnsaO/IJCzY2WzrDs0lFXVe4 /VeDYBz9c+2K98poyH6BKDhTtXDZril+Cjl6ZB1kOlEIvWXCC7MSGCuVg2XX/bUP PC7KALsaheDLUUxS+1HQmISH/qfVcNEKsuKUVMCkgT6L7LL/hJAMZSTwKzjb5qZM WQqgBBmq+FLLYBSjg2L2yUEsEUVzuMwTs9FRb1Wrwefe/lqiB+y18kErpPW5GQXN s6FUAgBQknlZIBX9sTx+Ne8FBE3j6yXgqlKPdAhU3IbXGOHK5SHZLu/hRZO02YXa A55m6UooU6ePn0MXqFiUzATwYk6llwr3 =f4Kt -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--