Onboard Sound-Card is not detected by ALSA

Problems and successes with specific brands/models of computer audio hardware
Post Reply
Message
Author
rolle
Posts: 14
Joined: Wed 22 Aug 2012, 14:42

Onboard Sound-Card is not detected by ALSA

#1 Post by rolle »

Hello!

This is my first Post in this Forum. :-)

I am quite new to Linux-OS and installed Puppy-Wary yesterday evening. In short: I am totally unexperienced, so far ;-)

At the Moment I am running Puppy-Wary 5.3.3 on an old FSC Futuro S400 ThinClient (frugal install from am 256MB CF-Card, pupsafe about 80MB).
So far Wary Puppy works quite fine ( a little bit faster than Lucid Puppy) but my sound hardware is not recognized by ALSA.

The System detected the onboard AC97 Audio device, but I wasn't able to play any sound (Yes, I did check about Mute an Volume in the Alsamixer). So I ran the ALSA-Wizard from the Sound-Wizard Menu. Probably something went wrong, from now on ALSA couldn't detect any Sound Hardware (not the onboard sound, neither a simple ÚSB-SC-Dongle). I did many reboots, but the ALSA returns: Unable to find any Soundcard, please press Cancel. The small Loudspeaker in the lower-right-corner also disappeared.

Short Hardware Specs
-----------------------------------
CPU - AMD Geode 1GHz
RAM - 1GB, 128MB reserved for the GPU
Graphics - onboard Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter
HDD - 256MB CF-Card, 80MB Pupsafe-file
Sound-1 - Silicon Integrated Systems [SiS] C-Media AC'97 Sound Controller
Sound-2 - C-Media USB-Audio-Device
Sound-3 - Edirol UA-1EX USB-Audio (later on I want to use this one for Audio-Playback)
OS - Puppy Linux Wary 5.3.3

For further information: I have atteched the full "Hardinfo System Report" and the "sys-info-report" as .txt-Files, I hope this helps (Puppy-Setup, Geany and Seamonky were running in the background whileperforming the test)

And one Last question: The System is running reasonable fast, but some times the response-time is a little bit slow like in the PentiumI/Win95 -times. Especially when browsing the Web using Seamonky. Actually I suspect the CPU beeing the 'bottleneck' of the System, Context Menus and that sort of stuff respond very quick. Do you have any suggestions to tweak Puppy-Linux to improve the overall system performance?

Thank you very much in advance!
rolle
Attachments
FSCS400_SystemInformation.tar.gz
(18.92 KiB) Downloaded 723 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

ALSA lib conf.c:3425:(snd_config_hook_load) /etc/asound.conf may be old or corrupted: consider to remove or fix it
Normally Puppy uses a /etc/asound.state file that should be used if existent by /etc/init.d/[10_]alsa .

alsaconf when started removes all loaded sound modules from the kernel .

alsaconf should write something into /etc/modprobe.d/alsa.conf like

Code: Select all

##### Changed by /sbin/pup_event_backend_modprobe #####
### Running kernel 2.6.37.4-KRG-i486-StagingDrivers-2
### Because modulename or harware had changed
### Configuration-file is /etc/modprobe.d/modprobe.conf
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
##### Mon Jan 30 07:06:35 GMT+1 2012 #####

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#3 Post by darkcity »

I assume the sound worked on Lucid? Do you know which drivers Lucid used?

rolle
Posts: 14
Joined: Wed 22 Aug 2012, 14:42

#4 Post by rolle »

So here is my alsa.conf:

Code: Select all

alias char-major-14-* soundcore
alias char-major-116-* snd
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
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
The 'asound.state' file is existent and asfar as I could tell contains all settings controlled by "alsamixer".

/etc/init.d/10alsa reveals this:

Code: Select all

#!/bin/sh
#Barry Kauler april 2009, puppylinux.com
#called from /etc/rc.d/rc.services at bootup, with 'start' param.
#called from /etc/rc.d/rc.shutdown at shutdown, with 'stop' param.
#101120, 101121 simplification.
#110111 shinobar: for reliable sound detection on HP Compac nc4010.
#110113 tweak delay. 110216 tweak delay.
#110506 /usr/sbin/alsaconf has 'restart' option, might need to reprobe modules. for now, just 'start|restart'.
#111229 add test file /etc/asound.state exists.
#120103 karl godt: fix unloading modules. refer: http://www.murga-linux.com/puppy/viewtopic.php?t=71767&start=390
#120222 revert 111229. 120223 shinobar: better fix.
#120226 01micko: added 'Master Front' entries. 120318 bumped it up, 75% to 100%.

