Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Steve Strobel <steve.strobel@link-comm.com>, alsa-devel@alsa-project.org
Subject: Re: OSS app works but aplay does not with SNDRV_PCM_FMTBIT_U32_LE
Date: Wed, 19 Sep 2007 08:46:17 +0200	[thread overview]
Message-ID: <1190184377.23573.1211414421@webmail.messagingengine.com> (raw)
In-Reply-To: <0MKpCa-1IXhxr0egN-0007WC@mrelay.perfora.net>

Steve Strobel wrote:
> If I set up the snd_pcm_hardware_t structure with
> 
>    .formats =          SNDRV_PCM_FMTBIT_U32_LE,
> 
> the OSS test application sends a nice sine wave, but aplay fails with 
> the following messages:
> 
> root:~> aplay < /dev/urandom
> ALSA sound/blackfin/ad1836.c:1050: snd_ad1836_playback_open
> Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
> snd_pcm_hw_refine()
> ACCESS = 00000000ffffffffffffffff -> 0000000000000008
> FORMAT = 0000000000000400 -> 0000000000000000

aplay tries to set S32_LE, but the driver doesn't accept it.

Where does this S32_LE come from?  Did you set up some devices in
~/.asoundrc or /etc/asound.conf, or did you create a card-specific .conf
file for your controller?  (I would guess that the "default" device is
set up to use dmix.)


Regards,
Clemens

  reply	other threads:[~2007-09-19  6:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 18:38 OSS app works but aplay does not with SNDRV_PCM_FMTBIT_U32_LE Steve Strobel
2007-09-19  6:46 ` Clemens Ladisch [this message]
2007-09-19 15:14   ` Steve Strobel
2007-09-19 16:03     ` Clemens Ladisch
2007-09-19 17:32       ` Steve Strobel
2007-09-20 20:50         ` Timur Tabi
2007-09-21  6:43         ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1190184377.23573.1211414421@webmail.messagingengine.com \
    --to=cladisch@fastmail.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=steve.strobel@link-comm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox