Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hdaudio be more selective and mute only mic's. Sugge...
details: https://anonhg.NetBSD.org/src/rev/aa559cd54444
branches: trunk
changeset: 341398:aa559cd54444
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 04 15:01:56 2015 +0000
description:
be more selective and mute only mic's. Suggested by jmcneill
diffstat:
sys/dev/hdaudio/hdafg.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r c91260e2aab1 -r aa559cd54444 sys/dev/hdaudio/hdafg.c
--- a/sys/dev/hdaudio/hdafg.c Wed Nov 04 14:11:09 2015 +0000
+++ b/sys/dev/hdaudio/hdafg.c Wed Nov 04 15:01:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.4 2015/11/04 14:11:09 christos Exp $ */
+/* $NetBSD: hdafg.c,v 1.5 2015/11/04 15:01:56 christos Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.4 2015/11/04 14:11:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.5 2015/11/04 15:01:56 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -2367,7 +2367,8 @@
z = ctl->ctl_offset;
if (z > ctl->ctl_step)
z = ctl->ctl_step;
- if (ctl->ctl_dir & HDAUDIO_PINDIR_IN)
+ if ((ctl->ctl_dir & HDAUDIO_PINDIR_IN) &&
+ ctl->ctl_widget->w_type == COP_AWCAP_TYPE_AUDIO_INPUT)
hdafg_control_amp_set(ctl, HDAUDIO_AMP_MUTE_ALL, z, z);
else
hdafg_control_amp_set(ctl, HDAUDIO_AMP_MUTE_NONE, z, z);
Home |
Main Index |
Thread Index |
Old Index