summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/maestro.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2002-01-27 23:09:41 +0000
committerscottl <scottl@FreeBSD.org>2002-01-27 23:09:41 +0000
commit336ec4d2e719dcefc0edc5fe2231cc00d761f9d4 (patch)
tree34767afb6b76f967ed90f2fe9833082625a80d93 /sys/dev/sound/pci/maestro.c
parentc3958d9a9e6e0828fe35196bd3d449ac82f7d4a9 (diff)
downloadFreeBSD-src-336ec4d2e719dcefc0edc5fe2231cc00d761f9d4.zip
FreeBSD-src-336ec4d2e719dcefc0edc5fe2231cc00d761f9d4.tar.gz
Recent changes to newpcm require that the CHANNEL_SETFORMAT op return 0
for success, non-zero otherwise. The maestro and maestro3 drivers were returning the format code, which was being interpreted as a failure code. Fixed. No one seems to have noticed that the maestro driver was broken, but I'll fix it anyways. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/sound/pci/maestro.c')
-rw-r--r--sys/dev/sound/pci/maestro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/maestro.c b/sys/dev/sound/pci/maestro.c
index 5483853..bf5f442 100644
--- a/sys/dev/sound/pci/maestro.c
+++ b/sys/dev/sound/pci/maestro.c
@@ -717,7 +717,7 @@ aggch_setplayformat(kobj_t obj, void *data, u_int32_t format)
}
ch->wcreg_tpl = wcreg_tpl;
ch->aputype = aputype;
- return format;
+ return 0;
}
static int
OpenPOWER on IntegriCloud