I2S bus channels setting in gstreamer alsasrc plugin
My colleague did some experiments on gstreamer alsasrc and osssrc plugins and he found that alsasrc consume lots of cpu resource (around 16% on the chip we use). He asked me why the test tool that provided from chip vendor is quite efficient (around 1~2%). It was a big gap to me and I started to find why is that. After hours checking, I found that the plugin may cause a busy wait in a while loop when the parameters set to non-blocking mode. I do a simple code modification and execute again but the cpu rate just lower to 12%. I’m a little frustrated about it but still had some enhancement. ...