All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Hawkens <Sam.Hawkens@freenet.de>
To: alsa-devel@alsa-project.org
Subject: Re: SPDIF receiver with dynamically changing sample rate
Date: Sun, 13 Nov 2011 04:53:13 +0100	[thread overview]
Message-ID: <4EBF3F29.2090107@freenet.de> (raw)

Am 12.11.2011 16:36, schrieb Clemens Ladisch:

> 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.
OK, so that should work.

>> 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.
OK, so this could be a solution as long as the SPDIF stream carries correct channel stauts information (which is not alway the case). Still a good idea.
Some SPDIF receivers have an interrupt output that can be configured to be asserted when sample rate changes. With a custom hardware design that's another option in addition to the available ALSA features.

Thanx a lot for the good advice!

Regards,
Sam

             reply	other threads:[~2011-11-13  3:55 UTC|newest]

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

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=4EBF3F29.2090107@freenet.de \
    --to=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.