LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-14-2005, 02:28 AM   #1
sw67
Member
 
Registered: Oct 2004
Location: Here
Distribution: Slackware 12, openSuSE 11.0, XP
Posts: 76

Rep: Reputation: 15
VIA 8237 Sound cuts out randomly


Hi,
I have Slackware 10.1 with a 2.6.11.11 Kernel (compiled a few days ago).
It boots up fine and loads X no problems (even has network / graphics).
However, sound is playing up.
I have a VIA 8237 integrated sound chip, so I compiled the via82xx module into the kernel (under ALSA -- all moduled).
alsaconf and alsamixer and other programs pick the device up, and it can even play sound for a few seconds.
However, if I use XMMS or MPlayer or something to play a music file, it will play for a few seconds and then the sound will just stop. XMMS will report it is still playing, but no sound is produced.
No sound will play after that (from any application) unless I shut the machine down and power off, then power back on. Then it does the same thing again.
I've tried compiling ALSA 1.0.9b, but it still refuses to work.
It does this whether I tell MPlayer to use aRts, ALSA, OSS or whatever.
It isn't the chip because Windows XP can use it perfectly.
Any ideas?
Thanks in advance.
 
Old 06-14-2005, 02:42 AM   #2
sw67
Member
 
Registered: Oct 2004
Location: Here
Distribution: Slackware 12, openSuSE 11.0, XP
Posts: 76

Original Poster
Rep: Reputation: 15
As another note, if I boot up fluxbox and run tuxracer straight (without loading XMMS or MPlayer) the sound plays fine.
All the sounds are in Tuxracer, and continue to work after I close it.
However, as soon as I run XMMS or MPlayer, it dies.

Could it possibly be anything to do with the files I'm trying to play?
They're all MP3 at the moment.
 
Old 06-14-2005, 02:46 AM   #3
sw67
Member
 
Registered: Oct 2004
Location: Here
Distribution: Slackware 12, openSuSE 11.0, XP
Posts: 76

Original Poster
Rep: Reputation: 15
ogg does the same thing too
It only seems to be music files which is really confusing me.
 
Old 06-14-2005, 05:13 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Replying to your own posts is a bad idea, as it removes it from the "zero posts" search and makes it look like you're already getting answers.

If you run mplayer and then start up XMMS when sound is broken, do you get any error messages?

Check the /dev directory when sound is gone to make sure you still have access to your sound devices.

Check that Mplayer and XMMS are both set to use ALSA

Try creating a .asoundrc file in your home directory with the following, in case the problem is one device hogging the sound and not letting the others use it:
Code:
pcm.dmixer {
    type dmix
        ipc_key 1024
    slave {
            pcm "hw:0,0"
            period_time 0
            period_size 1024
            buffer_size 8192
       rate 44100
           }

       bindings {
               0 0
               1 1
           }
   }

   pcm.dsp0 {
       type plug
           slave.pcm "dmixer"
   }

   pcm.!default {
           type plug
           slave.pcm "dmixer"
   }

   pcm.default {
      type plug
         slave.pcm "dmixer"
   }

 ctl.mixer0 {
     type hw
         card 0
   }
 
Old 06-14-2005, 06:16 AM   #5
sw67
Member
 
Registered: Oct 2004
Location: Here
Distribution: Slackware 12, openSuSE 11.0, XP
Posts: 76

Original Poster
Rep: Reputation: 15
There's no error message from XMMS if i run MPlayer first, no. It just reports itself to be playing, but with no sound.
The devices are still there and I can cat them even when sound has gone.
the .asoundrc file made no difference except to upset XMMS.
Without it there, XMMS reports the following devices -
Default PCM device (default)
VIA 8237: VIA 8237 (hw:0,0)
VIA 8237: VIA 8237 (hw:0,1)
But if I put it there, I only get Default PCM device, which refuses to work - XMMS says it can't access the card.
I run MPlayer with -ao alsa, and XMMS is set to hw:0,0
I noticed I can get sound back by running
alsasound stop
alsasound start
But then I get the same problem again...
 
Old 06-14-2005, 06:46 AM   #6
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
What's XMMS's output plugin in the Preferences? (Press Ctrl-P)

What does alsamixer show when sound stops working?
 
Old 06-14-2005, 07:18 AM   #7
sw67
Member
 
Registered: Oct 2004
Location: Here
Distribution: Slackware 12, openSuSE 11.0, XP
Posts: 76

Original Poster
Rep: Reputation: 15
XMMS output plugin is ALSA 1.2.10 output plugin [libALSA.so]
alsamixer is unchanged - everything unmuted.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Broken Record" Sound, SUSE 9.1, VT823/A/8235/8237 AC97 Audio Controller... cillm527 Linux - Hardware 1 05-06-2005 03:42 AM
Sound with Quake 3 on VIA 8237 vanquisher Linux - Games 0 02-25-2005 01:00 AM
via 8237 AMD64 getting sound to work /Fedora RacerD Linux - Software 1 07-18-2004 02:08 AM
Using Debian as wireless router (Net Gear MA311) but randomly cuts out reg123 Linux - Wireless Networking 0 06-23-2004 06:46 PM
Power randomly cuts off... Shade Linux - Hardware 6 06-01-2004 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration