From owner-freebsd-stable@FreeBSD.ORG Tue Nov 30 21:07:23 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B139106566B for ; Tue, 30 Nov 2010 21:07:23 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6AF308FC12 for ; Tue, 30 Nov 2010 21:07:22 +0000 (UTC) Received: by fxm16 with SMTP id 16so4257426fxm.13 for ; Tue, 30 Nov 2010 13:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=XU+5fxaDJHSb0pSPlOLHvMn4A3sFsiMTzqey9a5VzO0=; b=ODGVnxBqWNPVDw5LyeKHjtDKbdt/LH6uvPDG7rmy1k9JpBgTbwF7AlTbYHO5lrk7fW L0TLvKrSHg/pyUAMnDWAl4L3qTU7lqDZANtfuZdQJoC3/V4GtYInfIP5AQL2zGb00+9Q vfM0lsZ8JjBvyei2nN+jA2ca6VVlW+v96yALI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=pkR8oWuT+/5TFQGcgkRwgFBtOHPxKblrP39Ey3uvFZB2B8RHX8APnA6JoAt1gsjmIY urgDtOPy/45UY7+xgM7W08MiRLhuwd8WS7MGbbdIokGyyEz1snzPLwXkZEzC6hTVysPG /mDeU79DRRHzhSXK7JW+7nDjjmucbe4k/65Rs= Received: by 10.223.87.3 with SMTP id u3mr7465788fal.131.1291151241328; Tue, 30 Nov 2010 13:07:21 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id n1sm1816393fam.40.2010.11.30.13.07.18 (version=SSLv3 cipher=RC4-MD5); Tue, 30 Nov 2010 13:07:19 -0800 (PST) Sender: Alexander Motin Message-ID: <4CF5677E.1040104@FreeBSD.org> Date: Tue, 30 Nov 2010 23:07:10 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101104 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org, Ariff Abdullah , "Stephane E. Potvin" References: <20101115093709.GA1452@birne.dunkelkammer.void> <20101130201208.GA1472@birne.dunkelkammer.void> In-Reply-To: <20101130201208.GA1472@birne.dunkelkammer.void> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2010 21:07:23 -0000 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 if I >> load the module AFTER booting. If I compile it into the kernel or add >> snd_hda_load="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-0xfe027fff 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 about >> 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? Loading driver aftre boot seems have different device probe order. That causes HDMI HDA codec on video card to be probed either first or second. It is not snd_hda problem and could be handled just by choosing right pcm device to use (possibly via hw.snd.default_unit sysctl). Lack of audio redirection can probably be explained by CODEC configuration made by BIOS. I suppose that front connectors are configured as separate pcm device. -- Alexander Motin