Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: u54749 on May 01, 2009, 12:35:57 PM

Title: 2.x: sound problem
Post by: u54749 on May 01, 2009, 12:35:57 PM
OSS on TC2.0rc1: sound does not work.

When I run osstest I get a loud rattling noise for a couple of seconds and this output:

Sound subsystem and version: OSS 4.1 (b 1052/200904111036) (0x00040100)
Platform: Linux/i686 2.6.29.1-tinycore #1337 SMP Fri Apr 10 19:12:39 EEST 2009

*** Scanning sound adapter #-1 ***
/dev/oss/oss_cs461x0/pcm0 (audio engine 0): Crystal CS4630
- Performing audio playback test...
  <left> Device returned error: Input/output error

*** Some errors were detected during the tests ***


OSS sound works perfect with TC1.4 on the same system so this seems to be a 2.0 bug.
Title: Re: 2.x: sound problem
Post by: jpeters on May 02, 2009, 01:04:27 AM
OSS works fine on my setup as long as the alsa extensions are not loaded.  If they are, I'll get a semaphore error, and the computer will freeze when it attempts to load.   The conflict only occurs with 2.x.
I suspect the alsa issue is behind skype problems as well  (which loads for login, and then disappears...skype won't run without alsa libs,  even when  using OSS. ).  I haven't been able to get alsa running by itself with 2.x .....loads sound card, but no sound on speaker-test....works fine with tc1.4
Title: Re: 2.x: sound problem
Post by: Jason W on May 02, 2009, 01:30:23 PM
Are you using a recently downloaded alsa.tcel extension in 2.x?  It has been updated on 4/28.
Title: Re: 2.x: sound problem
Post by: jpeters on May 02, 2009, 02:56:42 PM
Are you using a recently downloaded alsa.tcel extension in 2.x?  It has been updated on 4/28.

just did.......same problems.  Maybe it's a kernel configuration issue ??   
Title: Re: 2.x: sound problem
Post by: Jason W on May 02, 2009, 03:15:27 PM
What is your soundcard, and the output of /usr/local/etc/init.d/alsasound start?
Title: Re: 2.x: sound problem
Post by: jpeters on May 02, 2009, 04:02:26 PM
What is your soundcard, and the output of /usr/local/etc/init.d/alsasound start?

intel8x0 82801CA/CAM   AC'97 Audio Controller (rev 02)

note: alsamixer showing volume...(unmuted, etc,,,,).

Code: [Select]
tc@box:~$ /usr/local/etc/init.d/alsasound start
Starting sound driver: snd-intel8x0 
Starting sound driver: snd-intel8x0m 
tc@box:~$

Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by
snd_seq_dummy            632  0
snd_seq_oss            17232  0
snd_seq_midi_event      2640  1 snd_seq_oss
snd_seq                25980  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          2788  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            24620  0
snd_mixer_oss           8536  1 snd_pcm_oss
snd_intel8x0m           6804  0
snd_intel8x0           16780  0
snd_ac97_codec         66288  2 snd_intel8x0m,snd_intel8x0
snd_pcm                36852  4 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer              10340  2 snd_seq,snd_pcm
snd                    25936  10 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               2192  1 snd
ac97_bus                 408  1 snd_ac97_codec
snd_page_alloc          4028  3 snd_intel8x0m,snd_intel8x0,snd_pcm

Here's a comparison for tc1.4.  Why the big difference in size?   Both are loading tcz extensions.   (note: I'd be willing to pay more (size) for the optional "sound" feature..... :).

Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by
snd_pcm_oss            34080  0
snd_mixer_oss          13696  1 snd_pcm_oss
snd_intel8x0m          13452  0
snd_intel8x0           26908  0
snd_ac97_codec         86560  2 snd_intel8x0m,snd_intel8x0
ac97_bus                2560  1 snd_ac97_codec
snd_pcm                57092  4 snd_pcm_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec
snd_timer              17544  1 snd_pcm
snd                    42040  7 snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               6216  1 snd
snd_page_alloc          7688  3 snd_intel8x0m,snd_intel8x0,snd_pcm
Title: Re: 2.x: sound problem
Post by: Jason W on May 02, 2009, 04:53:21 PM
I googled and found this to be a common problem with alsa when you have both snd_intel8x0m and snd_intel8x0  loaded as they are conflicting modules.  Try blacklisting one of those modules at a time and that may help.  But if it is a problem in 2.x it should be a problem in 1.x I would think.
Title: Re: 2.x: sound problem
Post by: jpeters on May 02, 2009, 07:34:37 PM
no cigar....

