Module Name: src
Committed By: tsutsui
Date: Sat Nov 20 16:12:24 UTC 2010
Modified Files:
src/sys/arch/dreamcast/dev/g2: aica.c
Log Message:
Make aica_round_blocksize() always return a fixed buffer size.
I'm not sure if this is correct, but audio playback doesn't work
on dreamcast without this workaround. (since kent-audio1 merge?)
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/dreamcast/dev/g2/aica.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/dreamcast/dev/g2/aica.c
diff -u src/sys/arch/dreamcast/dev/g2/aica.c:1.18 src/sys/arch/dreamcast/dev/g2/aica.c:1.19
--- src/sys/arch/dreamcast/dev/g2/aica.c:1.18 Fri Aug 1 20:19:49 2008
+++ src/sys/arch/dreamcast/dev/g2/aica.c Sat Nov 20 16:12:23 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: aica.c,v 1.18 2008/08/01 20:19:49 marcus Exp $ */
+/* $NetBSD: aica.c,v 1.19 2010/11/20 16:12:23 tsutsui Exp $ */
/*
* Copyright (c) 2003 SHIMIZU Ryo <[email protected]>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.18 2008/08/01 20:19:49 marcus Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.19 2010/11/20 16:12:23 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -479,6 +479,7 @@
int
aica_round_blocksize(void *addr, int blk, int mode, const audio_params_t *param)
{
+#if 0 /* XXX this has not worked since kent-audio1 merge? */
struct aica_softc *sc;
sc = addr;
@@ -505,6 +506,7 @@
break;
}
+#endif
return AICA_DMABUF_SIZE / 4;
}