Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snd-aoa problems [solved]
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
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Fri Dec 01, 2006 11:14 pm    Post subject: snd-aoa problems [solved] Reply with quote

Machine is a Powermac G5 dual 2Ghz. 64/32bitUL. I just compiled the 2.6.18-r3 kernel.

I get this error when trying to start alsa:

Code:
stmiller linux # /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...
/usr/sbin/alsactl: save_state:1254: No soundcards found...                [ !! ]
 * Unloading ALSA ...                                                     [ ok ]
 * Unloading ALSA modules ...                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                              [ ok ]
 *   Loading: snd-seq-oss ...                                             [ ok ]
 *   Loading: snd-pcm-oss ...                                             [ ok ]
 * ERROR: Failed to load necessary drivers                                [ ok ]
 * Restoring Mixer Levels ...                                             [ ok ]


And this is the output from dmesg, and also from /var/log/messages:

Code:
snd-powermac no longer handles any machines with a layout-id property in the device-tree, use snd-aoa.


I enabled everything in the kernel as says so in the PPC FAQs. I do not have alsa-driver installed. I can modprobe snd-aoa and it loads fine. But upon restarting alsa, snd-aoa disappears from the output of lsmod.

I tried re-emerging alsa-libs and alsa-utils, but still no luck.

The end of my /etc/make.conf has:

ALSA_CARDS="snd-aoa"

I think I had that specified as "snd-powermac" when compiling the kernel, though.

Please help, thanks!

Code:
stmiller ~ # uname -a
Linux stmiller 2.6.18-gentoo-r3 #1 SMP PREEMPT Fri Dec 1 12:44:11 PST 2006 ppc64 PPC970FX, altivec supported PowerMac7,3 GNU/Linux


Last edited by stmiller on Sat Dec 02, 2006 9:28 am; edited 1 time in total
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Sat Dec 02, 2006 3:37 am    Post subject: Reply with quote

There's an option for a module layout-id fabric, which when toggled off enables two other modules (Apple Soundbus support and I2S bus support)

Should I include the layout-id fabric module? Or disable that module, and include the other two? None of this is in the PPC FAQs.

Device Drivers>Sound>ALSA>Apple On Board Audio Driver>

Code:


│ │<M> Apple Onboard Audio driver                                       │ │
  │ │< >   layout-id fabric                                               │ │
  │ │<M>   support Onyx chip                                              │ │
  │ │<M>   support TAS chips                                              │ │
  │ │<M>   support Toonie chip                                            │ │
  │ │<M> Apple Soundbus support                                           │ │
  │ │<M>   I2S bus support

OR
Code:

  │ │<M> Apple Onboard Audio driver                                       │ │
  │ │<M>   layout-id fabric                                               │ │
  │ │<M>   support Onyx chip                                              │ │
  │ │<M>   support TAS chips                                              │ │
  │ │<M>   support Toonie chip                                            │ │
  │ │--- Apple Soundbus support                                           │ │
  │ │---   I2S bus support


I tried compiling WITHOUT the layout-id fabric module, but still get same message from starting alsa:

Code:
stmiller ~ # /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Storing ALSA Mixer Levels ...
/usr/sbin/alsactl: save_state:1254: No soundcards found...                [ !! ]
 * Unloading ALSA ...                                                     [ ok ]
 * Unloading ALSA modules ...                                             [ ok ]
 * Loading ALSA modules ...
 *   Loading: snd-card-0 ...                                              [ ok ]
 *   Loading: snd-seq-oss ...                                             [ ok ]
 *   Loading: snd-pcm-oss ...                                             [ ok ]
 * ERROR: Failed to load necessary drivers                                [ ok ]
 * Restoring Mixer Levels ...                                             [ ok ]
stmiller ~ #


BUT /var/log/messages no longer gives the error from before. It only outputs:

Code:
Dec  1 19:34:18 stmiller rc-scripts: WARNING:  you are stopping a boot service.
Dec  1 19:34:20 stmiller rc-scripts: ERROR: Failed to load necessary drivers


And nothing in dmesg.

:(
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Dec 02, 2006 8:21 am    Post subject: Reply with quote

could you please try if udev-096-r1 fixes the issue for you? I have had similar problems with current stable udev (088). and 096-r1 fixed the issues. I thought it would be a local problem as noone else reported something like this. If you have no problems with version 096-r1 I'll try to mark it stable (if the herd does not have any reasons against it).

-corsair

P.S.: enableling the fabic layout cannot hurt I think, so enable it.
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Sat Dec 02, 2006 9:28 am    Post subject: Reply with quote

Yes! That fixes it. That also fixed some tv card modules that weren't loading. Thank you so much.
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Dec 02, 2006 9:31 am    Post subject: Reply with quote

cool :)

hrm... some archs stabilized already udev 103. I'll do some testing with that version now to get it stable on ppc64, too.

-corsair
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Dec 02, 2006 11:28 pm    Post subject: Reply with quote

You may want to hold back a bit, any udev >= 096 will break bcm43xx or any other driver that uploads firmware, if you have hotplug installed.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Gura
n00b
n00b


Joined: 28 Jun 2006
Posts: 14
Location: Pola de Lena, Asturias

PostPosted: Wed Dec 06, 2006 11:44 pm    Post subject: Reply with quote

Hello. I have PowerBook6,8. Using modules or built-in, as you recomended in this post, but the device /dev/dsp isn't created.

Code:

# grep SND /usr/src/linux-2.6.18-gentoo-r3/.config|grep y
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_POWERMAC=y
CONFIG_SND_POWERMAC_AUTO_DRC=y


I installed udev-096-r1, and uninstalled coldplug and hotplug (JoseJX's last post). When I reboot the laptop, the Airport Extreme works [1] with some error, but de soundcard follows without working.

Do you have some idea? Thanks, and sorry by my bad english.

[1] [kernel] bcm43xx: InitVals (bcm43xx_initvalXX.fw) file-format error. Please fix your bcm43xx firmware files.
_________________
Solo cuando lo pierdes todo eres libre para actuar.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Dec 07, 2006 12:14 am    Post subject: Reply with quote

For the AE error, make sure that you've actually installed the firmware and that you've removed /etc/hotplug/firmware.agent.

As for sound, that machine should use snd-aoa instead. Configure it without SND_POWERMAC, but leave everything else the same.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Gura
n00b
n00b


Joined: 28 Jun 2006
Posts: 14
Location: Pola de Lena, Asturias

PostPosted: Thu Dec 07, 2006 2:47 am    Post subject: Reply with quote

Uhm.

Code:

# grep SND /usr/src/linux-2.6.18-gentoo-r3/.config |grep =
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_AOA=m
CONFIG_SND_AOA_TAS=m
CONFIG_SND_AOA_SOUNDBUS=m
CONFIG_SND_AOA_SOUNDBUS_I2S=m


Edited
Code:

# lsmod|grep snd
snd_seq_dummy           2980  0
snd_seq_oss            38068  0
snd_seq_midi_event      6880  1 snd_seq_oss
snd_seq                57192  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          7692  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_mixer_oss          18496  0
snd_aoa                17728  0
snd_aoa_i2sbus         21188  0
snd_pcm                74148  1 snd_aoa_i2sbus
snd_timer              22564  2 snd_seq,snd_pcm
snd_page_alloc          8808  1 snd_pcm
snd                    59028  8 snd_seq_oss,snd_seq,snd_seq_device,snd_mixer_oss,snd_aoa,snd_aoa_i2sbus,snd_pcm,snd_timer
snd_aoa_soundbus        6212  1 snd_aoa_i2sbus


The result:
Code:

# cat /proc/asound/cards
--- no soundcards ---


I test with udev-087-r1 and 096-r1. Neither it works. One week back all work with snd_powermac, and today do not, it's rare.

Thanks for your help.
_________________
Solo cuando lo pierdes todo eres libre para actuar.
Back to top
View user's profile Send private message
Gura
n00b
n00b


Joined: 28 Jun 2006
Posts: 14
Location: Pola de Lena, Asturias

PostPosted: Thu Dec 07, 2006 6:20 am    Post subject: Reply with quote

Solved!!!! Thanks JoseJX
_________________
Solo cuando lo pierdes todo eres libre para actuar.
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