WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Sound in piCore  (Read 71467 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Sound in piCore
« Reply #30 on: May 28, 2013, 05:45:26 AM »
Hi did you remember to use:
sudo modprobe snd_bcm2835

It is done by the ALSA kernel modules extension automatically, no need to do maually.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gtr2

  • Newbie
  • *
  • Posts: 19
Re: Sound in piCore
« Reply #31 on: May 28, 2013, 06:01:21 AM »
Is it only an mocp issue? Do you get sound from other programs? Try aplay to isolate the issue.
Yes, aplay works flawlessly. Well, guess what, I really don't know what happened but the 3.5mm jack sound works now! Go figure ....
Thank you so much bmarkus for your assistance and patience.

Now for the config file part:
I'm using an old one from a Debian installation ( the following command doesn't work on piCore )
Code: [Select]
cd ~/.moc && cp /usr/share/doc/moc/examples/config.example.gz ./ && gunzip config.example.gz && mv config.example configHere is an example
Code: [Select]
http://dotfiles.org/~chillu/.moc/configI changed
Code: [Select]
SoundDriver = JACK:ALSA:OSSto
Code: [Select]
SoundDriver = ALSAOtherwise moc would complain about the sound driver being invalid.

One can also have a custom keymap, just like the following one
Code: [Select]
https://github.com/ecthiender/mocp-git/blob/master/keymap.exampleUnfortunately, I had to comment a lot of entries in that file in order to make it usable on piCore.
« Last Edit: May 28, 2013, 06:17:21 AM by gtr2 »

Offline gtr2

  • Newbie
  • *
  • Posts: 19
Re: Sound in piCore
« Reply #32 on: May 28, 2013, 09:36:09 AM »
I hate to say it but the sound survived a couple of reboots and I had to cobble something up again.

The following has been working so far without any trouble.
1. Create a file called .asoundrc in /home/tc
2. Enter the following
Code: [Select]
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw           
card 0
}
3. Save and exit.