From: Kuninori Morimoto Subject: my driver can't reproduce continuously Date: Thu, 23 Jul 2009 09:34:10 +0900 Message-ID: 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 636FA24352 for ; Thu, 23 Jul 2009 02:34:13 +0200 (CEST) Received: from guardian02.idc.renesas.com ([172.20.8.201]) by mail03.idc.renesas.com (sendmail) with ESMTP id n6N0YAra012564 for ; Thu, 23 Jul 2009 09:34:10 +0900 (JST) Received: (from root@localhost) by guardian02.idc.renesas.com with id n6N0YCMI010393 for alsa-devel@alsa-project.org; Thu, 23 Jul 2009 09:34:12 +0900 (JST) Received: from mta03.idc.renesas.com (localhost [127.0.0.1]) by mta03.idc.renesas.com with ESMTP id n6N0YBW9026878 for ; Thu, 23 Jul 2009 09:34:11 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KN7003W7LKYSP@ims05.idc.renesas.com> for alsa-devel@alsa-project.org; Thu, 23 Jul 2009 09:34:10 +0900 (JST) 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: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hi Now I'm creating sound driver. But can't reproduce continuously. So, I would like to ask. I use module of SH to play sound. Player is aplay, sound data is wav file. Q1) When I play sound, aplay said underrun!!! (at least 0.000 ms long) underrun!!! (at least 0.000 ms long) underrun!!! (at least 0.000 ms long) underrun!!! (at least 0.000 ms long) I checked source of aplay, but can not understand about snd_pcm_status_get_state. why snd_pcm_status_get_state return SND_PCM_STATE_XRUN ? What should my driver do (or where should I check) ? Q2) The reason that it can not reproduce continuously seems soc-core.c :: soc_pcm_trigger timing. Call timing of soc_pcm_trigger is slow. What should my driver do to make call timing more fast ? Best regards -- Kuninori Morimoto