From: Christian Gruber <christian.gruber@voiceinterconnect.de>
To: alsa-devel@alsa-project.org
Subject: Support for snd_pcm_link() on the rate plugin
Date: Mon, 10 Aug 2015 14:48:11 +0200 [thread overview]
Message-ID: <55C89D8B.6060503@voiceinterconnect.de> (raw)
Dear ALSA community,
I have a question regarding the usage of the function snd_pcm_link() on the rate plugin.
As can be seen from its implementation (see pcm.c, line 1368), the function snd_pcm_link()
calls the fast_op "link" of the first pcm device/plugin to be linked, 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, the function snd_pcm_hw_link() is called for instance (see
pcm_hw.c). Several other plugins use the generic function snd_pcm_generic_link() (see
pcm_generic.c, line 212), which forwards the function call to their slave devices/plugins,
e.g. the plugins mmap_emul, linear, lfloat, mulaw, alaw, route, etc.
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 (see pcm_rate.c, line 1153).
Why does the rate plugin not support snd_pcm_link()? Is their any reason to not use the
generic function snd_pcm_generic_link() within the rate plugin? If yes, what's the reason
for it?
Thanks in advance for answering this question,
Christian
reply other threads:[~2015-08-10 12:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=55C89D8B.6060503@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox