Enabling multichannel audio capture from i2s0



After connecting i2s0 to external codec for audio capture, 2 channel capture works but when I try to capture multichannel audio(4 or 8) . Tinycap gives error as follows:

./tinycap test.wav -D 0 -d 1 -r 16000 -b 16 -c 4

Unable to open PCM device (cannot set hw params: Invalid argument)
Captured 0 frames

Can someone tell me if 8 channel capture is supported on hikey ?If it is supported then how to capture multichannel audio on i2s0 and What changes needs to be done (e.g HAL,i2s driver)?



The hardware supports it, but the kernel currently supports only i2s.

The HAL does not come into play at all when you’re using tinycap.

This is where you would have to implement it;