alsa plugin data flow for capture

"yvonne_cyh" <[email protected]> Fri, 4 Jun 2021 10:18:43 +0800
Newsgroups gmane.linux.alsa.user
Message-ID <[email protected]>
Hi All
Could any one tell me how does the data flow like for arecord with alsa plugin?
I found the description on alsa document, with a plugin definition in asound.conf


pcm.myplugdev {
&nbsp; &nbsp; type plug
&nbsp; &nbsp; slave {&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; pcm default&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; rate 48000
&nbsp; &nbsp; }
}

the data flow for aplay :aplay -D myplugdev foobar.wav&nbsp;as follows
aplay--&gt; myplugdev (plugin named "plug" converts rate) --&gt; default --&gt; hw:0,0



How about the data flow for arecord:aplay -D myplugdev -c 2 -r 48000 save.wav
should be like this? No matter what sample rate for input source , the save.wav should always be 48000?&nbsp;
arecord--&gt; hw:0,0-&gt;default-&gt;myplugdev (plugin named "plug" converts rate) --&gt; save.wav?


It is wired it does not work when I am using a dummy codec to capture&nbsp; I2S audio data to a file, the sample rate is always the same with the source, it seems the converts rate plugin does not work.
Who can kindly give me an explanation for it? I am new to alsa.


Thanks

_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user