From: Kuninori Morimoto Subject: Re: my driver can't reproduce continuously Date: Mon, 27 Jul 2009 16:43:05 +0900 Message-ID: References: <20090723100640.GB25013@sirena.org.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail03.idc.renesas.com (mail.renesas.com [202.234.163.13]) by alsa0.perex.cz (Postfix) with ESMTP id B771D2457D for ; Mon, 27 Jul 2009 09:43:19 +0200 (CEST) In-reply-to: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Dear Takashi Thank you for your comment > > when 1st buffer was send, > > driver stop. > > 2nd trigger function isn't called. > > Check the raw value returned from the pointer callback, too. > This can be the real cause. I might have been doing a very big misunderstanding. > The pointer callback is supposed to give the currently played position > offset in a ring buffer, and ranged from 0 to buffer_size-1. Does this "ring buffer" mean I should transmit runtime->dma_area many times from offset 0x0 ?? => when I call 4th elapsed, should I send runtime->dma_area + 0x0 again ? If so, my driver get STOP on trigger funtion many times even if I didn't stop it. START STOP underrun!!! START STOP underrun!!! ... Does this correct operation ? Best regards -- Kuninori Morimoto