I noticed when booting tc2, I get a popping noise,as if the sound modules were kicking in that doesn't occur when booting tc1.4.  I don't know if that has any relevance.   
Title: Re: 2.x: sound problem
Post by: Jason W on May 02, 2009, 08:03:01 PM
One last thing.  Maybe alsaconf is needed.  When running 2 soundcards, I blacklist the one I don't want and run alsaconf to set up the other.  Not the official alsa way, but it is simple.

Alsaconf and alsasound are custom for TC as the upstream originals will not work in TC so alsa in TC is still something of a work in progress.  The recently introduced autoloading of kernel modules when a tcem extension is loaded required more changes to alsasound, but it seems to by now be working well for most.  But maybe alsaconf along with perhaps blacklisting the unneeded module can do the trick.
Title: Re: 2.x: sound problem
Post by: jpeters on May 02, 2009, 09:06:26 PM
I removed the extra module prior to loading the soundcard with alsaconf.  Perhaps the autoloading is creating the conflict.  Re blacklisting....I tried about 4 different methods (commands entered in  /etc/modprobe.d/blacklist.sh and /etc/modprobe.conf), but tne module was loaded anyway.   
Title: Re: 2.x: sound problem
Post by: Jason W on May 03, 2009, 01:48:35 AM
What did you place in /etc/modprobe.conf to blacklist the module?  Here is the entry I use:

alias snd_intel8x0 off

And here is me trying to load the module:

Code: [Select]
root@box:/home/tc# modprobe snd_intel8x0
FATAL: Module off not found.
root@box:/home/tc#

Title: Re: 2.x: sound problem
Post by: jpeters on May 03, 2009, 02:44:02 AM
What did you place in /etc/modprobe.conf to blacklist the module?  Here is the entry I use:

alias snd_intel8x0 off
And here is me trying to load the module:

Code: [Select]
root@box:/home/tc# modprobe snd_intel8x0
FATAL: Module off not found.
root@box:/home/tc#




There's a few other things you can do which won't work equally as well.  You can write this to /etc/modprobe.conf and also /etc/modprobe.d/blacklist.   The second option is particularly useful, in that it creates a duplicate of what you already have in /etc/modprobe.conf (i.e....it re-writes the alias info, etc).   Whatever you do, rest assured it will still be there next time you check with lsmod. 

Code: [Select]
blacklist snd-intel8x0m
install snd-intel8x0m /bin/true

Title: Re: 2.x: sound problem
Post by: Jason W on May 03, 2009, 03:42:37 AM
My module does not get loaded when I made that entry to /etc/modprobe.conf.  You are saying your module gets loaded anyway, although an attempt to modprobe it gives the response "FATAL: Module off not found.".  You did rmmod the module or stop alsa (/usr/local/etc/init.d/alsasound stop) before you tried loading it again after blacklisting?
Title: Re: 2.x: sound problem
Post by: jpeters on May 03, 2009, 02:09:27 PM
My module does not get loaded when I made that entry to /etc/modprobe.conf.  You are saying your module gets loaded anyway, although an attempt to modprobe it gives the response "FATAL: Module off not found.".  You did rmmod the module or stop alsa (/usr/local/etc/init.d/alsasound stop) before you tried loading it again after blacklisting?

oh...I thought you were joking.   I think it's not finding the module because the alias command makes it look for "off" instead of "snd_intel8x0m"   If you lsmod, you'll see it's still there.  It can manually be removed with rmmod (not modprobe -r  because of the alias).   

I found there's no way to get alsa working once there's been a conflict,  so removing the module doesn't help.  I also tried removing the 'm' from alsa-modules.tcem, but  it seems to be autoloading anyway (I get a loud speaker click that doesn't occur in tc1 ).   

I'm not sure snd_intel8x0m is the problem anyway, since it's present in tc1.  It may be related to the autoloading feature. 
Title: Re: 2.x: sound problem
Post by: 3rail on August 08, 2009, 10:40:14 AM
u54749,

Did you ever find a solution to your sound error?  I'm having the same issue in v2.2

root@box:~# osstest
Sound subsystem and version: OSS 4.1 (b 1052/200904111036) (0x00040100)
Platform: Linux/i686 2.6.29.1-tinycore #1337 SMP Fri Apr 10 19:12:39 EEST 2009

*** Scanning sound adapter #-1 ***
/dev/oss/oss_cs461x0/pcm0 (audio engine 0): Crystal CS461x
- Performing audio playback test...
  <left> Device returned error: Input/output error

