Sorry for spamming the list, but I thought I'd keep the driver related questions apart from the AESS ones.
We still have some other low-level setup issues with the driver. These should be easier to fix if you know what you're doing :)
Basically, right now we have the issue that the speaker membrane moves into position as soon as audio is being initialized but not playing anything. As Nikolaus mentioned, this is probably because of a wrong DC Offset.
If I understand the datasheet correctly, this can be setup with the HANDSFREE OFFSET TRIMMING REGISTER (HFOTRIM).
The default value is 0x0 and then you can set values to compensate negative or positive offsets.
The question is though: How can this be done?
This is the driver: http://git.goldelico.com/?p=letux-kernel.git;a=blob;f=sound/soc/codecs/twl60...
The driver seems to read out the different TRIM values (line 188 and following). But how can we SET the values? Do we set these values outside of the driver with some tool? Are the default values in the board file? Can we use driver parameters to set these?
It seems simple - but I have no idea where and how to properly set these register values.
The same then goes for the registers HFLGAIN and HFRGAIN so we can setup the system that the speaker doesn't overdrive with 100% volume.
Thanks in advance :)