All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeff Koftinoff <jeffk@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_task_set_periodic and different time base
Date: Mon, 14 May 2007 22:11:27 +0200	[thread overview]
Message-ID: <4648C26F.1020002@domain.hid> (raw)
In-Reply-To: <4648C077.2050003@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]

Jeff Koftinoff wrote:
> Hi everyone.
> 
> I am going to be running xenomai on custom hardware to process audio.  I 
> want my processes to be scheduled via rt_task_set_periodic(), but I do 
> not want to specify time in jiffies or nanoseconds.
> 
> I need to specify time in terms of audio sample interrupts which can be 
> generated by an external signal and can be slightly variable via a VCXO 
> for synchronization.
> 
> The processes that I run must be synchronous to the audio, which is 
> asynchronous to any other clock period/time in the system.
> 
> Should I modify Xenomai to make my audio interrupt the source of the 
> jiffies? What is recommended in this case?

There exists some vague ideas to provide an infrastructure with Xenomai
that allows to smoothly synchronise its local clock on whatever external
(jittery) source, but note that "vague" above.

Moreover, I don't think you actually want this for your scenario. You
may rather look for a hard sync on each audio tick, no?

> 
> My original thought was to use rt_intr_wait() in my user mode program 
> and do the scheduling of sub-tasks myself.

Sounds what you need (or directly derive an RTDM device with appropriate
interface for your audio-hw :)).

> 
> But it would be ideal if rt_task_set_periodic() could just use the 
> appropriate time source itself.

Why?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

  reply	other threads:[~2007-05-14 20:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-14 20:03 [Xenomai-help] rt_task_set_periodic and different time base Jeff Koftinoff
2007-05-14 20:11 ` Jan Kiszka [this message]
2007-05-14 20:45   ` Jeff Koftinoff
2007-05-14 21:42     ` Jan Kiszka
2007-05-15  0:33       ` Jeff Koftinoff

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=4648C26F.1020002@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=jeffk@domain.hid \
    --cc=xenomai@xenomai.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.