Can't play music with mpg123(solved)

Install mpg123:

opkg upkg
opkg install mpg123

Try to play music:

mpg123  /home/ftp/test.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
	version 1.25.13; written and copyright by Michael Hipp and others
	free software (LGPL) without any warranty but with best wishes
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
[src/libout123/modules/alsa.c:181] error: cannot open device default
[src/libout123/libout123.c:455] error: Found no driver out of [alsa] working with device <default>.
main: [src/mpg123.c:314] error: out123 error 3: failure loading driver module

How to fix it?

You might need a asound.conf, or modify it, if there's an existing one.

Check if speaker-test works, assuming it ships with the alsa (utils?) package for openwrt.

vim  /etc/asound.conf
defaults.pcm.card 1
defaults.ctl.card 1

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.