From: Takashi Iwai Subject: Re: snd_pcm_ops - .copy Date: Mon, 21 Apr 2008 18:00:27 +0200 Message-ID: References: <827ad74d0804210657p1c275b05jf16fd8daf3bf55e4@mail.gmail.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 mx1.suse.de (ns1.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 690F02437F for ; Mon, 21 Apr 2008 18:00:27 +0200 (CEST) In-Reply-To: <827ad74d0804210657p1c275b05jf16fd8daf3bf55e4@mail.gmail.com> 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: Harsha priya gupta Cc: Alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 21 Apr 2008 19:27:45 +0530, Harsha priya gupta wrote: > > Hi, > I am trying to implement the .copy function of playack_ops in my driver. But > when I try playing an mp3 file, my .copy's function code path was executing. > Suddenly I do not see that function being called. Can anyone help me > understand when the following code path will be executed > > snd_pcm_lib_write_transfer > substream->ops->copy Do you use a mmap method? If so, the copy callback won't be called. The copy callback is only for copying the data from the user-space buffer to the driver buffer, which is skipped via mmap. Takashi