summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia_codec.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2010-08-07 20:48:57 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2010-08-07 20:48:57 +0000
commit34c9ebb330d62ad8915a3045e16e172880972cdd (patch)
tree81c3f1f492ecff560cd2736d0613e0c99a8b205d /sys/dev/pci/azalia_codec.c
parent74957763d88ee16846b5fe460116321fff59e962 (diff)
restore unsolicited responses from volume knob widgets
tested by deraadt
Diffstat (limited to 'sys/dev/pci/azalia_codec.c')
-rw-r--r--sys/dev/pci/azalia_codec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index 0cd1a12f713..79594ecdddf 100644
--- a/sys/dev/pci/azalia_codec.c
+++ b/sys/dev/pci/azalia_codec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia_codec.c,v 1.147 2010/06/27 21:47:07 jakemsr Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.148 2010/08/07 20:48:56 jakemsr Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -1390,7 +1390,7 @@ azalia_mixer_default(codec_t *this)
}
this->recvols.mute = 0;
- err = azalia_codec_enable_unsol(this, 0);
+ err = azalia_codec_enable_unsol(this);
if (err)
return(err);
@@ -1398,7 +1398,7 @@ azalia_mixer_default(codec_t *this)
}
int
-azalia_codec_enable_unsol(codec_t *this, int resuming)
+azalia_codec_enable_unsol(codec_t *this)
{
widget_t *w;
uint32_t result;
@@ -1416,7 +1416,7 @@ azalia_codec_enable_unsol(codec_t *this, int resuming)
azalia_unsol_event(this, AZ_TAG_SPKR);
/* volume knob */
- if (this->playvols.master != this->audiofunc && !resuming) {
+ if (this->playvols.master != this->audiofunc) {
w = &this->w[this->playvols.master];
err = azalia_comresp(this, w->nid, CORB_GET_VOLUME_KNOB,