From: Jan Kiszka <jan.kiszka@domain.hid>
To: witzel.thomas@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTDM/ALSA hybrid driver ?
Date: Wed, 25 Oct 2006 22:34:44 +0200 [thread overview]
Message-ID: <453FCA64.9090402@domain.hid> (raw)
In-Reply-To: <200610251610.36530.witzel.thomas@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
Thomas Witzel wrote:
> Hello,
>
> I'm now trying to create a sound driver that will start and stop playback in
> real time. Is it better to implement a driver for RTDM from scratch, or is it
> reasonable to just add a RTDM interface for the required functionality to an
> existing ALSA driver ? The advantage of the latter approach is of course,
> that everything that doesn't need to be done in realtime already exists
> through ALSA and I only would have to implement the pcm triggers through
> RTDM. Is that reasonable at all ?
Yes, this can be reasonable. You will fork the driver effectively, but
you should be able to reuse init/cleanup parts for this. Basically, this
is how most RTnet drivers were developed.
But how hard and how tight are your RT requirements? I'm asking because
I know that a lot of people are using unmodified ALSA drivers over the
PREEMPT_RT kernel for real-time recording, processing, and playback.
Maybe this can already provide you what you need. But I don't know the
internal design of ALSA, if there are any pitfalls hidden like dynamic
buffer management.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2006-10-25 20:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-25 20:10 [Xenomai-help] RTDM/ALSA hybrid driver ? Thomas Witzel
2006-10-25 20:34 ` Jan Kiszka [this message]
2006-10-26 3:13 ` Romain Lenglet
2006-11-01 5:18 ` Thomas Witzel
2006-11-01 6:58 ` Romain Lenglet
2006-11-01 12:45 ` Thomas Witzel
2006-11-01 13:28 ` Wolfgang Grandegger
[not found] ` <200610251640.22737.witzel.thomas@domain.hid>
[not found] ` <453FEE9F.9080209@domain.hid>
2006-11-01 2:45 ` Thomas Witzel
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=453FCA64.9090402@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=witzel.thomas@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.