I have torizoncore os 5.7.0 installed in verdin imx8m mini on a dahlia carrier board. In the primary container I am running weston terminal and trying to play some audio using aplay (headphones are connected to jack) but nothing plays and gives error aplay: pcm_write error: Input/Output error. How can I get audio to play?
Hi @Vinayak ,
Welcome to our community! Feel free to look around other topics of interest.
Are you running a separated container to play audio via Alsa? If that’s the case how are you initializing the container i.e. what is the complete
docker run command or
docker-compose.yml file? Keep in mind that
/dev/snd has to be available in the container in order to play audio.
Also, if you’re using a container can you share more details about it like if it is based in one of our container images and which packages are installed in it?
If you haven’t already I invite you to check these articles on playing audio:
TorizonCore specific: How to play audio on TorizonCore using Alsa and C/C++ | Toradex Developer Center
More info on audio support on Linux: Audio (Linux) | Toradex Developer Center . Just be aware that TorizonCore doesn’t have
alsa-utilsinstalled, so you should run Alsa commands inside of a container.
Thanks for the reply I solved by following this
Glad you were able to solve the issue!