I want to use 16 ch in imx8mm, I use this cmd:
aplay -Dplug:ch1 /home/forlinx/audio/001.wav
aplay -Dplug:ch8 /home/forlinx/audio/001.wav
is work ok,but when ch9-ch6(aplay -Dplug:ch1 /home/forlinx/audio/001.wav) is error . the error is:
aplay: ../../../alsa-lib-1.1.5/src/pcm/pcm_local.h:572: snd_pcm_channel_area_addr: Assertion `bitofs % 8 == 0' failed.
I find the the alsa source code, Is this ch number smaller than 8?
unsigned int bitofs = area->first + area->step * offset;
assert(bitofs % 8 == 0);
return (char *) area->addr + bitofs / 8;
Thanks!