From owner-freebsd-current@FreeBSD.ORG Mon Oct 6 09:49:08 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24985106568D; Mon, 6 Oct 2008 09:49:08 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B68D28FC1C; Mon, 6 Oct 2008 09:49:07 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2D2DF.dip.t-dialin.net [217.226.210.223]) by redbull.bpaserver.net (Postfix) with ESMTP id 886E12E21C; Mon, 6 Oct 2008 11:49:01 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id E9063157BC8; Mon, 6 Oct 2008 11:48:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1223286520; bh=zjWBiAiPvJZabRlS6Ul05ZRC2YA+WTi+w lY6yb+2ta4=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tJhFnV0IdDXPqOt01YFYJ6zxpDVHVoW6v7QhrA9KWC4Q9zspIWokDJaHWLm/yd/xK tTBpnIOrOK5nqwMN7c4ujz2u7kIMHai7lFhdr4tzMI9FF0B01CPI3xDhltdRm6uStOI kIBnfhTg4gy5NkBfl3RGcnl0EcsWM2zwhV5K1/XNfYnmoR6HnWHT+xyASRuWtUljU46 i1vTGgFoggmzQMN0Mdu/4gAoGCFHI724VajU07J5otXsCSoADz1hSzndU8AqFGHBP8e RWu5B95DKlRBi7+o7EqafpSPHAk1vWrQY3gNDJ0JFJOSZsRy75Kl5yEAZ1mCfi7I+9h Q++lyQd1A== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m969mcnv037118; Mon, 6 Oct 2008 11:48:38 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 06 Oct 2008 11:48:38 +0200 Message-ID: <20081006114838.75492pa2uian85wk@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 06 Oct 2008 11:48:38 +0200 From: "Alexander Leidinger" To: bsd@fluffles.net References: <1222892584.00020319.1222880402@10.7.7.3> <48E54290.5010600@FreeBSD.org> <48E54B75.3010307@FreeBSD.org> <200810030945.00843.doconnor@gsoft.com.au> <48E9AB21.1010203@fluffles.net> In-Reply-To: <48E9AB21.1010203@fluffles.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 886E12E21C.A5FE5 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-15.4, required 6, autolearn=not spam, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10, SMILEY -0.50) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Alexander Motin , freebsd-current@freebsd.org, Joel Dahl Subject: Re: regression in HDA functionality X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2008 09:49:08 -0000 Quoting fluffles.net (from Mon, 06 Oct 2008 =20 08:07:29 +0200): > Daniel O'Connor wrote: >> It seems that a lot of new systems now have multiple sound outputs >> (because they use HDA) so there needs to be some way to elect a default >> sound output (override by sysctl of course :) >> >> eg selecting the HDMI output is pointless if there is no HDMI link >> active (can you detect HDMI status?) >> > > Hi all, > I'm not a dev, but may have an idea. > > As i understand, the problem is that with the new patch, more devices > are detected which changes the numbering of the pcm devices, thus > out-of-the-box sound output does not (always) work. > > Maybe a solution would be to *always* register pcm0, so it becomes the > default device. This device is not a real device but rather a virtual We have /dev/dsp, which points by default to the first registered soundcard. > device like a wrapper/link to one of the other "real" pcm devices > starting with pcm1. An algoritm could select which device pcm0 points > to, and be changeable in sysctl, defaulting to "auto" or something. The The default I wrote above, can be changed with a sysctl. You specify =20 the device number (0 for pcm0, 1 for pcm1, ...). So except for one =20 part (auto), we already have what you suggest. The difficult part is the "auto". What's the right thing to choose? =20 Think a little bit about it, what's right for one person is wrong for =20 another one. A person which has everything connected digitally wants =20 the digital by default for sure, but a person which has analog and =20 digital connected, can not get a mind reading machine to see a =20 sensible default. And what about those which have the soundcard =20 connected to an amplifier, and the graphic card also offers the HDMI =20 sound channel to the screen? Does this person want the sound only via =20 the amplifier, or does he want it via the build-in speakers of the =20 screen (he may want the normal stuff routed to the screen, but at some =20 point turn on the amplifier and use it instead)? > auto setting could even be extended to change default device if > situation changes, like a new USB Audio device is plugged in or the > headphones-output is used. It might be hard to correctly predict the > desired behavior for everyone, but getting default audio output (front > speakers; stereo) to work out-of-the-box would be great. So everytime I connect an USB Audio device it means I want to switch =20 to it? Maybe it's a headset and I only want to make phone calls with =20 it (by telling the phone application to use specific devices), but for =20 the rest I want to use the already existing sound output. Bye, Alexander. --=20 Save the bales! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137