Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev In SNAPPER_OUTPUT_SELECT the "mask" is a...
details: https://anonhg.NetBSD.org/src/rev/2c8b6fef87be
branches: trunk
changeset: 366603:2c8b6fef87be
user: martin <martin%NetBSD.org@localhost>
date: Wed Jun 01 05:47:37 2022 +0000
description:
In SNAPPER_OUTPUT_SELECT the "mask" is a bitmap of muted outputs, not
active outputs.
diffstat:
sys/arch/macppc/dev/snapper.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 6af844252a1f -r 2c8b6fef87be sys/arch/macppc/dev/snapper.c
--- a/sys/arch/macppc/dev/snapper.c Wed Jun 01 05:42:52 2022 +0000
+++ b/sys/arch/macppc/dev/snapper.c Wed Jun 01 05:47:37 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snapper.c,v 1.62 2022/06/01 05:42:52 martin Exp $ */
+/* $NetBSD: snapper.c,v 1.63 2022/06/01 05:47:37 martin Exp $ */
/* Id: snapper.c,v 1.11 2002/10/31 17:42:13 tsubai Exp */
/* Id: i2s.c,v 1.12 2005/01/15 14:32:35 tsubai Exp */
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.62 2022/06/01 05:42:52 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.63 2022/06/01 05:47:37 martin Exp $");
#include <sys/param.h>
#include <sys/audioio.h>
@@ -1274,11 +1274,11 @@
dip->prev = dip->next = AUDIO_MIXER_LAST;
dip->un.s.num_mem = 3;
strcpy(dip->un.s.member[0].label.name, AudioNspeaker);
- dip->un.s.member[0].mask = 1 << 0;
+ dip->un.s.member[0].mask = (1 << 1)|(1 << 2);
strcpy(dip->un.s.member[1].label.name, AudioNheadphone);
- dip->un.s.member[1].mask = 1 << 1;
+ dip->un.s.member[1].mask = (1 << 0)|(1 << 2);
strcpy(dip->un.s.member[2].label.name, AudioNline);
- dip->un.s.member[2].mask = 1 << 2;
+ dip->un.s.member[2].mask = (1 << 0)|(1 << 1);
return 0;
case SNAPPER_VOL_OUTPUT:
Home |
Main Index |
Thread Index |
Old Index