diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2008-12-09 22:50:00 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2008-12-09 22:50:00 +0000 |
commit | a7299fc2f4464992a50f300e129a0b63a1e8fc3b (patch) | |
tree | 825eb1d9ce5b9cebe98d726dc2b53d6023f060ab /sys/dev/pci/envy.c | |
parent | c8b81256fa10b9c83d990353743ac5a07d9b6baa (diff) |
Non soundblaster-like devices must set AUDIO_PROP_INDEPENDENT
flag even if playback and record are not independent; otherwise
AUDIO_GETINFO ioctl may return false parameters on devices like
envy(4) that don't use the same number of channels for playback
and recording.
Diffstat (limited to 'sys/dev/pci/envy.c')
-rw-r--r-- | sys/dev/pci/envy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c index df8cac15c27..4783d98f2be 100644 --- a/sys/dev/pci/envy.c +++ b/sys/dev/pci/envy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envy.c,v 1.11 2008/11/29 18:32:18 ratchov Exp $ */ +/* $OpenBSD: envy.c,v 1.12 2008/12/09 22:49:59 ratchov Exp $ */ /* * Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> * @@ -1045,5 +1045,5 @@ envy_set_port(void *self, struct mixer_ctrl *ctl) int envy_get_props(void *self) { - return AUDIO_PROP_FULLDUPLEX; + return AUDIO_PROP_FULLDUPLEX | AUDIO_PROP_INDEPENDENT; } |