Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/hdaudio Enable AUDIO_PROP_MMAP in hdafg(4).



details:   https://anonhg.NetBSD.org/src/rev/3c4a152fde76
branches:  trunk
changeset: 795884:3c4a152fde76
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri May 09 20:10:49 2014 +0000

description:
Enable AUDIO_PROP_MMAP in hdafg(4).

Addresses PR#48792 and PR#35961.

diffstat:

 sys/dev/pci/hdaudio/hdafg.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 37e75b3a47b8 -r 3c4a152fde76 sys/dev/pci/hdaudio/hdafg.c
--- a/sys/dev/pci/hdaudio/hdafg.c       Fri May 09 19:51:43 2014 +0000
+++ b/sys/dev/pci/hdaudio/hdafg.c       Fri May 09 20:10:49 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.19 2014/03/25 16:19:14 christos Exp $ */
+/* $NetBSD: hdafg.c,v 1.20 2014/05/09 20:10:49 jakllsch 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.19 2014/03/25 16:19:14 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.20 2014/05/09 20:10:49 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -4178,7 +4178,7 @@
 hdafg_get_props(void *opaque)
 {
        struct hdaudio_audiodev *ad = opaque;
-       int props = 0;
+       int props = AUDIO_PROP_MMAP;
 
        if (ad->ad_playback)
                props |= AUDIO_PROP_PLAYBACK;
@@ -4189,8 +4189,6 @@
                props |= AUDIO_PROP_INDEPENDENT;
        }
 
-       /* TODO: AUDIO_PROP_MMAP */
-
        return props;
 }
 



Home | Main Index | Thread Index | Old Index