From 2aba1a23e4bacdb3c1b903d6340573ab8b95e3df Mon Sep 17 00:00:00 2001 From: jakemsr Date: Fri, 6 Aug 2010 05:34:50 +0000 Subject: [PATCH] no need to save/restore the state of the master volume ok deraadt --- sys/dev/pci/azalia.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 1d8083cebf4..608fd0f37f9 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.177 2010/08/06 04:43:20 jakemsr Exp $ */ +/* $OpenBSD: azalia.c,v 1.178 2010/08/06 05:34:50 jakemsr Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -1483,6 +1483,8 @@ azalia_save_mixer(codec_t *this) for (i = 0; i < this->nmixers; i++) { m = &this->mixers[i]; + if (m->nid == this->playvols.master) + continue; mc.dev = i; mc.type = m->devinfo.type; azalia_mixer_get(this, m->nid, m->target, &mc); @@ -1515,6 +1517,8 @@ azalia_restore_mixer(codec_t *this) for (i = 0; i < this->nmixers; i++) { m = &this->mixers[i]; + if (m->nid == this->playvols.master) + continue; mc.dev = i; mc.type = m->devinfo.type; switch (mc.type) { -- 2.20.1