*** Some errors were detected during the tests ***

TIA
Title: Re: 2.x: sound problem
Post by: ^thehatsrule^ on August 08, 2009, 11:00:51 AM
This thread might be related? http://forum.tinycorelinux.net/index.php?topic=1663.15
Title: Re: 2.x: sound problem
Post by: u54749 on August 08, 2009, 12:15:13 PM
Here is how things went after my original post

First thing I tried was installing ALSA.  It worked but it was not very stable.and I had speed problems with DVD playback:  about half of the time the video played much too fast (can be related to problem mentioned in previous post), and the support site of the DVD playback SW indicated that ALSA was the most probable cause of the problem.

A bit later I remarked that TC 2.x uses OSS version 4.1 while TC 1.x uses OSS 4.0
Using the 1.x OSS TCE did not work as it is kernel version dependent

Final solution:  I recompiled OSS 4.0 for TC 2.x:  works absolutely perfect now.  The issue with DVD playback has completely disappeared.

Title: Re: 2.x: sound problem
Post by: 3rail on August 08, 2009, 12:35:38 PM
Would you mind submitting your tc 2.x oss 4.0 [tce]?
Title: Re: 2.x: sound problem
Post by: u54749 on August 08, 2009, 03:36:27 PM
You will find OSS40.tcem here

(Posted link removed by Jason W.  Posted links to extensions are not allowed per forum rules, please submit them instead.)

Please tell if this is working for you
Title: Re: 2.x: sound problem
Post by: u54749 on August 09, 2009, 05:53:27 AM
Submitted!
Title: Re: 2.x: sound problem
Post by: Jason W on August 09, 2009, 06:18:17 AM
Thanks.  I am just now heading out the door for Florida for a week.  Thanks to a recently acquired laptop I will be able to process extensions pretty much as usual, I plan on logging in every couple of days.  There is a batch of them in the queue, and I should get to them sometime tomorrow or at least by Tuesday.   
Title: Re: 2.x: sound problem
Post by: bmarkus on August 09, 2009, 06:22:39 AM
I am just now heading out the door for Florida for a week.   

Jason. enjoy your vacation!
Title: Re: 2.x: sound problem
Post by: Jason W on August 09, 2009, 04:37:01 PM
Thanks, I am on the hotel pc now as there are no free wireless networks available.  But I will figure out something.
Title: Re: 2.x: sound problem
Post by: 3rail on August 09, 2009, 08:17:15 PM
FWIW, I booted my old laptop mentioned earlier in this thread with TC 1.43 via boot CD.  Sound works very well using the older 4.0 OSS (but I'd like to keep TC 2.x installed on that machine for other reasons).

I also tried compiling OSS 4.0 under 2.x and failed miserably (OSS compile does not follow the standard configure/make/install pattern it seems -- missing oss-strcpy which googling for doesn't bring up any useful hits).   :(

OT:  Is there a usage guide somewhere or a walk through for "buildtc"?
Title: Re: 2.x: sound problem
Post by: u54749 on August 11, 2009, 10:34:55 AM
OSS 4.0 extension (OSS40.tcem) is now available via the appbrowser!



Title: Re: 2.x: sound problem
Post by: 3rail on August 11, 2009, 12:20:09 PM
OSS 4.0 extension (OSS40.tcem) is now available via the appbrowser!

awesome thanks everyone
Title: Re: 2.x: sound problem
Post by: u54749 on August 12, 2009, 03:53:29 PM
3rail:  does it work?
Title: Re: 2.x: sound problem
Post by: 3rail on August 12, 2009, 04:17:54 PM
3rail:  does it work?

Yes, osstest works perfectly, thanks.  However, I'm getting complete freeze ups (must hold down power to turn off machine) now when I try to view videos off of youtube with sound.  I think I need to reinstall getFlash but I'm still experimenting to determine exact cause.  But as far as OSS is concerned, sound works well now.
Title: Re: 2.x: sound problem
Post by: 3rail on August 14, 2009, 07:51:10 AM
I think I got flash10 and OSS4.0 working by

1.  having neither flash10 or 0SS4.0 installed
2.  installing OSS4.0
3.  installing getFlash10.tce
4.  sudo cp /usr/lib/oss/lib/flashsupport_normal.so /usr/lib/flashsupport.so
5.  running the getflash10 install script from the jwm menu

working = not crashing/completely freezing up the machine when playing a youtube video with sound