[alsa-devel] [PATCH - pcm_plug] Add details about what pcm_plug does in doc

olivier at trillion01.com olivier at trillion01.com
Thu May 16 10:41:29 CEST 2013


From: Olivier Langlois <olivier at trillion01.com>

Current doc only mention conversion to channels, rate and format. It alsa
takes care of access mode mismatch. This is what I was looking for and I
had to look the source code to figure out.

Signed-off-by: Olivier Langlois <olivier at trillion01.com>

diff --git a/src/pcm/pcm_plug.c b/src/pcm/pcm_plug.c
index fa84eaa..8a639af 100644
--- a/src/pcm/pcm_plug.c
+++ b/src/pcm/pcm_plug.c
@@ -1155,7 +1155,8 @@ int snd_pcm_plug_open(snd_pcm_t **pcmp,
 
 \section pcm_plugins_plug Automatic conversion plugin
 
-This plugin converts channels, rate and format on request.
+This plugin converts channels, rate and format on request. It will also
+implicitly adapt to the slave plugin access mode if different than our own.
 
 \code
 pcm.name {
-- 
1.8.2.3



More information about the Alsa-devel mailing list