From: Christian Gruber <christian.gruber@voiceinterconnect.de>
To: alsa-devel@alsa-project.org
Subject: Missing snd_pcm_link() for the rate plugin
Date: Fri, 11 Sep 2015 09:42:24 +0200 [thread overview]
Message-ID: <55F285E0.7030100@voiceinterconnect.de> (raw)
Dear ALSA community,
does anybody know, why the rate plugin does not support the snd_pcm_link() function?
As I can see from the ALSA-Lib source code, snd_pcm_link() calls the fast_op "link", which
is a function pointer, whose destination depends on the type of pcm device/plugin to be
linked.
If the device is a HW-device for instance, the function snd_pcm_hw_link() is called.
Several other plugins (e.g. mmap_emul, linear, lfloat, mulaw, alaw, route) use the generic
function snd_pcm_generic_link(), which forwards the function call to their slave
devices/plugins.
The rate plugin instead does not support snd_pcm_link(), since the function pointer "link"
is not assigned in the definition of snd_pcm_rate_fast_ops.
Is their any reason to not use the generic function snd_pcm_generic_link() within the rate
plugin?
Thanks in advance for answering this question,
Christian
next reply other threads:[~2015-09-11 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 7:42 Christian Gruber [this message]
2015-09-25 8:02 ` Missing snd_pcm_link() for the rate plugin Takashi Iwai
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=55F285E0.7030100@voiceinterconnect.de \
--to=christian.gruber@voiceinterconnect.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.