All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Sam Hawkens <Sam.Hawkens@freenet.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: SPDIF receiver with dynamically changing sample rate
Date: Sat, 12 Nov 2011 16:36:14 +0100	[thread overview]
Message-ID: <4EBE926E.8030603@ladisch.de> (raw)
In-Reply-To: <loom.20111112T133210-522@post.gmane.org>

Sam Hawkens wrote:
> I want to do the following: write an application that has its input fed from an
> SPDIF receiver without using sample rate conversion. The sample rate must not be
> set by the application but must be defined by the SPDIF receiver's PLL.

Most S/PDIF inputs do not resample, but this depends on the hardware.

> Is it possible to run the application continously with ALSA even if the sample
> rate changes?

Most drivers ignore the rate requested by the application and return the samples
as they come from the input.  Only the AK411* drivers monitor the rate and stop
the stream on changes.

> If yes, how can the application notice the change in sample rate?

This is usually not possible without measuring the rate at which samples arrive.
However, you could check the declared rate of the sender by monitoring the
channel status bits.


Regards,
Clemens

  reply	other threads:[~2011-11-12 15:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12 12:39 SPDIF receiver with dynamically changing sample rate Sam Hawkens
2011-11-12 15:36 ` Clemens Ladisch [this message]
     [not found]   ` <4EBEF2C1.2000408@freenet.de>
2011-11-13  6:43     ` Clemens Ladisch
  -- strict thread matches above, loose matches on Subject: below --
2011-11-13  3:53 Sam Hawkens

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=4EBE926E.8030603@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=Sam.Hawkens@freenet.de \
    --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.