From: Takashi Iwai Subject: Re: [PATCH] [ALSA] mpc8610: Add mmap support Date: Thu, 17 Jan 2008 17:45:26 +0100 Message-ID: References: <12005823754197-git-send-email-timur@freescale.com> <478F8129.5030408@gmail.com> <478F82E9.1050809@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 0DC3E244BC for ; Thu, 17 Jan 2008 17:45:27 +0100 (CET) In-Reply-To: <478F82E9.1050809@freescale.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: Timur Tabi Cc: alsa-devel@alsa-project.org, "Alexander E. Patrakov" List-Id: alsa-devel@alsa-project.org At Thu, 17 Jan 2008 10:31:37 -0600, Timur Tabi wrote: > > Alexander E. Patrakov wrote: > > Timur Tabi wrote: > >> Enable mmap support in the MPC8610 ASoC driver. The driver can use > >> ALSA's > >> default mmap functionality, it was just not enabled previously. > >> > >> Signed-off-by: Timur Tabi > > > > [sorry, I may be completely wrong below about the .page callback purpose > > - in this case, just confirm that the testcase works] > > > > Hm, the "struct snd_pcm_ops fsl_dma_ops" doesn't contain the .page > > callback. With saa7134-alsa, this led to the "device claims to support > > mmap but actually doesn't work" bug, see the following subthread: > > Isn't that an ARM chip? The default MMAP handler in ALSA doesn't support ARM, > but it works for PowerPC. > > > http://mailman.alsa-project.org/pipermail/alsa-devel/2007-October/003773.html > > > > > > IOW: have you actually tested that the following commands work (X,Y > > refer to the FSL chip)? > > > > aplay -M -D hw:X,Y sample.wav > > arecord -f cd -M -D:X,Y capture.wav > > I haven't tried record, but I did try playback, and it worked. Without this > patch, adding -M gives me this error: > > aplay: set_params:852: Access type not available > > After applying this patch, playback works fine. Great, applied to ALSA tree now. Thanks. Takashi