All times are UTC-06:00




Post new topic  Reply to topic  [ 19 posts ] 
Author Message
PostPosted: Sat Feb 24, 2007 2:36 am 
Offline

Joined: Tue Feb 14, 2006 2:01 pm
Posts: 75
Location: Germany
Image

so here we go. a small how to enable sound on the efika on Gentoo.

1. I'm using patched vanilla-sources (in contrast to efika-sources from the efika overlay):
Code:
$ echo sys-kernel/vanilla-sources
$ emerge vanilla-sources
now you should have 2.6.20.1 (as of today) in /usr/src/linux-2.6.20.1.

2. Grab the kernel patches from here (thanks crux people ;-) ) and patch the kernel:
Code:
$ cd /usr/src/
$ tar xfvz /path/to/sven-efika+cruxppc-2007.01.25.tar.gz
$ cd linux-2.6.20.1
$ for i in `ls ../sven-efika+cruxppc/`; do patch -p1 -i ../sven-efika+cruxppc/$i; done
3. grab my config and make your changes to the kernel:
Code:
$ wget http://dev.gentoo.org/~corsair/efika/ef ... g-2.6.20.1 -O .config
$ make oldconfig
$ make menuconfig <-- make your changes
4. compile the kernel
Code:
$ make
5. install the kernel
Code:
$ mount /boot <-- if you have a seperate /boot partition
$ cp arch/powerpc/boot/zImage.chrp /boot/kernel-2.6.20.1
$ make modules_install
6. reboot into your new kernel
Code:
$ reboot
Code:
ok boot hd:0,kernel-2.6.20.1
7. now you should have something like:
Code:
$ uname -r
2.6.20.1-efika
8. install alsa-utils
Code:
$ emerge alsa-utils
9. edit /etc/modules.d/alsa:
Quote:
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `modules-update' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-mpc52xx-ac97 <--- this is the important line!
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
10. update /etc/modules.conf and /etc/modprobe.conf:
Code:
$ modules-update
11. start alsasound and add it to the default runrevel:
Code:
# /etc/init.d/alsasound start
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Restoring Mixer Levels ... [ ok ]
# rc-update add alsasound default
* alsasound added to runlevel default
12. use alsasound to unmute your channels:
Code:
$ alsamixer
NOTE: if you want use the optical output then unmute IEC958 and set IEC958 Playback AC97-SPSA to 0. I'm currently having much noise on the optical output and am trying to find a solution. A small note from you, if you have also noise would be helpful :-)

13. use your favorite app to play sound files. For example:
Code:
$ aplay /some/wav-file.wav
regards,

-corsair


Top
   
 Post subject:
PostPosted: Mon Feb 26, 2007 1:25 am 
Offline

Joined: Mon Jan 30, 2006 7:24 am
Posts: 43
Location: Budapest, Hungary
Following this guide, i successfully managed to get sound out of my Debian Etch, running on my Efika.

But the sound gets distorted, has hickups and other bad(tm) things, when the Efika accesses the hard disk, or it's busy with other tasks. Is this a known problem of the current AC97 support? Or i did something wrong? (I used vanilla 2.6.20.1 kernel, and applied the sven+cruxppc patches).

_________________
.:[PegasosII/G4|EFIKA|iBookG3|PowerMacG3|AmigaOne|A2000/060|A1200/060]:.


Top
   
 Post subject:
PostPosted: Mon Feb 26, 2007 4:26 am 
Offline

Joined: Tue Feb 14, 2006 2:01 pm
Posts: 75
Location: Germany
Quote:
Following this guide, i successfully managed to get sound out of my Debian Etch, running on my Efika.
nice :-)
Quote:
Or i did something wrong? (I used vanilla 2.6.20.1 kernel, and applied the sven+cruxppc patches).
no, I do have the same problem: http://www.powerdeveloper.org/forums/vi ... php?t=1194


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 9:17 am 
Offline

Joined: Tue Sep 28, 2004 9:03 pm
Posts: 45
I just installed Debian on my Efika, with the kernel and modules found in efika.info
Code:
efika:~# uname -r
2.6.19-rc6-g9468d500-dirty
I thought that it would come with precompiled modules for sound and all, but after reading this, I started to think that it doesn't... At first I tried 'modprobe snd-via82xx' but it doesn't work ... ^^;

I didn't install Gentoo because compiling takes long times, and setting a cross-compiler environment is tiresome. On the otherhand, in previous comment I read that sound in Debian is buggy? :(

Some hints here, please ^^


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 11:51 am 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1066
SuSE is all binary, but at the moment it's not yet completely user friendly to install :-) Sound works nicely, except during software compilations, but (not that often) I have the same problem on a 1.9Ghz Centrino notebook as well...
I expect full EFIKA support in the next alpha version of 10.3 (due in about three weeks). You should try that.

Debian: you should try the kernel from http://people.debian.org/~luther/efika/ as it has it has sound support, as far as I can remember.
Disclaimer: I tried it long time ago, and can't provide instructions to update to that kernel, as I don't use Debian regularly...

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 1:11 pm 
Here are a few addons to your efika audio mini-tuturial :

You can also use "alsaconf" which auto-configures sound stuff (/etc/init.d/alsa file)

Also don't forget to add root & all users to the audio group or some apps might not work.
gpasswd -a root audio


Top
   
 Post subject:
PostPosted: Fri Apr 20, 2007 12:04 pm 
Offline
Genesi

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1422
Pieter is working on a new image we will release here. It will work.

R&B :)

_________________
http://bbrv.blogspot.com


Top
   
PostPosted: Fri Apr 27, 2007 3:52 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
NOTE: if you want use the optical output then unmute IEC958 and set IEC958 Playback AC97-SPSA to 0. I'm currently having much noise on the optical output and am trying to find a solution. A small note from you, if you have also noise would be helpful :-)
I am reminded of a small errata with the 9766 codec;

http://www.idt.com/products/getDoc.cfm?docID=11105830

It seems under certain circumstances if the codec cannot get data reliably, it will hiccup. I wonder, are you using 48KHz for the output, or 44.1KHz? Can you upsample/downsample with better results?

The audio codec is currently completely CPU-driven with the current patches, something which a custom BestComm task for driving audio would probably solve. However this is a little more difficult than it sounds.

If anyone is willing to sit down and work on this for Linux (there is an MPC52xx Ethernet driver has a nice example of loading BestComm tasks, and an example task) that would be great.

I am actually sitting down here with 2.6.21 having a play around with patches. There are some basic missing features across the board I think need resolving.. I'm going to make a "TODO" list and put it under Platform Support. If anyone's willing to take up the challenge, we can accept projects (if you have a board already we can add a new one or use your own) and link them from that page for blog entries. It's basically just silly things like ethtool support, DMA for sound, maybe port the MPC52xx AC97 support to the 2.6.21 ALSA SoC framework (turn off the AC97 clock when not in use, perhaps?), an irda driver, maybe GPIO support for PSC6, or the UART, hdparm support for the hard disk (just so it actually works - it doesn't have to change any features, the ATA controller is quite restrictive) and a little more efficiency involved.

If anyone has any ideas for features people want to see in Linux (with the possible disappointment that nobody agrees with you, or nobody cares :) feel free to maybe add a thread here and list them. It would be great to know what is expected of driver support.

_________________
Matt Sealey


Top
   
 Post subject: Sound on Debian linux
PostPosted: Mon Aug 27, 2007 11:02 pm 
Offline

Joined: Thu Aug 02, 2007 5:09 pm
Posts: 4
Why can't we get the Efika.info site UP TO DATE???

I just got my Efika a month or so ago, and just installed Debian and it runs great(BUT NO SOUND)!!!! Files are from 2006! Id just like to install an OS without all this patch this and change that! I wasted hours installing different version of gentoo and debian ! still no audio!

Can someone pleassssse get a Debian or Gentoo or ANY linux install with sound support posted on Efika.info! Or do I need to just buy an VIA machine for my car audio and put the EFIKA on hold for MorphOS(next 5 years?)! gezzz

ZXoney


Top
   
 Post subject:
PostPosted: Mon Aug 27, 2007 11:59 pm 
Offline

Joined: Thu Jul 28, 2005 12:41 am
Posts: 1066
In about a month openSUSE 10.3 will be released, with full EFIKA hardware support. You can test beta2 right now, please take a look at the openSUSE topic of this forum.

You can also get sound on Gentoo any time, as it's a source based distribution :-) See http://dev.gentoo.org/~nixnut/efika/

_________________
CzP
http://czanik.blogs.balabit.com/


Top
   
 Post subject:
PostPosted: Tue Aug 28, 2007 1:58 am 
Offline

Joined: Sun May 08, 2005 8:46 pm
Posts: 559
Location: Paris
@ZXoney

check this thread :
http://www.powerdeveloper.org/forums/vi ... =8845#8845


Top
   
 Post subject:
PostPosted: Mon Feb 25, 2008 1:51 am 
Offline

Joined: Fri Feb 22, 2008 11:55 am
Posts: 2
Hi, can PLEASE anybody write down a step-by-step guide how to enable sound on Efika in Debian etch linux for novice users (like I am)?

I have got OpenFirmware updated and I read this topic and also that topic completely but there is still no progress.


Top
   
 Post subject:
PostPosted: Mon Feb 25, 2008 7:09 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
Hi, can PLEASE anybody write down a step-by-step guide how to enable sound on Efika in Debian etch linux for novice users (like I am)?
If you are a novice you may not have the skill required to actually get it to work. Compiling kernels, modules and fiddling with alsa configurations is not exactly "point and click".

A how-to guide written step-by-step would not give you any better advise than the forum posts already here, although I'd welcome someone building a kernel and module set for Debian that integrated the latest patches, and even a new Debian Installer build, like Sven used to do..

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Mon Feb 25, 2008 11:30 am 
Offline

Joined: Fri Feb 22, 2008 11:55 am
Posts: 2
OK but can´t somebody who already done this put alsa configuration and compilled kernel and modules somewhere for download? I just ask and it is not because of beying lazy.

Or you suggest me to use SuSE instead of Debian? Is it any easier?

One more thing - sorry for my poor English


Top
   
 Post subject:
PostPosted: Mon Feb 25, 2008 1:46 pm 
Offline

Joined: Wed Jul 27, 2005 9:20 am
Posts: 242
Quote:
like Sven used to do..
Has Sven left the building?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 19 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group