All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: ALSA-devel <alsa-devel@alsa-project.org>
Subject: Re: ASOC PCM formats
Date: Mon, 09 Jun 2008 09:20:25 +0200	[thread overview]
Message-ID: <484CD9B9.8000208@ladisch.de> (raw)
In-Reply-To: <9e4733910806061700r6650ded8j7c7680e4774d327d@mail.gmail.com>

Jon Smirl wrote:
> Why is the AC97 format set to S16 in all of the drivers? The link is
> 20b and my codec takes 20b, how do I get 20b data to the device?

You can only use sample formats that are supported by the AC97
controller.

> I tried using SNDRV_PCM_FORMAT_S20_3BE but all I get is static.

S20_3LE could in theory be used by USB devices.  There is no hardware
that supports S20_3BE.

How did you use this format?  Which driver is this?

> If I use S24 for the format it works but volume is divided by 16.

S24 means that the 24 sample bits are in the least significant bits of
a 32-bit memory word.  24 sample bits in the most significant bits of
a 32-bit memory word would be S32.  (It might be possible that your
driver gets this wrong.)


Regards,
Clemens

  reply	other threads:[~2008-06-09  7:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07  0:00 ASOC PCM formats Jon Smirl
2008-06-09  7:20 ` Clemens Ladisch [this message]
2008-06-09  9:17 ` Mark Brown
2008-06-09 13:08   ` Jon Smirl
2008-06-09 16:42     ` Mark Brown

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=484CD9B9.8000208@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=jonsmirl@gmail.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.