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 Revert previous, the mask is intented to...



details:   https://anonhg.NetBSD.org/src/rev/a31cd90f72ef
branches:  trunk
changeset: 366604:a31cd90f72ef
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jun 01 06:05:47 2022 +0000

description:
Revert previous, the mask is intented to be like sc_output_mask, a bitmask
of active ports.

diffstat:

 sys/arch/macppc/dev/snapper.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 2c8b6fef87be -r a31cd90f72ef sys/arch/macppc/dev/snapper.c
--- a/sys/arch/macppc/dev/snapper.c     Wed Jun 01 05:47:37 2022 +0000
+++ b/sys/arch/macppc/dev/snapper.c     Wed Jun 01 06:05:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: snapper.c,v 1.63 2022/06/01 05:47:37 martin Exp $      */
+/*     $NetBSD: snapper.c,v 1.64 2022/06/01 06:05:47 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.63 2022/06/01 05:47:37 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snapper.c,v 1.64 2022/06/01 06:05:47 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 << 1)|(1 << 2);
+               dip->un.s.member[0].mask = 1 << 0;
                strcpy(dip->un.s.member[1].label.name, AudioNheadphone);
-               dip->un.s.member[1].mask = (1 << 0)|(1 << 2);
+               dip->un.s.member[1].mask = 1 << 1;
                strcpy(dip->un.s.member[2].label.name, AudioNline);
-               dip->un.s.member[2].mask = (1 << 0)|(1 << 1);
+               dip->un.s.member[2].mask = 1 << 2;
                return 0;
 
        case SNAPPER_VOL_OUTPUT:



Home | Main Index | Thread Index | Old Index