Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.2 kernel and sound on iBook Spec Ed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Mon Feb 16, 2004 2:28 am    Post subject: 2.6.2 kernel and sound on iBook Spec Ed Reply with quote

I have one of the special edition graphite iBooks (466MHz, 320 RAM) which I'm running the 2.6.2-benh1 kernel on (2.4 kernel was glacially slow in X :( ).

I'd like to get sound working before I emerge much more of my desktop but I'm having a hard time finding out exactly what I need to do. Right now I'm getting a series of error/information messages during boot with the end result that I don't have the device working.

I've browsed the messages here quite a bit and have found helpful snippets of information, but not one step-by-step procedure that outlines the process from start to finish. Lots of the 2.4 kernel info doesn't apply to the 2.6.

Here's what seem to be the relevent parts of my .config:
-----------------
#
# Sound
#
CONFIG_SOUND=m
CONFIG_DMASOUND_PMAC=m
CONFIG_DMASOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
-------------------
Bits of modules.d/alsa as I found in the forums
-------------------
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
# added following line per Gentoo Forum "ALSA on iBook 600mhz running 2.6.2"
alias sound-card-0 snd-powermac

# 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
-------------------
And the relevent (I think) parts of my kernel messages on boot:
-------------------
Feb 14 20:47:27 PIPPIN dmasound_pmac: DACA with multiple frame rates
Feb 14 20:47:27 PIPPIN 2 44100 48000
Feb 14 20:47:27 PIPPIN dac3550a driver version 0.1 (20010930)
Feb 14 20:47:27 PIPPIN bus i2c: add driver DAC3550A driver V 0.1
Feb 14 20:47:27 PIPPIN Oops: kernel access of bad area, sig: 11 [#1]
Feb 14 20:47:27 PIPPIN NIP: C003ECB8 LR: C00F0CF0 SP: D3DE3D60 REGS: d3de3cb0 TRAP: 0301 Not tainted
Feb 14 20:47:27 PIPPIN MSR: 00001032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
Feb 14 20:47:27 PIPPIN DAR: 64453A20, DSISR: 40000000
Feb 14 20:47:27 PIPPIN TASK = c096a2c0[3544] 'modprobe' Last syscall: 128
Feb 14 20:47:27 PIPPIN GPR00: C0500000 D3DE3D60 C096A2C0 64453A20 00000014 C091D07A D3DE3DF0 00000010
Feb 14 20:47:27 PIPPIN GPR08: 00000004 C0F03C00 00000000 C03B0000 82042828
Feb 14 20:47:27 PIPPIN Call trace:
Feb 14 20:47:27 PIPPIN [c00f0cf0] kobject_set_name+0x80/0xe4
Feb 14 20:47:27 PIPPIN [c01266ec] device_add+0x74/0x18c
Feb 14 20:47:27 PIPPIN [c0126824] device_register+0x20/0x34
Feb 14 20:47:27 PIPPIN [c01d77b4] i2c_attach_client+0x138/0x19c
Feb 14 20:47:27 PIPPIN [d5b37148] daca_detect_client+0x9c/0xcc [dmasound_pmac]
Feb 14 20:47:27 PIPPIN [d5b37038] daca_attach_adapter+0x58/0x5c [dmasound_pmac]
Feb 14 20:47:27 PIPPIN [c01d73a4] i2c_add_driver+0xd4/0x130
Feb 14 20:47:27 PIPPIN [d5b37228] daca_init+0x34/0x44 [dmasound_pmac]
Feb 14 20:47:27 PIPPIN [d5aeef38] init_module+0x720/0x84c [dmasound_pmac]
Feb 14 20:47:27 PIPPIN [c0034498] sys_init_module+0x1ac/0x338
Feb 14 20:47:27 PIPPIN [c0007e6c] ret_from_syscall+0x0/0x4c
Feb 14 20:47:27 PIPPIN request_module: failed /sbin/modprobe -- snd-card-0. error = 256
Feb 14 20:47:27 PIPPIN rc-scripts: /dev/mixer do not exist, please create it, or load the
Feb 14 20:47:27 PIPPIN rc-scripts: correct modules to enable your card's mixer
Feb 14 20:47:28 PIPPIN pbbuttonsd: ERROR: /dev/mixer doesn't exist.
------------------------

I've read that the 2.6 kernels have alsa built in, so supposidly I have no need to emerge alsa-drivers. Yet the kernel's complaining about drivers so apparently I don't have that bit set right.

I don't really have a preference between alsa and oss, so whatever anyone can help me get working is great with me and I certainly appreciate any help anyone can lend.
Back to top
View user's profile Send private message
colinleroy
n00b
n00b


Joined: 24 Nov 2003
Posts: 50

PostPosted: Tue Feb 17, 2004 3:42 pm    Post subject: Reply with quote

Quote:

Feb 14 20:47:27 PIPPIN Oops: kernel access of bad area, sig: 11 [#1]

You have an oops, maybe report on linuxppc-dev... Your configuration seems to be correct, apart the fact that you don't need DMASOUND_PMAC anymore.
Back to top
View user's profile Send private message
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Tue Feb 17, 2004 10:02 pm    Post subject: Updated Reply with quote

I changed some things in the alsa configuration (commented out several lines per www.desertsol.com/~kevin/ppc/alsa) and corrected a typo. The kernel oops are gone and I now have system beeps at least, but sound proper still isn't working.

## /var/log/messages ##

Feb 17 16:20:36 PIPPIN bus type 'i2c' registered
Feb 17 16:20:36 PIPPIN bus i2c: add driver i2c_adapter
Feb 17 16:20:36 PIPPIN dmasound_pmac: DACA with multiple frame rates
Feb 17 16:20:36 PIPPIN 2 44100 48000
Feb 17 16:20:36 PIPPIN dac3550a driver version 0.1 (20010930)
Feb 17 16:20:36 PIPPIN bus i2c: add driver DAC3550A driver V 0.1
Feb 17 16:20:36 PIPPIN PowerMac DACA DMA sound driver rev 016 installed
Feb 17 16:20:36 PIPPIN Core driver edition 01.06 : PowerMac Built-in Sound driver edition 00.07
Feb 17 16:20:36 PIPPIN Write will use 4 fragments of 32768 bytes as default
## SNIP AIRPORT INFO ##
Feb 17 16:20:36 PIPPIN pmac: can't request resource 0!
Feb 17 16:20:36 PIPPIN no PMac soundchip found
Feb 17 16:20:36 PIPPIN request_module: failed /sbin/modprobe -- snd-card-0. error = 256
Feb 17 16:20:36 PIPPIN pmac: can't request resource 0!
Feb 17 16:20:36 PIPPIN no PMac soundchip found
~~~~~~~~~~~~~~~~~~
My modules.autoload.d/kernel-2.6 lists:

dmasound_core
dmasound_pmac
airport

~~~~~~~~~~~~~~~~~~
modules.d/alsa lists:

alias sound-card-0 snd-powermac
# Set this to the correct number of cards.
options snd cards_limit=1

~~~~~~~~~~~~~~~~~~

Again, any help is appreciated!
Back to top
View user's profile Send private message
colinleroy
n00b
n00b


Joined: 24 Nov 2003
Posts: 50

PostPosted: Thu Feb 19, 2004 3:11 pm    Post subject: Reply with quote

Try to drop dmasound_pmac (remove dmasound_* from modules.autoload.d/kernel2.6 and instead use alsa:
Code:
snd-powermac
snd-pcm-oss
Back to top
View user's profile Send private message
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Sat Feb 21, 2004 1:19 pm    Post subject: Fixed! Reply with quote

Ah the wonder of forums: it's fixed.

https://forums.gentoo.org/viewtopic.php?t=137455&sid=7e1d0be51f7dc07f19d49240fd8a3891
gave me some helpful information, I did comment out the dma-pmac stuff in the autoload file, plugged in my USB mouse and right-clicked on the muted card symbol in GNOME menubar and I have sound.

I will append a step by step to this list in the next few days so the next poor soul looking for a complete process will find it.
_________________
~~~~~~~~~~~~~~~~~~~~~
"The GPL is SCO's tar baby." -- Pamela Jones, Groklaw
Back to top
View user's profile Send private message
benoitc
n00b
n00b


Joined: 02 Aug 2003
Posts: 43
Location: Paris (France)

PostPosted: Sat Feb 21, 2004 5:51 pm    Post subject: Re: Fixed! Reply with quote

slobbit wrote:
Ah the wonder of forums: it's fixed.

https://forums.gentoo.org/viewtopic.php?t=137455&sid=7e1d0be51f7dc07f19d49240fd8a3891
gave me some helpful information, I did comment out the dma-pmac stuff in the autoload file, plugged in my USB mouse and right-clicked on the muted card symbol in GNOME menubar and I have sound.

I will append a step by step to this list in the next few days so the next poor soul looking for a complete process will find it.


so alsa interface works ?
Back to top
View user's profile Send private message
slobbit
n00b
n00b


Joined: 05 Feb 2004
Posts: 17
Location: State of Confusion

PostPosted: Sat Mar 06, 2004 4:44 am    Post subject: My configs for alsa sound Reply with quote

Okay, thanks epiphany--I had this all down and clicked "Preview" to proofread and epiphany crashed! :cry:

Anyway, I built a 2.6.2-r1 kernel with this for sound configuration. The make menuconfig isn't laid out quite the same as the config file gets written, so one does have to go back and forth a bit.

Code:
#
# Sound
#
CONFIG_SOUND=m
CONFIG_DMASOUND_PMAC=m
CONFIG_DMASOUND=m

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set


Then I edited my /etc/modules.autoload.d/kernel-2.6 to make sure I didn't have any sound stuff loading:
Code:
# /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/modules.autoload.d/kernel-2.6,v 1.1 2003/07/16 18:13:45 azarah Exp $
##################################################################
# 16Feb04 Modified per desertsol.com/~kevin/ppc/kernel-2.6       #
##################################################################
#
# Note that this file is for 2.6 kernels.
#
# Add the names of modules that you'd like to load when the system
# starts into this file, one per line.  Comments begin with # and
# are ignored.  Read man modules.autoload for additional details.

# For example:
# 3c59x
#
# Added all of the following lines
#dmasound_core
#dmasound_pmac
#sungem
airport


Then to /etc/modules/alsa. I really have no idea what the optimum settings are here, this is sort of winged with the help of the configuration files of others. It does work for me:


Code:
# Alsa 0.9.X kernel modules' configuration file.
# $Header: /home/cvsroot/gentoo-x86/media-sound/alsa-utils/files/alsa-modules.conf-rc,v 1.1 2003/08/05 21:07:55 johnm Exp $
#############################################################
# Modified 16Feb04 corrected sound-card to snd-card         #
#############################################################

# 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 `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
# added following line per Gentoo "ALSA on iBook 600mhz running 2.6.2"
# re: desertsol.com/~kevin/ppc/alsa only this line:
alias snd-card-0 snd-powermac

# 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
# commented out these three per desertsol/~kevin
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# commented out this per desertsol/~kevin
# Set this to the correct number of cards.
options snd cards_limit=1


Once booted into the kernel, i logged in to GNOME and unmuted the speaker. Alsa works and I can set up the multimedia keys in ACME and use the volume up and down and mute buttons on the keyboard.

One last thing, the output of lsmod:
Code:
Module                  Size  Used by
r128                  114828  2
i2c_keywest            11492  0
snd_powermac           45200  2
i2c_core               27300  2 i2c_keywest,snd_powermac
snd_seq_oss            41336  0
snd_seq_midi_event      8928  1 snd_seq_oss
snd_seq                63288  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          9800  2 snd_seq_oss,snd_seq
snd_pcm_oss            68836  0
snd_pcm               121976  2 snd_powermac,snd_pcm_oss
snd_page_alloc         13924  1 snd_pcm
snd_timer              28228  2 snd_seq,snd_pcm
snd_mixer_oss          22208  2 snd_pcm_oss
snd                    66040  11 snd_powermac,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,
snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore              11652  2 snd
airport                 7552  0
orinoco                52980  1 airport
hermes                 14848  2 airport,orinoco

_________________
~~~~~~~~~~~~~~~~~~~~~
"The GPL is SCO's tar baby." -- Pamela Jones, Groklaw
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum