All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Faith <jfaith@freescale.com>
To: alsa-devel@alsa-project.org
Subject: Re: pcm test app failure on PowerPC
Date: Thu, 29 Nov 2007 10:48:13 -0800	[thread overview]
Message-ID: <474F096D.70007@freescale.com> (raw)
In-Reply-To: <474B1A24.1060601@freescale.com>

Hello,
I had a look at the driver for my platform and in its snd_pcm_hardware 
struct, it sets ".formats = SNDRV_PCM_FMTBIT_S16_LE" (no big endian 
format).  Does the S16_BE format being used by alsalib/test/pcm get set 
  in alsalib or elsewhere in the kernel?

Thanks,
John


John Faith wrote:
> Hello,
> I am using alsa-lib 1.0.15 on an embedded PowerPC board.  I can play 
> audio with aplay, but gstreamer fails, so I built and ran the 'pcm' app 
> in alsa-lib-1.0.15/test/.  pcm gives:
> 
> # export LIBASOUND_DEBUG=1
> # ./pcm
> Playback device is plughw:0,0
> Stream parameters are 44100Hz, S16_BE, 1 channels
> Sine wave rate is 440.0000Hz
> Using transfer method: write
> ALSA lib pcm_plug.c:773:(snd_pcm_plug_hw_refine_schange) Unable to find 
> an usable access for 'plughw:0,0'
> ALSA ERROR hw_params: set (FORMAT)
>             value = S16_BE : Invalid argument
> ACCESS:  RW_INTERLEAVED
> FORMAT:  S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE 
> S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE
> SUBFORMAT:  STD
> SAMPLE_BITS: [4 64]
> FRAME_BITS: [4 640000]
> CHANNELS: [1 10000]
> RATE: [4000 4294967295)
> PERIOD_TIME: [25000 300000]
> PERIOD_SIZE: [100 1288490189)
> PERIOD_BYTES: [50 4294967295)
> PERIODS: (0 12884902)
> BUFFER_TIME: [1 4294967295]
> BUFFER_SIZE: [100 1288490188]
> BUFFER_BYTES: [50 4294967295]
> TICK_TIME: 4000
> Sample format not available for playback: Invalid argument
> Setting of hwparams failed: Invalid argument
> 
> 
> Is the driver saying it can do format S16_BE somewhere, but fails when 
> the format is actually set?  How can I dig deeper on this?
> 
> 
> Thanks in advance for any ideas!
> ,
> John

      reply	other threads:[~2007-11-29 18:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26 19:10 pcm test app failure on PowerPC John Faith
2007-11-29 18:48 ` John Faith [this message]

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=474F096D.70007@freescale.com \
    --to=jfaith@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    /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 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.