Getting a rough version of sound running on Mer/Archos G9
--

The OMAP4460 sound chip (TWL6040) can be configured very flexibly for many different use cases.
See http://omappedia.org/wiki/Audio_Drive_Arch and especially http://omappedia.org/images/8/8b/ASoC_OMAP4.jpg
Configuration of audio paths in this case should be done with ALSA's use case manager.

Since support for this whole setup requires a very recent and patched PulseAudio daemon, we configured a basic configuration with ALSA directly for now.
This is put into /var/lib/alsa/asound.state initially.

- opened up DL1 and DL2 mixers for multimedia and tones
- enabled "sidetone mixer playback"
- increased DL1 and DL2 gain
- enabled "DL1 PDM switch"
- put "HS Left/Right Playback" and "HF Left/Right Playback" into DAC mode

This gives simultaneous output on the speakers and headphones.

