Hi,
On 09/19/2014 03:33 PM, Dr. H. Nikolaus Schaller wrote:
Hi, for evaluating if we should or should not finally consider the TWL6040 for the Pyra audio system, I became aware that the PandaBoard ES (also comes with the TWL6040) is capable to connect a single external speaker and drive it with up to 1.5Watts:
http://e2e.ti.com/support/omap/f/849/t/258083.aspx
So it would be possible to connect the speakers planned for the Pyra and play sounds (the OMAP5432EVM has no access to this amplifier).
Yes, omap5-uevm only have line out connected. But the audio path is basically the same towards the HF pins and AUX, there's a switch which takes the audio from the HF path before the AMP to the AUX pins.
Please find attached my panda5.aconf, which sets up the routing for the panda5. Just edit the card name to match with PandaBoardES and load it with alsactl You will have route setup to AUXL and HF, but you need to modify the dts and add this: "Ext Spk", "HFL", "Ext Spk", "HFR",
to the audio-routing of the sound card.
I have the GTA04-3.17 Linux running on the Panda ES as well (so we have exactly the same setup as for the OMAP5432EVM except the device tree).
aplayer does something (without complaining). But I don't get sound.
Most likely the amixer settings are not ok (muted).
Here, I have found a recommended setup:
http://www.jotschi.de/Uncategorized/2011/07/01/pandaboard-audiosetup.html
but it does not match the amixer controls of the 3.17 kernel I use.
And
http://www.omappedia.com/wiki/Audio_Drive_Arch#OMAP4.2F5_ASoc_Kernel_audio_d...
wasn't enlightening either because it appears not to be up-to date with 3.17 kernel drivers.
Yeah, they are valid if you have AESS (or ABE) used in your kernel,
What I have is:
root@gta04:~# amixer
...
which you do not have in the kernel. Without AESS support you have the dumb McPDM and twl6040 setup. If you want to play audio to the headset, you can play a stereo file and that is fine, but if you want to have audio on the HF/AUX you need to play 4 channel audio: ch1-2 goes to headset ch3-4 will go to HF/AUX
Yes, this is not really good.
To answer the coming question regarding to AESS/ABE support: git://gitorious.org/omap-audio/linux-audio.git base-bnw/* branches are topic branches next-bnw/ti-audio-next_3.12 ... 3.15 are the merged branches with AESS support working on OMAP4/5 Under the firmware directory there's a firmware (omap_aess-adfw.bin)
bnw stands for Brave New World. I started to clean up/rewrite the AESS/ABE code found in 3.8 TI kernel, hence the name.
I did not had time to move to 3.16 and to 3.17 yet, but it is in my plans.
And this is not really a lightweight thing to just pick, since the AESS support has dependency on the yet to be upstreamed ASoC Dynamic Firmware support.
Since I mentioned plans, I'm also planning to move to a new dynamic firmware base when moving to 3.16 or 3.17, but this new core code is not maintained by me, so I need to ask for green light form the guys working with that codebase (and they are not TI guys). Just to be safe. If I did not get green light to use their code in public, I will roll the current code forward.
Yes, it is complicated :(
So does anyone know a pointer to a simple (command line) setup for the PandaBoard to get sound on the headset jack and the speaker interface (J6) of the PandaBoard ES?
Most likely it should be the same for OMAP5.
BR, Nikolaus
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel