From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: Re: Wrong sample rate user space -> kernel space? Date: Tue, 7 Jul 2009 17:24:57 +0200 Message-ID: <20090707152457.GO19257@buzzloop.caiaq.de> References: <20090707142942.GV18340@buzzloop.caiaq.de> <4A536548.70300@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by alsa0.perex.cz (Postfix) with ESMTP id 624CB24493 for ; Tue, 7 Jul 2009 17:25:00 +0200 (CEST) Content-Disposition: inline In-Reply-To: <4A536548.70300@ladisch.de> 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: Clemens Ladisch Cc: alsa-devel List-Id: alsa-devel@alsa-project.org On Tue, Jul 07, 2009 at 05:10:00PM +0200, Clemens Ladisch wrote: > Daniel Mack wrote: > > On a PXA embedded board, the sample rate propagation from user space to > > kernel space seems to be wrong. > > > > When I start aplay (v1.0.19) from userspace like this ... > > > > # aplay -f dat /dev/urandom > > Playing raw data '/dev/urandom' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo > > > > ... params_rate(params) in my snd_soc_ops .hw_params callback returns > > 88200, not 48000. > > It might be possible that userspace converts the sample rate because it > thinks that the driver doesn't support 48 kHz. > > Is there a converter plugin in the output of "aplay -f dat -v /dev/urandom"? Argh. Of course, you're right. Sorry for the noise. Literally ;) Daniel