View previous topic :: View next topic |
Author |
Message |
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Tue Apr 20, 2004 4:52 pm Post subject: alsa with 2.6.5 kernel on Ultra 80 |
|
|
I'm trying to use alsa for sound on my ultra 80 with the 2.6.5 kernel. I've been following the instructions in the gentoo alsa guide but I'm stuck at a certain point. I'm at the point where the guide says to use amixer to unmute the volume but amixer returns this:
> amixer
amixer: Mixer attach default error: No such device
I looked in /dev/and there are no devices for audio but I know I compiled in the support for cs4231 in the kernel.
I'm really confused (and I haven't had any coffee yet either)
Bung-Foo |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Wed Apr 21, 2004 4:21 am Post subject: |
|
|
The kernel module snd-ioctl32 will provide this.
However, I strongly recommend you do not use this as any alsa program that accesses those devices once they are available will lock up your machine. This is a kernel bug.
If you have built and loaded the snd-oss-pcm and snd-oss-mixer kernel options you can use regular mixer applications such as aumix without a problem.
One thing to keep in mind is that the driver for the onboard audio in the Ultra workstations (cs4231) does not seem to be functioning correctly although it will build and load correctly on the PCI based Ultras (Ultra 5 and up). |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Wed Apr 21, 2004 5:47 am Post subject: |
|
|
Hey thank you Weeve. I'll recompile with the oss options you mentioned enabled.
What about the fact that I have no audio devices in /dev ?
Bung-Foo |
|
Back to top |
|
|
Gecklord Apprentice
Joined: 17 Mar 2004 Posts: 174
|
Posted: Wed Apr 21, 2004 6:30 am Post subject: |
|
|
Do you have audiodevices in /dev/sound? |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Wed Apr 21, 2004 12:31 pm Post subject: |
|
|
Basically there are sound devices present, but the pathing on them may have changed.
For instance here under 2.6.5 on a Blade 100 I have the following sound related devices (I'm using udev and have snd-pcm-oss and snd-mixer-oss enabled)
/dev/sound/audio
/dev/sound/dsp
/dev/sound/mixer
Each one of those devices also has a symlink which points to it from the top level of /dev (so /dev/dsp points to /dev/sound,dsp, /dev/audio points to /dev/sound/audio, etc).
If these aren't showing up, then I'd guess the sound card isn't being detected or if the driver is a module, it hasn't been loaded. |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Wed Apr 21, 2004 4:23 pm Post subject: |
|
|
It looks like the module name for the cs4231 had changed between kernel revisions. It is now called snd_sun_cs4231. I'm emerging aumix right now.
Thank you for your help. I'll post my results in a little while.
Bung-Foo |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Thu Apr 22, 2004 1:53 am Post subject: |
|
|
ok well, I can play music now from my cdrom by using the jack on the front. If I try to play an mp3 or ogg with xmms I get either nothing (OSS) or I get a sped up high pitched gurgle (ESD).
I'll try playing with aiodioctl now and see if I can get this working. Thanks folks.
Bung-Foo |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Thu Apr 22, 2004 2:19 am Post subject: |
|
|
You probably won't have much luck with audioctl as alsa devices don't provide the same interface that sparc audio did in 2.4. I've been thinking that perhaps the mixer using the alsa interface might be able to do some of those options but the problems with snd-ioctl32 are preventing any testing along those lines. |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Thu Apr 22, 2004 4:13 pm Post subject: |
|
|
So I should wait for a new revision to the 2.6.5 kernel to try out audioctl? I can live for a while with just cd audio.
Thanks for your help Weeve.
Bung-Foo |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Thu Apr 22, 2004 11:38 pm Post subject: |
|
|
Essentially, audioctl no longer applies as the 2.6 kernels use ALSA which is a whole different API. Once things work right, you'd use an ALSA utility rather than audioctl.
No clue on when things will work right however. |
|
Back to top |
|
|
bung-foo Tux's lil' helper
Joined: 09 Jun 2002 Posts: 146
|
Posted: Fri Apr 23, 2004 12:08 am Post subject: |
|
|
awesome. thanks again for the info.
Bung-Foo |
|
Back to top |
|
|
|