From alsa-devel-owner@alsa.jcu.cz  Thu Feb  4 09:12:22 1999
Received: from mgate2.uni-hannover.de (root@mgate2.uni-hannover.de [130.75.2.5])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id JAA28843
	for <alsa-devel@alsa.jcu.cz>; Thu, 4 Feb 1999 09:11:59 +0100
Received: from helios.tnt.uni-hannover.de by mgate2.uni-hannover.de 
          with LocalSMTP (PP) with ESMTP; Thu, 4 Feb 1999 09:11:29 +0100
Received: from sokrates.tnt.uni-hannover.de (pahl@sokrates.tnt.uni-hannover.de [130.75.31.157]) 
          by helios.tnt.uni-hannover.de (8.8.8/8.8.8) with ESMTP id JAA06606;
          Thu, 4 Feb 1999 09:11:28 +0100 (MET)
Received: (from pahl@localhost) by sokrates.tnt.uni-hannover.de (8.8.8/8.8.8) 
          id JAA28710; Thu, 4 Feb 1999 09:11:27 +0100
Date: Thu, 4 Feb 1999 09:11:27 +0100
Message-Id: <199902040811.JAA28710@sokrates.tnt.uni-hannover.de>
From: Martin Pahl <pahl@tnt.uni-hannover.de>
To: Jaroslav Kysela <perex@jcu.cz>
CC: alsa-devel@alsa.jcu.cz
Subject: Questrion to kernel-code 
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

I hope not to bother you to much, but I really want to get my driver
for ZA2 going. Recently I found this line in
pcm1_native.c:snd_pcm1_user_to_buffer:

                pchn->hw.dma(pcm1,
                             pchn->buffer,
                             (pchn->head * pchn->block_size) + pchn->frag_size,
                             (char *) buf, tmp);

This line calls the driver specific routine for placing the data into
dma-buffer (I just use the default snd_pcm1_playback_dma_ulaw). Ok, my
question is: What is the meaning of pchn->frag_size? I set the minimal
fragment to 6 in my snd_stru_pcm1_hardware as I thougt it is the
minimal fragment to transfer to card. But as I saw the mentioned line, 
I'm really not sure about the meaning of the fragment size. Is there
any connection between the minimal fragment size in
snd_stru_pcm1_hardware and pchn->frag_size?

Martin Pahl

-- 
Martin Pahl                                email: pahl@tnt.uni-hannover.de  

Institut fuer Theoretische Nachrichtentechnik und Informationsverarbeitung
Universitaet Hannover                 http://www.tnt.uni-hannover.de/~pahl

