View previous topic :: View next topic |
Author |
Message |
rsborn Tux's lil' helper
Joined: 10 Feb 2004 Posts: 105 Location: Webster, NY
|
Posted: Tue Jun 08, 2004 8:02 pm Post subject: Sound on Ultra SPARC 10? |
|
|
Anyone successful at getting sound working? My system is working well so I might as well try to "fix" it by adding sound
Currently my mixer icon in gnome says "no audio device"
Thanks,
Rick |
|
Back to top |
|
|
odgregg n00b
Joined: 10 Jun 2004 Posts: 7
|
Posted: Thu Jun 10, 2004 12:37 am Post subject: |
|
|
I'm also having problems getting audio on an Ultra 10 working. I can get audio by cat'ing an audio file to /dev/audio, but I'd like to get audio working under KDE.
Wehn trying to use it under KDE it fires up artsd which does not seem to work. Is the CS4231 supported under one of the audio systems? (eg. OSS)
Or can someone post their config file for their kernel if they've got audio working properly
Cheers,
Richard |
|
Back to top |
|
|
odgregg n00b
Joined: 10 Jun 2004 Posts: 7
|
Posted: Thu Jun 10, 2004 4:21 am Post subject: |
|
|
I suspect I may already have the kernel built correctly and that it's just KDE that's not right.
What sound system should be selected within KDE or xmms to get sound working for CS4231?
I don't have OSS enabled in the kernel, but I see other people mention that they don't need that.
Cheers,
Richard |
|
Back to top |
|
|
GenTimJS Guru
Joined: 03 May 2003 Posts: 406 Location: NH, USA
|
Posted: Thu Jun 10, 2004 9:18 pm Post subject: |
|
|
What kernels are you folks using?
IIRC sound is busticated on sparc under 2.6 ....
send patches! _________________ -Tim Smith |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Thu Jun 10, 2004 9:59 pm Post subject: |
|
|
GenTimJS wrote: | send patches! |
You stole my line. No fair. |
|
Back to top |
|
|
odgregg n00b
Joined: 10 Jun 2004 Posts: 7
|
Posted: Thu Jun 10, 2004 11:02 pm Post subject: |
|
|
Kernel 2.4.26
Now I've tried to re-compile the kernel including the OSS module but I get a compilation error that DMA_AUTOINIT is not defined.
I can get sound out from XMMS by choosing OSS driver at the moment, but the sound is garbled.
I can change outputs successfully via audioctl.
There's just something not right
Cheers,
Richard |
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Thu Jun 10, 2004 11:13 pm Post subject: |
|
|
2.4.x: use the in-kernel sparc drivers.
2.6.x: send patches for ALSA. |
|
Back to top |
|
|
odgregg n00b
Joined: 10 Jun 2004 Posts: 7
|
Posted: Fri Jun 11, 2004 2:59 am Post subject: |
|
|
ciaranm wrote: | 2.4.x: use the in-kernel sparc drivers. |
Do you mean include the cs4231 driver in the kernel rather than as a module?
Surely there must be something simple I'm doing wrong. Has anyone got sound working correctly in KDE under kernel 2.4.26+ on an Ultra10?
Cheers,
Richard |
|
Back to top |
|
|
rsborn Tux's lil' helper
Joined: 10 Feb 2004 Posts: 105 Location: Webster, NY
|
Posted: Fri Jun 11, 2004 3:37 pm Post subject: My Kernel level |
|
|
2.4.24
So I am hearing I need to compile sound code directly in the kernel? What kind of sound devices do these Ultras have?
I do not have KDE so I just need it to work under GNOME. Is there a howto on this? I don't mind following instructions |
|
Back to top |
|
|
odgregg n00b
Joined: 10 Jun 2004 Posts: 7
|
Posted: Fri Jun 18, 2004 11:39 am Post subject: |
|
|
Got it working!!! Most of the time
By compiling the CS4231 into the kernel (not a module) I've got audio working in XMMS using the esound driver.
I had to disable the artsd sound system in KDE to get it to work though.
I hope it works in KDE one day, and advice on that from anyone?
Cheers,
Richard |
|
Back to top |
|
|
odgregg n00b
Joined: 10 Jun 2004 Posts: 7
|
Posted: Sat Jun 19, 2004 2:30 am Post subject: |
|
|
Okay, I've got sound working in KDE by using mplayer as the external player for system sounds.
I've also got Xine and Kaffeine working fine as well (after selecting ESD as the output format). It's amazing that playing fullscreen video (at 1152x900) and audio only uses 50% CPU on a 333Mhz Ultra 10
Cheers
Richard |
|
Back to top |
|
|
moongoggles n00b
Joined: 07 May 2003 Posts: 18 Location: Colorado Springs
|
Posted: Thu Jun 24, 2004 9:10 pm Post subject: |
|
|
I suddenly got mine working too. I don't understand why it works now and not two months ago. I've screwed with this for ages and now it just works without doing anything differently. I don't get it. Maybe I'm just a knucklehead..... |
|
Back to top |
|
|
seto n00b
Joined: 09 Apr 2003 Posts: 25 Location: Switzerland
|
Posted: Sun Jul 18, 2004 1:36 am Post subject: |
|
|
ciaranm wrote: | 2.6.x: send patches for ALSA. |
hmmm
i had a quick look at the module and libasound
all the control code is in place, why does it not work???
what did i miss?
is the mixing done in software in common ultras?
i'd love to send patches, but i can't figure out what to patch |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Sun Jul 18, 2004 8:41 pm Post subject: |
|
|
This thread from the sparclinux mailing list details a few more of the problems. Seems to be related to DMA. |
|
Back to top |
|
|
ThorstenHirsch Tux's lil' helper
Joined: 25 Sep 2003 Posts: 111
|
Posted: Thu Apr 21, 2005 12:49 pm Post subject: |
|
|
Any news here?
Anyone who managed to get sound working on his Ultra10 under kernel 2.6.x?
When I try to use the ALSA-module (snd_sun_cs4231) with xmms, I get thousands of dmesg entries like this one:
Quote: | ioctl32(xmms:12902): Unknown cmd fd(11) cmd(4010500c){00} arg(734979d8) on /dev/sound/dsp |
|
|
Back to top |
|
|
seto n00b
Joined: 09 Apr 2003 Posts: 25 Location: Switzerland
|
Posted: Fri Apr 22, 2005 5:17 pm Post subject: |
|
|
this is because you're using 64bit kernel+32bit userland - the ioctls don't get translated automatically when being passed from usermode to kernelmode. since alsa-i-dont-know-which-version you have to load the module snd_ioctl32 to make alsa do this.
i just found that out recently - i was pretty annoyed since it isn't documented anywhere (what did i miss?)
when you load that one, you can access the sound device.
but there's still trouble with dma timings and the sound stutters awfully.
i'm currently checking if i can fix something, since no one seems to be interested in this.
oh, and before someone suggests i should use 2.4 (it includes a working standalone sound driver for the cs4231):
- 2.4 has broken usb on sparc (i stuck a pci usb2 controller in)
- 2.4 doesn't pass sparc legacy hid (serio*) to the input subsystem (lots of trouble with switching between 2.4 & 2.6)
- 2.4 uses a sun keymap - loadkeys <any driver> renders the keyboard unusable (again trouble with 2.4 <-> 2.6)
- 2.4 has to be modded by hand to get some woking drivers to build (libata&friends for my promise sata controller)
- 2.4 has broken bluetooth on sparc (no connectivity to my mobile phone)
don't get me wrong - 2.4 is good and all, but not for my box. |
|
Back to top |
|
|
seto n00b
Joined: 09 Apr 2003 Posts: 25 Location: Switzerland
|
Posted: Sun Apr 24, 2005 8:22 pm Post subject: |
|
|
oh, and i forgot something: it seems there was some improvement in stability between 2.6.10 and 2.6.11.
i'm running that kernel now and i'm very happy with it (except for the sound) |
|
Back to top |
|
|
ThorstenHirsch Tux's lil' helper
Joined: 25 Sep 2003 Posts: 111
|
Posted: Mon Apr 25, 2005 11:40 am Post subject: |
|
|
Thank you, the hint with ioctl32 was the solution. I've modprobed snd-ioctl32 and now the sound is working! Well it does not work with xmms, but with mplayer. |
|
Back to top |
|
|
seto n00b
Joined: 09 Apr 2003 Posts: 25 Location: Switzerland
|
Posted: Mon Apr 25, 2005 5:52 pm Post subject: |
|
|
jup, i just found out about mplayer last night!
it's still a bit dodgy, but seeking forth and back helps most of the time.
my jaw dropped when i saw this old 333mhz box is capable of playing 640x480 xvid at 25fps with stereo mp3 audio...
of course, if the onboard ati wasn't xvideo-supported, it wouldn't be
about xmms: use the alsa driver, set the buffers to at least 3000ms/500ms w/ mmap, and you're good to go.
i'm listening to digitally imported just fine atm
thanks to all those guys that hacked the driver together so far and sorry for my 2.4 bashing earlier! |
|
Back to top |
|
|
|