Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/audio Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/12c8cde5f824
branches:  netbsd-9
changeset: 953180:12c8cde5f824
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Feb 28 07:07:38 2021 +0000

description:
Pull up following revision(s) (requested by isaki in ticket #1218):

        sys/dev/audio/audio.c: revision 1.84

Fix a return value of audiopoll().
fo_poll is expected to return revents rather than errno on error.

diffstat:

 sys/dev/audio/audio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e0e4d9aa1b9 -r 12c8cde5f824 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Sun Feb 28 07:05:14 2021 +0000
+++ b/sys/dev/audio/audio.c     Sun Feb 28 07:07:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.28.2.19 2021/02/28 07:05:14 martin Exp $   */
+/*     $NetBSD: audio.c,v 1.28.2.20 2021/02/28 07:07:38 martin Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.19 2021/02/28 07:05:14 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.20 2021/02/28 07:07:38 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -1885,7 +1885,7 @@
 
        sc = audio_file_enter(file, &sc_ref);
        if (sc == NULL)
-               return EIO;
+               return POLLERR;
 
        switch (AUDIODEV(dev)) {
        case SOUND_DEVICE:



Home | Main Index | Thread Index | Old Index