All of 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: Fri, 21 Sep 2007 08:43:25 +0200	[thread overview]
Message-ID: <1190357005.17098.1211823659@webmail.messagingengine.com> (raw)
In-Reply-To: <0MKp8S-1IY3QT3Lfw-0008HE@mrelay.perfora.net>

Steve Strobel wrote:
> At 10:03 AM 9/19/2007, Clemens Ladisch wrote:
> >Steve Strobel wrote:
> > > At 12:46 AM 9/19/2007, Clemens Ladisch wrote:
> > > > or did you create a card-specific .conf file for your controller?
> > >
> > > Not intentionally, but there might be one left over from the AD1836
> > > driver I started with (I have just been modifying that driver,
> > > planning to rename it after I get it working).  Where would I look
> > > for such a file?
> >
> >In /usr/share/alsa/cards/, with the driver name.
> 
> I don't have a file there;  that directory doesn't even exist:
> Should I have a configuration file in one of those places?  If I 
> don't, where do the default values come from?

Well, there is an alsa.conf somewhere, otherwise the utils wouldn't run.

> >Does it work when running aplay with the parameter "-D plughw"?
> 
> No.  It searches through more rules, but still says, "Sample format 
> non available".  I put a log of the console output with and without 
> "-D plughw" at <http://link-comm.com/temp/aplay-log.txt> to save
> bandwidth.

Now it says that access RW_INTERLEAVED doesn't work.
I'd really like to see the source code of the driver, especially the
snd_pcm_hardware structure.

> One thing I hadn't noticed before is the message:
> 
> ALSA lib ../../../src/pcm/pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable
> refine done - result = -22
> 
> Does a result code of -22 mean anything significant?

Nothing that hasn't been already been told in the error message.
-EINVAL is expected in this case.

> You wrote in an earlier message:> > snd_pcm_hw_refine()
>  > > ACCESS = 00000000ffffffffffffffff -> 0000000000000008
>  > > FORMAT = 0000000000000400 -> 0000000000000000
>  >
>  > aplay tries to set S32_LE, but the driver doesn't accept it.
> 
> I think I understand how the driver uses the snd_pcm_hardware_t 
> structure to tell ALSA what it supports, but I don't understand how 
> ALSA tries to set things in return.  I am surprised that it would try 
> to set it to a data type that the driver never said it could 
> support.

A configuration file can force a specific sample format.  Usually, only
dmix does that.


Regards,
Clemens

      parent reply	other threads:[~2007-09-21  6:43 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
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 [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=1190357005.17098.1211823659@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 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.