WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PiCore 6.1 - Alsa issues  (Read 4067 times)

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
PiCore 6.1 - Alsa issues
« 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.

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Re: PiCore 6.1 - Alsa issues
« Reply #1 on: June 15, 2015, 06:25:23 AM »
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.

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Re: PiCore 6.1 - Alsa issues
« Reply #2 on: June 15, 2015, 06:47:32 AM »
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:

Code: (bash) [Select]
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.



Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: PiCore 6.1 - Alsa issues
« Reply #3 on: June 15, 2015, 06:57:36 AM »
Hi, this should work where recreating the extension is not wanted.
Code: [Select]
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 .
Download a copy and keep it handy: Core book ;)

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Re: PiCore 6.1 - Alsa issues
« Reply #4 on: June 15, 2015, 07:27:50 AM »
Hi Misalf

Thank you very much - looks like alsa-config.tcz didn't get downloaded properly, causing the issue:

Code: (bash) [Select]
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.

Offline sixgunz

  • Newbie
  • *
  • Posts: 20
Re: PiCore 6.1 - Alsa issues
« Reply #5 on: June 16, 2015, 07:27:02 PM »
Also, modprobe snd_bcm2835 is needed in bootsync.sh

Sent from my SM-N9005 using Tapatalk