Page MenuHomeFreeBSD

D47324.id145956.diff
No OneTemporary

D47324.id145956.diff

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

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)

Event Timeline