All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Torsten Schenk <torsten.schenk@zoho.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: Digital IO and SPDIF format
Date: Tue, 01 Feb 2011 17:32:01 +0100	[thread overview]
Message-ID: <4D483581.6050507@ladisch.de> (raw)
In-Reply-To: <12de1c06449.-3167568757226561582.4620295999935056878@zoho.com>

Torsten Schenk wrote:
> - if 6fire's clock and playback device's clock differ, should I use
> playback device's clock (no interpolation of samples but capturing
> tool might have invalid sample rate information) or the 6fire's clock
> (samples need to be interpolated somehow)?

You should never change the captured samples.  A digital frame might
be transporting AC-3/DTS data.

> - should I receive a whole spdif block (usually 192 spdif frames) and
> use the information I got from the block (f.ex. left/right channel
> bits) before copying it to alsa or should I directly copy every frame
> to alsa?

When copying data from the URB buffer to ALSA's buffer, copy only the
frames that are actually present.  Why would you need the whole block
for this?

> Am I correct in assuming that SNDRV_PCM_FORMAT_IEC958_SUBFRAME_XX
> samples are formatted like in the specification?

Er ... the format of these samples is what the old revision of the
CMI8738 chip requires.

> If you know of any tool that is able to handle this format

alsa-lib/src/pcm/pcm_iec958.c


Regards,
Clemens

      reply	other threads:[~2011-02-01 16:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 15:03 Digital IO and SPDIF format Torsten Schenk
2011-02-01 16:32 ` 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=4D483581.6050507@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=torsten.schenk@zoho.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.