From: "Timur Tabi" Subject: Re: Playing silence instead of pausing during underrun Date: Thu, 4 Sep 2008 11:04:55 -0500 Message-ID: References: <48BFF900.50002@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by alsa0.perex.cz (Postfix) with ESMTP id 0AC5C2441A for ; Thu, 4 Sep 2008 18:04:56 +0200 (CEST) Received: by wr-out-0506.google.com with SMTP id 36so12571wra.24 for ; Thu, 04 Sep 2008 09:04:55 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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: Jaroslav Kysela Cc: ALSA development List-Id: alsa-devel@alsa-project.org On Thu, Sep 4, 2008 at 10:28 AM, Jaroslav Kysela wrote: > Note that not all hardware supports pause, so just remove > SNDRV_PCM_INFO_PAUSE and all pause related code in the trigger callback > and let user space to do the full reinitialization. That's not what I'm talking about. It doesn't matter if it's paused or stopped, when playback is paused/stopped, the hardware is disabled. When the hardware is re-enabled, stale data in the hardware causes a popping sound. Therefore, during underrun, the popping will not occur if the hardware is never disabled, but this requires either the driver or ALSA to pump silence data into the hardware. -- Timur Tabi Linux kernel developer at Freescale