From: Takashi Iwai Subject: Re: How to report error in _pointer function? Date: Fri, 08 Aug 2008 14:03:09 +0200 Message-ID: References: <489A1D9E.7040709@freescale.com> 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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id D32F224AEE for ; Fri, 8 Aug 2008 14:03:09 +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: Timur Tabi Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 7 Aug 2008 13:59:56 -0500, Timur Tabi wrote: > > On Thu, Aug 7, 2008 at 11:29 AM, Takashi Iwai wrote: > > > How is the PCM status during hang? Check > > /proc/asound/card0/pcm*/sub*/* files. > > I wrote a script that repeatedly dumps the contents of > /proc/asound/card0/pcm0p/sub0/status. I started playback, and it > shows this: ... > hw_ptr : 0 > appl_ptr : 17840 > state: XRUN > trigger_time: 165.300191122 > tstamp : 165.304661787 > delay : 0 > avail : 0 > avail_max : 0 So, the PCM status is properly changed to XRUN as expected. From the driver perspective, everything must be fine. > > Also, could you run with gdb and check at which code-path is it > > stopped? > > Sorry, I don't use gdb that much. How can I do this? I don't think I > have debug versions of alsa-lib or mplayer. What about ltrace? I'd like to know which functions are called. Takashi