diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2011-02-17 17:38:56 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2011-02-17 17:38:56 +0000 |
commit | f3377703636f0e19faf7dcdc209ac0aede87f3f4 (patch) | |
tree | 2943519c472cb3b4d20ecc59ecccb36e0e832ee9 /sys/dev | |
parent | a4801c2fbf73e24062558002c2082e3951c77858 (diff) |
if changing the default speaker connection, be sure it's both a
valid connection and a valid converter. fixes speaker auto-mute
for some IDT codecs.
ok miod@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/azalia.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index b47c7be1863..4ea59cf8552 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.189 2011/02/17 16:02:22 jakemsr Exp $ */ +/* $OpenBSD: azalia.c,v 1.190 2011/02/17 17:38:55 jakemsr Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -2247,7 +2247,7 @@ azalia_codec_select_spkrdac(codec_t *this) } } } - if (conn != -1) { + if (conn != -1 && conv != -1) { err = azalia_comresp(this, w->nid, CORB_SET_CONNECTION_SELECT_CONTROL, conn, 0); if (err) |