From alsa-devel-owner@alsa.jcu.cz  Fri Jul 31 19:13:35 1998
Received: from entry.jcu.cz (perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.8.8/8.8.8) with SMTP id TAA13776;
	Fri, 31 Jul 1998 19:13:21 +0200
Date: Fri, 31 Jul 1998 19:13:20 +0200 (MET DST)
From: Jaroslav Kysela <perex@jcu.cz>
To: Florian Kusche <florian.kusche@student.uni-ulm.de>
cc: alsa-devel@alsa.jcu.cz
Subject: Re: kernel oops (?)
In-Reply-To: <98073115344400.00447@mars.kusche.de>
Message-ID: <Pine.LNX.3.96.980731191019.648A-100000@entry.jcu.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Fri, 31 Jul 1998, Florian Kusche wrote:

> Hello
> 
> I got a kernel oops. (At least I think it is one. I havent seen one before...)
> 
> This test-program opens the soundcard for reading and for writing. When doing
> the pcm_read(), the oops occurs. This happens with both 0.1.4 and 0.2.0pre3
> drivers.

Oops.. You reached serious bug in ALSA native PCM interface... Here is fix
for alsa-0.2.0-pre2/pre3 packages:

--- kernel/pcm1/pcm1_native.c~      Fri Jul 17 16:15:21 1998
+++ kernel/pcm1/pcm1_native.c       Fri Jul 31 19:08:25 1998
@@ -1065,6 +1065,7 @@
     return -EINVAL;
   }
   pchn -> block_size = snd_pcm1_align( pcm1, SND_PCM1_RECORD, params.fragment_size );
+  pchn -> frag_size = pchn -> block_size;
   pchn -> blocks = pchn -> used_size / pchn -> block_size;
   pchn -> used_size = pchn -> blocks * pchn -> block_size;
   pchn -> blocks_min = params.fragments_min;

Thank you for testing...

						Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


