All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Donald Tournier <d.tournier@brain.org.au>
Cc: alsa-devel@alsa-project.org
Subject: Re: IEC958 / SPDIF raw capture
Date: Thu, 11 Feb 2010 08:26:34 +0100	[thread overview]
Message-ID: <4B73B12A.7030508@ladisch.de> (raw)
In-Reply-To: <325dd9ac1002101514u73929570l51a12d28ecddd7b@mail.gmail.com>

Donald Tournier wrote:
> We have an application in our institute that will require recording of
> a digital signal via an optical cable. We have to be able to guarantee
> perfect bitwise reproduction of the signal (the odd bit error is not a
> problem). We're thinking of using SPDIF and ALSA to capture the signal
> (obviously we'll have to make sure the signal is properly encoded to
> begin with).
> 
> However, after some initial attempts, it's becoming clear that ALSA
> can't necessarily guarantee bitwise perfect capture. ALSA might change
> the format, or resample the signal after capture (although I've heard
> that can be turned off with "snd_pcm_hw_params_set_rate_resample
> (capture_handle, hw_params, 0)").

If you open the device as "hw:x", ALSA will not do any conversions and
will give you the data exactly as it comes from the sound card.

> can this be done? If so, which card/driver would be recommended?

PCI(-E) cards based on C-Media chips (CMI87x8, CMI8770, AV200) are known
to allow bit-perfect digital capture.

> Ideally, we would like to capture the raw SPDIF subframes.

Some very old revisions of the CMI8738 did this, because proper decoding
of subframes wasn't implemented, but these aren't sold anymore.


HTH
Clemens

  reply	other threads:[~2010-02-11  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 23:14 IEC958 / SPDIF raw capture Donald Tournier
2010-02-11  7:26 ` Clemens Ladisch [this message]
2010-02-12  3:44   ` Donald Tournier
2010-02-12  7:03     ` Jaroslav Kysela
2010-02-11  7:36 ` Jaroslav Kysela

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=4B73B12A.7030508@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=d.tournier@brain.org.au \
    /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.