Page MenuHomeFreeBSD

D46560.id143016.diff
No OneTemporary

D46560.id143016.diff

diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c
--- a/sys/dev/sound/pcm/vchan.c
+++ b/sys/dev/sound/pcm/vchan.c
@@ -925,15 +925,15 @@
PCM_BUSYASSERT(d);
+ if (newcnt < 0)
+ return (ERANGE);
+
if ((direction == PCMDIR_PLAY && d->playcount < 1) ||
(direction == PCMDIR_REC && d->reccount < 1))
return (ENODEV);
if (!(d->flags & SD_F_AUTOVCHAN))
- return (EINVAL);
-
- if (newcnt < 0)
- return (E2BIG);
+ return (ENOTSUP);
if (direction == PCMDIR_PLAY)
vcnt = d->pvchancount;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 9:01 AM (11 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11431806
Default Alt Text
D46560.id143016.diff (525 B)

Event Timeline