Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/audio Fix a return value of audiopoll().



details:   https://anonhg.NetBSD.org/src/rev/82c585647a07
branches:  trunk
changeset: 979089:82c585647a07
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sun Dec 13 05:44:09 2020 +0000

description:
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 e4653bd0a0bd -r 82c585647a07 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Sun Dec 13 05:29:19 2020 +0000
+++ b/sys/dev/audio/audio.c     Sun Dec 13 05:44:09 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.83 2020/12/13 05:29:19 isaki Exp $ */
+/*     $NetBSD: audio.c,v 1.84 2020/12/13 05:44:09 isaki Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -138,7 +138,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.83 2020/12/13 05:29:19 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.84 2020/12/13 05:44:09 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -1873,7 +1873,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