From owner-freebsd-current@freebsd.org  Sun Sep 30 16:17:30 2018
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4443E10C3AA8
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Sun, 30 Sep 2018 16:17:30 +0000 (UTC)
 (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net)
Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org
 [IPv6:2001:1900:2254:206a::50:5])
 by mx1.freebsd.org (Postfix) with ESMTP id D848A890F0
 for <freebsd-current@freebsd.org>; Sun, 30 Sep 2018 16:17:29 +0000 (UTC)
 (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net)
Received: by mailman.ysv.freebsd.org (Postfix)
 id 9D47210C3AA7; Sun, 30 Sep 2018 16:17:29 +0000 (UTC)
Delivered-To: current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C15310C3AA6
 for <current@mailman.ysv.freebsd.org>; Sun, 30 Sep 2018 16:17:29 +0000 (UTC)
 (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net)
Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 02C65890EC
 for <current@freebsd.org>; Sun, 30 Sep 2018 16:17:28 +0000 (UTC)
 (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net)
Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1])
 by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w8UGHJP8087732;
 Sun, 30 Sep 2018 09:17:20 -0700 (PDT)
 (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net)
Received: (from freebsd-rwg@localhost)
 by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w8UGHJZH087731;
 Sun, 30 Sep 2018 09:17:19 -0700 (PDT) (envelope-from freebsd-rwg)
From: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>
Message-Id: <201809301617.w8UGHJZH087731@pdx.rh.CN85.dnsmgr.net>
Subject: Re: devmatch sideeffec: No sound
In-Reply-To: <1121.1538293898@critter.freebsd.dk>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Date: Sun, 30 Sep 2018 09:17:19 -0700 (PDT)
CC: current@freebsd.org
X-Mailer: ELM [version 2.4ME+ PL121h (25)]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 30 Sep 2018 16:17:30 -0000

> HW: Thinkpad T480 with T3 Dock.
> 
> SW: -current, r338952
> 
> With devmatch enabled in /etc/rc.conf (the default0, snd_uaudio
> gets loaded automatically and finds the audio stuff in the dock,
> which is connected to a screen output(s) I do not use.
> 
> Firefox ends up with /dev/dsp2.0 which goes there, and as a result
> I get no sound through the laptops speakers where I expect it.
> 
> Obvious workaround: Disable devmatch.

I have just the opposite issue on my x230,
as I use external speakers plugged into the audio jack,
and to get them on I have to do a:

sysctl hw.snd.default_unit=1

Or it may need to be:
sysctl hw.snd.default_unit=0

> Yet to be discovered workaround:  Prioritize sound devices, when
> there are multiple.
> 
> This kind of thing may cause some support-work when 12 comes out...
> 

-- 
Rod Grimes                                                 rgrimes@freebsd.org