Ok, I did some tests.
Modifying the qy4a.h and qy4a.c to match the qy4.c/.h all seem to work flawlessy. This means eliminating the const in the .h and uncommenting the lines in the .c.
The cyclone now calcultate the trim value and store it in 0xFFC0 like it's supposed to do.
Bye Jack