Re: Sound from a Cube?


Subject: Re: Sound from a Cube?
From: Avinash Gupta (agupta@mediaone.net)
Date: Sun Dec 16 2001 - 18:16:13 MST


I was able to get sound using the ALSA drivers from CVS. It was actually
pretty simple (at least on YDL 2.1). I assume you are running the stock
2.4.10-12a kernel (non-smp) from YDL 2.1 and you have the sources installed
in /usr/src/linux.

1. Make sure the soundcore module is loaded:
        modprobe soundcore (as root)
2. Get the latest CVS sources from:
        ftp://ftp.alsa-project.org/pub/cvsexport
3. Unpack the sources and change directory to alsa-driver
4. ./configure --with-cards=pmac
5. make
6. make install (as root)

Once the install is over, try loading the new modules:
        modprobe snd-card-pmac

If that goes well, use the following /etc/modules.conf

        alias char-major-116 snd
        options snd snd_major=116 snd_cards_limit=1
        alias snd-card-0 snd-card-pmac
        options snd-card-pmac snd_index=0
        alias char-major-14 soundcore
        alias sound-slot-0 snd-card-0
        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-1-0 snd-mixer-oss
        alias sound-service-0-8 snd-seq-oss
        alias sound-service-0-12 snd-pcm-oss

Reboot. That's it! You should have sound now (well ... keep your fingers
crossed anyways ;-)

Hope this helps.

-- Avinash Gupta (agupta@mediaone.net)

On Friday 14 December 2001 07:48, you wrote:
> 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.



This archive was generated by hypermail 2a24 : Sun Dec 16 2001 - 18:28:46 MST