On 19-12-18, 14:21, Takashi Iwai wrote:
On Wed, 19 Dec 2018 09:46:37 +0100, Daniel Baluta wrote:
Hello Pierre, Liam, Mark,
What is the standard ALSA way of loading tables of coefficients for various audio IPs?
We have IPs like PDM or ASRC which need large table of coefficients depending on configuration. This tables can reach up to 120K in size.
Creating this kind of tables as arrays of integers in kernel doesn't seem to be a common used solution and we will end up with large files that contains only numbers.
Another approach that we are thinking of is to create and compile this tables in userspace as raw binary files and then loading them in kernel using the firmware interface.
Would this be an acceptable approach?
This is a topic we discuss every year in the conference ;)
Yeah and a deprecated solution exists. Daniel you *can* use TLV_BYTES which allow you to load any size bytes into kernel using a kcontrol.
Again, it is deprecated and we are supposed to come with a cooler solution, so you would need to move then as well