Re: Kernel panic with audioplay
Nathanial Sloss <[email protected]> Wed, 26 Jul 2017 00:21:14 +1000
| Newsgroups | gmane.os.netbsd.ports.dreamcast |
|---|---|
| Organization | The NetBSD Foundation Inc. |
| Message-ID | <[email protected]> |
--Boundary-00=_aP1dZ/lRrhM1rsL
Content-Type: Text/Plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Seems you have more than enough free memory.
The audio device configures at 48 kHz this is allowed by the driver but might
be causing problems.
Please set the frequency sysctl to 44100 Hz:
sysctl -w hw.aica0.frequency=44100
And try playing something again - If this works I'll make changes to aica.c.
If it does not work try the attached patch.
Best regards,
Nat
On Tue, 25 Jul 2017 11:22:51 Nathanial Sloss wrote:
> I believe audio* at audiobus? is the correct attachment.
>
> I was wondering how much memory you have free?
>
> What is the output of dmesg | grep SLINEAR?
>
> Please cc me as I'm not subscribed to the list.
>
--Boundary-00=_aP1dZ/lRrhM1rsL
Content-Type: text/x-patch;
charset="ISO-8859-1";
name="dreamcast-audio.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="dreamcast-audio.diff"
Index: aica.c
===================================================================
RCS file: /cvsroot/src/sys/arch/dreamcast/dev/g2/aica.c,v
retrieving revision 1.22
diff -u -p -r1.22 aica.c
--- aica.c 23 Nov 2011 23:07:29 -0000 1.22
+++ aica.c 25 Jul 2017 14:16:04 -0000
@@ -774,7 +774,7 @@ int
aica_get_props(void *addr)
{
- return 0;
+ return AUDIO_PROP_PLAYBACK;
}
void
--Boundary-00=_aP1dZ/lRrhM1rsL--