case "$1" in
 start|restart)
  #110217 remove this test, seems to be a problem some people report file not created but snd ok...
  #if [ -f /tmp/rc_d_rc_services_alsa_ok ];then #101121 see rc.services.
   #if [ "`lsmod | grep '^snd_'`" != "" ];then
   rm -f /var/lock/subsys/alsasound 2> /dev/null #or alsa will not start.
   #sometimes these don't all load...
   modprobe snd-mixer-oss
   modprobe snd-seq-oss
   modprobe snd-pcm-oss
   for I in $(seq 4); do #110111 shinobar: for reliable sound detection on HP Compac nc4010.
    sleep 0.5 #110113 reduce 1 to 0.5. 110216 move up.
    [ -c /dev/mixer ] && break #note, /dev/mixer is deleted in /etc/rc.d/rc.sysinit.
   done 
   if [ ! -f /etc/asound.state ];then
    #try and set all levels workable...
    #set_mixers #in functions4puppy4
    #101015 BK had to add ,0 after Front...
    #110823 pemasu: add this set Speaker 75 % unmute
    #120226 01micko: added 'Master Front' entries...
	amixer -s -q <<EOF
set Master 75% unmute
set Master -12dB
set 'Master Mono' 75% unmute
set 'Master Mono' -12dB
set 'Master Front' 100% unmute
set 'Master Front' -12dB
set Front,0 75% unmute
set Front,0 -12dB
set PCM 90% unmute
set PCM 0dB
set Synth 90% unmute
set Synth 0dB
set CD 90% unmute
set CD 0dB
set Mic 0% mute
set PCM,1 90% unmute
set PCM,1 0dB
set Wave 100% unmute
set Music 100% unmute
set AC97 100% unmute
set 'Master Digital' 75% unmute
set DAC 90% unmute
set DAC -12dB
set DAC,0 90% unmute
set DAC,0 -12dB
set DAC,1 90% unmute
set DAC,1 -12dB
set Headphone 75% unmute
set Headphone -12dB
set Playback 100% unmute
set "SB Live Analog/Digital Output Jack" off
set "Audigy Analog/Digital Output Jack" off
set Speaker 75% unmute
EOF
	[ $? -eq 0 ] && alsactl -f /etc/asound.state store #120223 shinobar
   else
    alsactl -f /etc/asound.state restore #from /etc/asound.state.
   fi
  #fi
 ;;
 stop)
  [ -f /etc/asound.state ] && alsactl -f /etc/asound.state store #saves to /etc/asound.state. 111229 add test file exists. 120222 revert. 120223 restore.
  # Kill processes holding open sound devices...
  fuser -k /dev/admmidi? /dev/adsp? /dev/amidi? /dev/audio* /dev/dmfm* /dev/dmmidi? /dev/dsp* /dev/dspW* /dev/midi0? /dev/mixer? /dev/music /dev/patmgr? /dev/sequencer* /dev/sndstat >/dev/null 2>&1
  [ -d /proc/asound/dev ] && fuser -k /proc/asound/dev/* >/dev/null 2>&1
  [ -d /dev/snd ] && fuser -k /dev/snd/* >/dev/null 2>&1
  # remove all sequencer connections if any
  [ -f /proc/asound/seq/clients -a -x aconnect ] && aconnect --removeall
  # mute master to avoid clicks at unload
  amixer set Master mute >/dev/null 2>&1
  # remove all sound modules... 120103...
  #lsmod | grep "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
  c=0
  while [ "`lsmod | grep 'snd_'`" ];do
   lsmod | grep "^snd" | grep '0 $' | grep -Ev "(snd-page-alloc|snd_page_alloc)" |
   while read line
   do
    #rmmod `echo $line | cut -d ' ' -f 1`
    modprobe -rv `echo $line | cut -d ' ' -f 1`
   done
   c=$((c+1));[ "$c" = '6' ] && break #precaution if neverending loop
  done
  # remove the 2.2 soundcore module (if possible)
  rmmod soundcore 2> /dev/null
  rmmod gameport 2> /dev/null
  # remove lockfile if lockdir exists
  [ -d /var/lock/subsys ] && rm -f /var/lock/subsys/alsasound
 ;;
esac

###END###

So in the meanwhile I tried two live-systems (saluki0.23 and Wary5.3.3) without using any .2fs-file. And the Sound works flawlessly :D

So....what direction to go? Repair the current ALSA configuration or reinstall the System and therefore go back to default? As I am relatively new to all this I would prefer the 'manual-repair-route'.

Thanks alot!

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#5 Post by Karl Godt »

darkcity wrote:I assume the sound worked on Lucid? Do you know which drivers Lucid used?

Code: Select all

lsmod
should list drivers in Live Mode

rolle
Posts: 14
Joined: Wed 22 Aug 2012, 14:42

#6 Post by rolle »

Results of lsmod on a live-System (screenshot)
Attachments
sopunddriver.png
(79.88 KiB) Downloaded 965 times
Last edited by rolle on Wed 22 Aug 2012, 23:00, edited 1 time in total.

rolle
Posts: 14
Joined: Wed 22 Aug 2012, 14:42

#7 Post by rolle »

Update:
Booting my system without pupsafe.2fs-file gave me a OOTB-Wary without any Sound-Problems. So I'll just start reconfiguring and saving in a brand-new pupsafe-file.

Sorry for bothering You! Your help is much appreciated!

best regards,
rolle

Post Reply