Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound on Ultra SPARC 10?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
rsborn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2004
Posts: 105
Location: Webster, NY

PostPosted: Tue Jun 08, 2004 8:02 pm    Post subject: Sound on Ultra SPARC 10? Reply with quote

Anyone successful at getting sound working? My system is working well so I might as well try to "fix" it by adding sound :lol:

Currently my mixer icon in gnome says "no audio device"

Thanks,
Rick
Back to top
View user's profile Send private message
odgregg
n00b
n00b


Joined: 10 Jun 2004
Posts: 7

PostPosted: Thu Jun 10, 2004 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
odgregg
n00b
n00b


Joined: 10 Jun 2004
Posts: 7

PostPosted: Thu Jun 10, 2004 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Thu Jun 10, 2004 9:18 pm    Post subject: Reply with quote

What kernels are you folks using?

IIRC sound is busticated on sparc under 2.6 .... :-(


send patches! :-D
_________________
-Tim Smith
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Jun 10, 2004 9:59 pm    Post subject: Reply with quote

GenTimJS wrote:
send patches! :-D

You stole my line. No fair.
Back to top
View user's profile Send private message
odgregg
n00b
n00b


Joined: 10 Jun 2004
Posts: 7

PostPosted: Thu Jun 10, 2004 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Jun 10, 2004 11:13 pm    Post subject: Reply with quote

2.4.x: use the in-kernel sparc drivers.
2.6.x: send patches for ALSA.
Back to top
View user's profile Send private message
odgregg
n00b
n00b


Joined: 10 Jun 2004
Posts: 7

PostPosted: Fri Jun 11, 2004 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message
rsborn
Tux's lil' helper
Tux's lil' helper


Joined: 10 Feb 2004
Posts: 105
Location: Webster, NY

PostPosted: Fri Jun 11, 2004 3:37 pm    Post subject: My Kernel level Reply with quote

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 :lol:
Back to top
View user's profile Send private message
odgregg
n00b
n00b


Joined: 10 Jun 2004
Posts: 7

PostPosted: Fri Jun 18, 2004 11:39 am    Post subject: Reply with quote

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
View user's profile Send private message
odgregg
n00b
n00b


Joined: 10 Jun 2004
Posts: 7

PostPosted: Sat Jun 19, 2004 2:30 am    Post subject: Reply with quote

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 :D

Cheers
Richard
Back to top
View user's profile Send private message
moongoggles
n00b
n00b


Joined: 07 May 2003
Posts: 18
Location: Colorado Springs

PostPosted: Thu Jun 24, 2004 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
seto
n00b
n00b


Joined: 09 Apr 2003
Posts: 25
Location: Switzerland

PostPosted: Sun Jul 18, 2004 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Sun Jul 18, 2004 8:41 pm    Post subject: Reply with quote

This thread from the sparclinux mailing list details a few more of the problems. Seems to be related to DMA.
Back to top
View user's profile Send private message
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Thu Apr 21, 2005 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
seto
n00b
n00b


Joined: 09 Apr 2003
Posts: 25
Location: Switzerland

PostPosted: Fri Apr 22, 2005 5:17 pm    Post subject: Reply with quote

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?) :evil:

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
View user's profile Send private message
seto
n00b
n00b


Joined: 09 Apr 2003
Posts: 25
Location: Switzerland

PostPosted: Sun Apr 24, 2005 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
ThorstenHirsch
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2003
Posts: 111

PostPosted: Mon Apr 25, 2005 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
seto
n00b
n00b


Joined: 09 Apr 2003
Posts: 25
Location: Switzerland

PostPosted: Mon Apr 25, 2005 5:52 pm    Post subject: Reply with quote

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! 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum