Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102879691
D46560.id143016.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
525 B
Referenced Files
None
Subscribers
None
D46560.id143016.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D46560: sound: Re-arrange vchan_setnew() initial checks and improve errno values
Attached
Detach File
Event Timeline
Log In to Comment