Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163242176
D47324.id145956.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
685 B
Referenced Files
None
Subscribers
None
D47324.id145956.diff
View Options
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -465,7 +465,8 @@
}
int
-pcm_register(device_t dev, void *devinfo, int numplay, int numrec)
+pcm_register(device_t dev, void *devinfo, int numplay __unused,
+ int numrec __unused)
{
struct snddev_info *d;
int i;
@@ -503,13 +504,6 @@
CHN_INIT(d, channels.pcm.busy);
CHN_INIT(d, channels.pcm.opened);
- /* XXX This is incorrect, but lets play along for now. */
- if ((numplay == 0 || numrec == 0) && numplay != numrec)
- d->flags |= SD_F_SIMPLEX;
-
- if (numplay > 0 || numrec > 0)
- d->flags |= SD_F_AUTOVCHAN;
-
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 8:41 AM (6 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35357345
Default Alt Text
D47324.id145956.diff (685 B)
Attached To
Mode
D47324: sound: Remove early SD_F_SIMPLEX and SD_F_AUTOVCHAN assignments
Attached
Detach File
Event Timeline
Log In to Comment