<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Adrien,<div><br><div><div>Am 09.05.2015 um 21:38 schrieb Adrien Dorsaz <<a href="mailto:adrien@adorsaz.ch">adrien@adorsaz.ch</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Lukas / gta04-community,<div><br></div><div>I've begun to read Android HAL documentation and I've seen in the Audio topic [0] some notes which can be useful to avoid voice echo :</div><div><br></div><blockquote type="cite">hardware/libhardware/include/hardware/audio_effect.h - represents effects that can be applied to audio such as downmixing, echo, or noise suppression.</blockquote><div><br></div><div>Just below this comment, Google says us to refer to the Samsung tuna device. So I've checked the Cyanogenmod repository for this device and I've found their audio_effects.conf file.</div><div><br></div><div>Many audio effects are activated there, but I think we'll need the "Audio Echo Cancellation" (aec) module to resolve the issue about hearing self during voice call. I've noticed the URL of this configuration in that file [1]. Just below this configuration, the "ns" module can also be interesting (Noise Suppression).</div><div><br></div><div>These configuration make a reference to the 'libaudiopreprocessing.so' file (in the head of the audio_effects.conf) that I've found in my 'out/target/product/gta04/obj/lib' build directory. Maybe we'll be able to make a similar configuration for the GTA04 ?<div><br></div><div>We've just one issue : it's to find the good UUID to set for the effects (which is used to find the good module). We've only this hint:</div><div><br></div></div><blockquote type="cite"><div># The uuid is the implementation specific UUID as specified by the effect vendor. This is not the</div><div># generic effect type UUID.</div></blockquote><div><br></div>I hope it has more meaning for someone here ? I have some hope, because I've seen in the libaudioprocessing.so files strings with 'AEC' and 'NS' refering to the module.s<div>We just need the good UUID “as specified by the effect vendor".</div></blockquote><div><br></div>Interesting infos!</div><div><br></div><div>But what could “UUID” mean in this context?</div><div><br></div><div>Generally echo cancellation might be done by a separate DSP or by software.</div><div><br></div><div>The OMAP3 chip has such a built-in DSP, but AFAIK the DSPbridge driver by Linux isn’t supported any more.</div><div>AFAIK, nobody has intensively used the DSP on open OMAP3 devices (not on BeagleBoard or OpenPanodra).</div><div><br></div><div>So could UUID refer to some firmware that is run by such a DSP? And the UUID identifies the filter module?</div><div>Then we would have to develop and provide it and AOSP [0] / [1] only chooses which filter should be selected.</div><div><br></div><div>Or, we do it like Radek when he developed a software echo cancellation filter for QtMoko. Since you mention ‘libaudiopreprocessing.so’ it could be pure software.</div><div><br></div><div>For hardware routing we do not need it at all since the GTM601 also has an echo cancellation filter that covers standard delay if the codec is connected directly.</div><div>We only need to do something for the software routing because the ALSA system introduces significant delays between module and speaker/microphone.</div><div><br></div><div>Just some speculation and random thoughts…</div><div><br></div><div>Nikolaus</div><div><br></div><div><br></div><div><blockquote type="cite"><div><div><br></div><div><br></div><div>Hope that's help,</div><div>Adrien</div><div><div><br></div><div><br></div><div>[0]: AOSP Audio: <a href="https://source.android.com/devices/audio/implement.html">https://source.android.com/devices/audio/implement.html</a></div><div>[1]: Audio Echo Cancellation: <a href="https://github.com/CyanogenMod/android_device_samsung_tuna/blob/6e456dc64677072b35d3720f8ced9ecab1520202/prebuilt/vendor/etc/audio_effects.conf#L102">https://github.com/CyanogenMod/android_device_samsung_tuna/blob/6e456dc64677072b35d3720f8ced9ecab1520202/prebuilt/vendor/etc/audio_effects.conf#L102</a></div></div></div>_______________________________________________<br>Gta04-owner mailing list<br><a href="mailto:Gta04-owner@goldelico.com">Gta04-owner@goldelico.com</a><br>http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner<br></blockquote></div><br></div></body></html>