From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 14 02:30:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FC291065672 for ; Sun, 14 Jun 2009 02:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6BE528FC16 for ; Sun, 14 Jun 2009 02:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5E2U1P4091517 for ; Sun, 14 Jun 2009 02:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5E2U15o091516; Sun, 14 Jun 2009 02:30:01 GMT (envelope-from gnats) Resent-Date: Sun, 14 Jun 2009 02:30:01 GMT Resent-Message-Id: <200906140230.n5E2U15o091516@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Joseph S. Atkinson" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34A5C106564A for ; Sun, 14 Jun 2009 02:20:03 +0000 (UTC) (envelope-from jsa@wickedmachine.net) Received: from shaitan.wickedmachine.net (tn-67-232-80-18.dhcp.embarqhsd.net [67.232.80.18]) by mx1.freebsd.org (Postfix) with ESMTP id E691B8FC08 for ; Sun, 14 Jun 2009 02:20:02 +0000 (UTC) (envelope-from jsa@wickedmachine.net) Received: from shaitan.wickedmachine.net (localhost [127.0.0.1]) by shaitan.wickedmachine.net (8.14.3/8.14.3) with ESMTP id n5E2K2Jn002610; Sat, 13 Jun 2009 22:20:02 -0400 (EDT) (envelope-from jsa@wickedmachine.net) Message-Id: <1244946002.2329@shaitan.wickedmachine.net> Date: Sat, 13 Jun 2009 22:20:02 -0400 From: "Joseph S. Atkinson" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: ariff@FreeBSD.org Subject: kern/135556: Sound (mostly) broken w/ snd_hda on -CURRENT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 02:30:01 -0000 >Number: 135556 >Category: kern >Synopsis: Sound (mostly) broken w/ snd_hda on -CURRENT >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 14 02:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Joseph S. Atkinson >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD 8.0-CURRENT #0 r194047: Fri Jun 12 04:13:43 EDT 2009 jsa@shaitan.wickedmachine.net:/usr/obj/usr/src/sys/SHAITAN >Description: snd_hda will not play audio when loaded from /boot/loader.conf I've read the lists about this, and I do have a video card w/ and HDMI port that is detect as hdac0 first. Setting hw.snd.default_unti=1 has no effect, though I can confirm the sysctl is being set properly. The only way I can get audio is by `kldload snd_hda` after boot, which makes the devices discover in reverse order and sets the ATI SB600 as hdac0 and pcm0. The detection order seems like it needs to be stabilized so devices are in predictable places unless hotplugged. Here's output from the last kld_load. hdac0: mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0 hdac0: HDA Driver Revision: 20090608_0134 hdac0: [ITHREAD] hdac0: HDA Codec #0: Realtek ALC888 hdac1: mem 0xfdffc000-0xfdffffff irq 19 at device 0.1 on pci1 hdac1: HDA Driver Revision: 20090608_0134 hdac1: [ITHREAD] hdac1: HDA Codec #0: ATI R6xx 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 >How-To-Repeat: Boot w/ snd_hda_load="YES" (loader.conf), no sound through desired device. Boot w/ snd_hda_load="YES" (loader.conf) and hw.snd.default_unit=1 (sysctl.conf), still no sound through desired device. Boot without snd_hda_load, then kldload snd_hda after boot. Sound plays through desired device. >Fix: >Release-Note: >Audit-Trail: >Unformatted: