Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED) ALSA soundcard not detected using udev-104
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
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Mon Jan 29, 2007 4:15 pm    Post subject: (SOLVED) ALSA soundcard not detected using udev-104 Reply with quote

With udev-103 there is no problem with configuring the soundcard. Anyone notice other problems with udev-104 ?

Last edited by davidgurvich on Sat Feb 10, 2007 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Jan 30, 2007 1:46 am    Post subject: Reply with quote

Working fine here. Can you elaborate about the non-working sound card? Compiled in or modules? snd-aoa, snd-powermac or dmasound? Any warnings, error messages?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Feb 01, 2007 10:14 pm    Post subject: Reply with quote

ALSA actually works fine. It is the udev scripts which cause the problem. Perhaps something about the timing. I'm also getting the message no sound card found with udev-103, but I think there is another search for devices after initial boot with that version. I am using kernel alsa from 2.6.18.5.

I have compiled alsa as modules from vanilla-sources-2.6.18.5, snd-powermac. During boot with both udev-103 and udev-104 there is a message about no sound cards being found, after that the module is loaded from modules.autoload.d and detected using udev-103 but not udev-104. I can't seem to manually start alsa after boot with udev-104, simply refuses to recognize the sound card. I can
Code:
emerge =udev-103
etc-update
and that works after a reboot, but I don't know how to do the same with udev-104.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Feb 08, 2007 1:14 am    Post subject: Reply with quote

Can you post the actual differences in context between the two? I'm trying to track this down.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Feb 08, 2007 5:36 am    Post subject: Reply with quote

The only error messages I see exist in both versions of udev, no soundcard found during initial boot. Later, with the other initscripts, alsasound starts properly with udev-103 but not udev-104*. What should I do to get more information?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Feb 08, 2007 5:49 am    Post subject: Reply with quote

What is the contents of /etc/modules.d/alsa ?
What's does it say when it prevents you from loading alsa with 104?
Do you still have hotplug or coldplug installed?
Are the modules loaded before the ALSA init script is called?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Feb 08, 2007 1:21 pm    Post subject: Reply with quote

Here is the contents of /etc/modules.d/alsa
--------------------------
Code:
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.
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.14rc1 ---
alias char-major-116 snd
alias char-major-14 soundcore
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
alias snd-card-0 snd-powermac
alias sound-slot-0 snd-powermac
alsasound is set to start at boot and hotplug-20040923-r2 is installed but not coldplug.

Odd.
I have installed udev-104-r9 and tried /etc/init.d/alsasound restart. That seems to have worked. There may have been a change that fixed the problem. I am using kernel-2.6.20 now instead of 2.6.18.5 and udev-104-r9 uses some fixes from udev-105. I will reboot and see if that works.
----------------------------
After reboot alsasound has failed. Looks like some device file is not set up appropriately by the new version of udev. Here are the relevant portions of dmesg
-------------------
Code:
PM: Adding info for i2c:8-002c
PowerMac i2c bus uni-n 0 registered
Advanced Linux Sound Architecture Driver Version 1.0.14rc1 (Tue Jan 09 09:56:17 2007 UTC).
PM: Adding info for No Bus:timer
PM: Adding info for No Bus:sequencer
PM: Adding info for No Bus:sequencer2
PM: Adding info for No Bus:seq
ALSA device list:
  No soundcards found.
Code:
PM: Adding info for platform:snd_powermac
PM: Adding info for i2c:6-0035
input: PowerMac Beep as /class/input/input5
PM: Adding info for No Bus:pcmC0D0p
PM: Adding info for No Bus:pcmC0D0c
PM: Adding info for No Bus:dsp
PM: Adding info for No Bus:audio
PM: Adding info for No Bus:controlC0
PM: Adding info for No Bus:mixer
Code:
/usr/sbin/alsactl: load_state:1340: Cannot find soundcard '0'...
 * Errors while restoring defaults, ignoring                                          [ ok ]
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Thu Feb 08, 2007 1:49 pm    Post subject: Reply with quote

Here are the differences in /etc/udev/rules.d
05-udev-early.rules
Code:
ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
-ACTION=="add", SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*", WAIT_FOR_SYSFS="device/driver"
-
-# Set IN_HOTPLUG for compatibility with init-scripts called from udev
-ENV{IN_HOTPLUG}="1"
-

-----------------------
Most of the changes in 50-udev.rules deal with eliminating scsi and cd rules. Here are some of the changes in 50-udev.rules
Code:
 # Autoload modules that lack aliases but have them defined inutoload modules
-ENV{MODALIAS}=="?*", ACTION=="add", RUN+="/sbin/modprobe $env{MODALIAS}"
+SYSFS{modalias}=="?*", ACTION=="add", RUN+="/sbin/modprobe $env{MODALIAS}"
Code:
 # be backward compatible for a while with the /etc/dev.d and /etc/hotplug.d/ systems
 # run /etc/hotplug.d/ stuff only if we came from a hotplug event, not for udevstart
-#ENV{UDEVD_EVENT}=="1", RUN+="udev_run_hotplugd $env{SUBSYSTEM}"
+ENV{UDEVD_EVENT}=="1", RUN+="udev_run_hotplugd $env{SUBSYSTEM}"

-------------------
60-persistent-storage.rules doesn't have anything that applies. Nor does 75-persistent-net-generator.rules .
Back to top
View user's profile Send private message
shing6326
n00b
n00b


Joined: 24 Oct 2006
Posts: 13

PostPosted: Sat Feb 10, 2007 9:07 am    Post subject: Reply with quote

i have the same problem too.......
after upgraded to udev-104-r9 it can't detect my sound card....
i'm using nforce 2 onboard sound and here is my /etc/modules.d/alsa:
# OSS/Free portion - card #1
## 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.

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.11 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Feb 10, 2007 2:41 pm    Post subject: Reply with quote

The problem is the combination of udev-104 and my baselayout version being 1.12.4-r7. Changing to baselayout-1.12.9 seems to fix that problem and cause some minor annoyance with xdm settings. Perhaps some baselayout version larger than 1.12.4-r7 should be a dependency of udev.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Feb 11, 2007 7:05 am    Post subject: Reply with quote

It looks like baselayout 1.12.6 is the stable version. Does using that version work for you?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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