All of lore.kernel.org
 help / color / mirror / Atom feed
* Wrong sample rate user space -> kernel space?
@ 2009-07-07 14:29 Daniel Mack
  2009-07-07 15:10 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Mack @ 2009-07-07 14:29 UTC (permalink / raw)
  To: alsa-devel

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.

Can anyone reproduce this? I guess this is unrelated to PXA and ASoC.

Thanks,
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wrong sample rate user space -> kernel space?
  2009-07-07 14:29 Wrong sample rate user space -> kernel space? Daniel Mack
@ 2009-07-07 15:10 ` Clemens Ladisch
  2009-07-07 15:24   ` Daniel Mack
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2009-07-07 15:10 UTC (permalink / raw)
  To: Daniel Mack; +Cc: alsa-devel

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"?


Best regards,
Clemens

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wrong sample rate user space -> kernel space?
  2009-07-07 15:10 ` Clemens Ladisch
@ 2009-07-07 15:24   ` Daniel Mack
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Mack @ 2009-07-07 15:24 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-07 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07 14:29 Wrong sample rate user space -> kernel space? Daniel Mack
2009-07-07 15:10 ` Clemens Ladisch
2009-07-07 15:24   ` Daniel Mack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.