This is my first post, however, I have been an avid reader of this forum for a few years. Now I have come to the stage where I cannot find a solution searching so I had to sign up.
I have been fighting on this issue for a few days now, and keep on having the same issue. I am not a linux guru, but I know my way around the basics, and ignorant on the rest.
My setup is:
Board OrangePi Zero 256MB
16GB micro SD card
USB speaker
2.4A USB power supply
Ethernet connection
USB UART console.
ARMBIAN 5.73 stable Ubuntu 18.04.2 LTS 4.19.20-sunxi
What I am trying to achieve:
I want to play a mp3 files from a playlist for a set time (20-30 minutes) after a button has been pushed.
What I am doing:
Testing that one mp3 file can play
What I have done:
I have put the Armbian image on the micro sd card
let it boot
change root password, etc...
rebooted
updated/upgraded system
run cat /proc/asound/cards, which returns my USB speaker and nothing else
edit the /etc/asound.conf file and add the following lines:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
save and reboot
log in again
run cat /proc/asound/cards, which returns --- no soundcards ---
WTF!
clear the /etc/asound.conf file
reboot
and same result, regardless of purging alsa and reinstalling it.
What am I doing wrong?
I have gone through the process quite a few times, removing any unnecessary steps. I have tested it playing mp3 files with aplay, and it did work like a charm, but I haven't had such luck since. I have tried pulseaudio, but that is a huge can of worms, which just got worse and worse and never worked.
This is really frustrating, and I am getting to the stage where I am going to test the performance of the Opi Zero as a Frisbee. I will probably have better luck.
Thank you for reading this far, and I appreciate if you can reply with some idea of what I am doing wrong.