Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: sixgunz on June 14, 2015, 02:04:23 PM
-
Hi Everyone.
Just tried to load the alsa drivers and mpg321
Running mpg321 gives the following error:
ALSA lib conf.c:3512:(snd_config_hook_load) cannot stat file/directory /usr/locf
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ao_alsa WARNING: Unable to open surround playback. Trying default device...
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ao_alsa ERROR: Unable to open ALSA device 'default' for playback => No such fily
ao_oss ERROR: open default => No such file or directory
Can't find a suitable libao driver. (Is device in use?)
There were a few errors on loading the tcz modules, but I didn't trap them.... Apologies ;)
Have I missed something?
Cheers,
Glenn.
-
Okay, looks like this is the prob:
http://cagewebdev.com/index.php/raspberry-pi-getting-audio-working/
From the quote:
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
Edit the file /usr/share/alsa/alsa.conf:
sudo nano /usr/share/alsa/alsa.conf
change the line “pcm.front cards.pcm.front” to “pcm.front cards.pcm.default”
(Actually /usr/local/share/alsa/alsa.conf in TC)
However, this is a read only system - how do I change the actual modules alsa.conf so it can be loaded correctly?
Cheers,
Glenn.
-
Okay, I worked out how to unsquash and resquash the FS, so I changed the alsa.conf
However, it hasn't fixed the prob...?
I did a sudo modprobe snd-bcm2835 because the sound modules weren't loaded. This had no errors.
Tried to run mpg321 again and more of the same:
ALSA lib conf.c:3512:(snd_config_hook_load) cannot stat file/directory /usr/local/share/alsa/cards/aliases.conf
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ao_alsa WARNING: Unable to open surround playback. Trying default device...
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ao_alsa ERROR: Unable to open ALSA device 'default' for playback => No such file or directory
ao_oss ERROR: open default => No such file or directory
Can't find a suitable libao driver. (Is device in use?)
Any ideas anyone? Am I the only one with this problem?
Cheers,
Glenn.
-
Hi, this should work where recreating the extension is not wanted.
sudo rm /usr/local/share/alsa/alsa.conf
sudo cp /tmp/tcloop/alsa/usr/local/share/alsa/alsa.conf /usr/local/share/alsa
sudo nano /usr/local/share/alsa/alsa.conf
echo usr/local/share/alsa/alsa.conf >> /opt/.filetool.lst
filetool.sh -b
In TC.6.x x86, /usr/local/share/alsa/cards/aliases.conf is in alsa-config.tcz .
-
Hi Misalf
Thank you very much - looks like alsa-config.tcz didn't get downloaded properly, causing the issue:
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: restart failed
alsa.tcz 100% |********************************************************************************| 188k 0:00:00 ETA
alsa.tcz: OK
Downloading: alsa-config.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
alsa-config.tcz 100% |********************************************************************************| 892k 0:00:00 ETA
alsa-config.tcz: OK
I probably would have never thought of alsa-config.tcz as I thought all the dependencies had been loaded!
All working as expected now ;)
Thanks again for your help.
-
Also, modprobe snd_bcm2835 is needed in bootsync.sh
Sent from my SM-N9005 using Tapatalk