Re: Sound from a Cube?


Subject: Re: Sound from a Cube?
From: Merrill Aldrich (merrillaldrich@earthlink.net)
Date: Fri Dec 14 2001 - 17:48:31 MST


Thanks for your reply, Patrick. I am not having quite the same luck ;-)

I downloaded and installed kernel 2.4.8-0.4c from the Yellow Dog ftp site,
based on your suggestion, but still cannot get any sound.

I was looking in rc.sysinint, and located the following code, which I think
is wrong or outdated, because it fails when I boot the machine:

<snip>

# Load sound modules
#
# I think this now qualifies as over-engineered.
RETURN=0
alias=`egrep -s "^alias[[:space:]]+sound[[:space:]]+" /etc/modules.conf | awk
'{ print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ] ; then
      action "Loading sound module ($alias): " modprobe $alias
      RETURN=$?
fi
alias=`egrep -s "^alias[[:space:]]+sound-slot-0[[:space:]]+"
/etc/modules.conf | awk '{ print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ] ; then
      action "Loading sound module ($alias): " modprobe $alias
      RETURN=$?
fi
alias=`egrep -s "^alias[[:space:]]+midi[[:space:]]+" /etc/modules.conf | awk
'{ print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ]; then
      action "Loading midi module ($alias): " modprobe $alias
fi

# Load mixer settings
if grep -q "\(sparcaudio\|sound\)" /proc/devices 2>/dev/null && [ $RETURN -eq
0 -a -f /etc/.aumixrc -a -x /bin/aumix-minimal ]; then
        action "Loading mixer settings: " /bin/aumix-minimal -f /etc/.aumixrc -L
fi

if [ -f /proc/sys/kernel/modprobe ]; then
   if [ -n "$USEMODULES" ]; then
       sysctl -w kernel.modprobe="/sbin/modprobe" >/dev/null 2>&1
   else
       # We used to set this to NULL, but that causes 'failed to exec'
messages"
       sysctl -w kernel.modprobe="/bin/true" >/dev/null 2>&1
   fi
fi

</snip>

Is the dmasound module the thing I ought to be using on a cube? If so, what
is the correct way to load it?

- Merrill Aldrich

Re: Sound from a Cube?
From: Patrick Smith <patsmith@pobox.com>
To: yellowdog-general@lists.yellowdoglinux.com

Merrill Aldrich wrote:
> Has anyone had any luck getting sound from a cube? When I got my YDL 2.0
> distro during the summer, there was no support for sound on the cube, so I
am
> wondering if anyone has been able to make it work since.

I have YDL 2.0 with a 2.4.8 kernel, and sound works, without me having
done anything special.

-- 
patsmith@pobox.com
-- 

- Merrill Aldrich



This archive was generated by hypermail 2a24 : Fri Dec 14 2001 - 18:02:05 MST