From a7299fc2f4464992a50f300e129a0b63a1e8fc3b Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 9 Dec 2008 22:50:00 +0000 Subject: 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. --- sys/dev/pci/envy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 * @@ -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; } -- cgit v1.2.3