LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-07-2003, 02:45 AM   #1
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Problem: Slack 9.1, ALSA, SiS7012


SiS 7012. Just installed Slack 9.1. *Not* using KDE or gnome, so no artsd/esd crap. Sound worked (sort of) in 9.0. Now I get

ALSA snd_pcm_hw_params_set_period_size error: Invalid argument

trying to run 'mpg321 *.mp3' and no output. I read some docs that didn't seem relevant. I googled and all I came up with was Mandrake stuff about a 'bug' but nothing more concrete or helpful than that. I searched this site and got one thread returned which suggested disabling artsd (which I don't need to do, I don't think) and ALSA which I may try (and may need help with) but I was hoping there'd be a way to *use* ALSA rather than disable it. OSS/esd/artsd/kitchensinkcrap worked somewhat under 9.0 but I wasn't thrilled with it and was really hoping ALSA would be an improvement.

lsmod
Code:
Module                  Size  Used by    Not tainted
snd-pcm-oss            37252   0
snd-mixer-oss          11992   0 [snd-pcm-oss]
usb-ohci               18888   0 (unused)
snd-intel8x0           17156   0
snd-pcm                55904   0 [snd-pcm-oss snd-intel8x0]
snd-timer              13252   0 [snd-pcm]
snd-ac97-codec         37240   0 [snd-intel8x0]
snd-page-alloc          6004   0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart         3136   0 [snd-intel8x0]
snd-rawmidi            12512   0 [snd-mpu401-uart]
snd-seq-device          3920   0 [snd-rawmidi]
snd                    27460   0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer<break>
    snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3332   3 [snd]
sis900                 13388   1
crc32                   2880   0 [sis900]
uhci                   24496   0 (unused)
ehci-hcd               16872   0 (unused)
usbcore                58400   1 [usb-ohci uhci ehci-hcd]
ide-scsi                9424   0
agpgart                39576   0 (unused)
I did a clean install and everything else worked (or I got to work) like a charm (so far) but this is hanging me up.
 
Old 10-07-2003, 04:40 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Original Poster
Rep: Reputation: Disabled
Never mind. I seem to have gone brain dead. er. I ran alsamixer and did 'alsactl store' but it didn't have any effect. I must have just done it wrong. I ran 'mpg321 -o oss *.mp3' and that worked and I went to rexima to tweak it and must have stumbled over something I missed because now ALSA seems to work. *shrug*

Now if I could just figure out what was wrong with xine - it plays CDs but not DVDs. I thought the DVD issue was related to sound. *sigh*
 
Old 10-07-2003, 08:48 PM   #3
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
Most likely xine needs the libdvdcss libarary installed. This libarary is not included in american linux releases: Redhat, Mandrake, Slackware etc. I am not sure about all the legalese involved but it has to do with unencrypting the dvd and the majority of DVD in the US need this libarary to playback. Compile the libary with --prefix=/usr
 
Old 10-08-2003, 02:44 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Original Poster
Rep: Reputation: Disabled
Ah. Thanks, shepper! It's weird - it was working in 9.0 and I don't remember doing anything special for it but I'll try that. Or just put mplayer back on, since that's what I mostly used anyway. I wasn't sure if it was an app/lib problem or a system-wide problem. I was trying to get the hardware elements functioning before I started adding stuff.
 
Old 10-08-2003, 10:19 AM   #5
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
Mplayer has libdvdcss incorporated into its code.
 
Old 10-08-2003, 12:36 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Original Poster
Rep: Reputation: Disabled
Yep. I'd been using 1.0pre1 but I compiled pre2 today. Need to do some more to get it really right, but it works. Thanks again.
 
Old 10-08-2003, 04:00 PM   #7
JollyRogers
Member
 
Registered: Sep 2003
Location: Va USA
Distribution: Slackware
Posts: 81

Rep: Reputation: 16
anything new in pre2???? just curious.
 
Old 10-09-2003, 04:44 AM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Original Poster
Rep: Reputation: Disabled
Yeah - the main things are new nvidia stuff and fixing a vulnerability. You need to upgrade, downgrade or patch if you're using pre1 or several others such 0.92, I think.

Full details at http://www.mplayerhq.hu/homepage/design6/news.html
 
Old 11-08-2003, 02:24 PM   #9
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
Re: Problem: Slack 9.1, ALSA, SiS7012

Quote:
Originally posted by digiot
SiS 7012. Just installed Slack 9.1. *Not* using KDE or gnome, so no artsd/esd crap. Sound worked (sort of) in 9.0. Now I get

ALSA snd_pcm_hw_params_set_period_size error: Invalid argument

trying to run 'mpg321 *.mp3' and no output. I read some docs that didn't seem relevant. I googled and all I came up with was Mandrake stuff about a 'bug' but nothing more concrete or helpful than that. I searched this site and got one thread returned which suggested disabling artsd (which I don't need to do, I don't think) and ALSA which I may try (and may need help with) but I was hoping there'd be a way to *use* ALSA rather than disable it. OSS/esd/artsd/kitchensinkcrap worked somewhat under 9.0 but I wasn't thrilled with it and was really hoping ALSA would be an improvement.

lsmod
Code:
Module                  Size  Used by    Not tainted
snd-pcm-oss            37252   0
snd-mixer-oss          11992   0 [snd-pcm-oss]
usb-ohci               18888   0 (unused)
snd-intel8x0           17156   0
snd-pcm                55904   0 [snd-pcm-oss snd-intel8x0]
snd-timer              13252   0 [snd-pcm]
snd-ac97-codec         37240   0 [snd-intel8x0]
snd-page-alloc          6004   0 [snd-intel8x0 snd-pcm]
snd-mpu401-uart         3136   0 [snd-intel8x0]
snd-rawmidi            12512   0 [snd-mpu401-uart]
snd-seq-device          3920   0 [snd-rawmidi]
snd                    27460   0 [snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm snd-timer<break>
    snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3332   3 [snd]
sis900                 13388   1
crc32                   2880   0 [sis900]
uhci                   24496   0 (unused)
ehci-hcd               16872   0 (unused)
usbcore                58400   1 [usb-ohci uhci ehci-hcd]
ide-scsi                9424   0
agpgart                39576   0 (unused)
I did a clean install and everything else worked (or I got to work) like a charm (so far) but this is hanging me up.
I have exactly the same problem you are describing here! Only I wasn't lucky enough that alsactl store works for me. My lsmod output almost exactly matches yours (even the sis900 module ) and all snd-drivers are there.
CD-audio works, but no mp3. If I want to play a wav file as root, it loops the first frame three times and then quits on me.

digiot, is your current lsmod output different than what you posted here?
 
Old 11-08-2003, 04:12 PM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Original Poster
Rep: Reputation: Disabled
I installed the nvidia driver so my kernel is 'tainted' and agp is 'used by=3'. And snd-intel8x0 and snd have 'used by=1'. Otherwise, the same.

For some reason, as user, I have to run ogg123 with the '-d oss' switch or it segfaults and there's a very low-level buzz on the left channel that comes and goes, especially with xmms. Only really audible during silent parts in the music. Haven't figured out what's up with that - it doesn't matter if I set xmms to use alsa or oss or whatever. CD, wav, ogg, and mp3 all work, and whatever audio tracks with various video formats. All I did was run rexima - I think I forgot to unmute pcm or turn it up or something with alsamixer. Anyway - then I reran alsamixer and did the 'alsactl store' thing and have been using alsamixer since. Reset it a few times trying to get rid of the buzz. Turning 'master' down pretty low and turning up the mechanical volume knob on my speakers helped a little.

I don't understand this stuff - I hate drivers and making hardware work. DOS was harder, but made more sense. And Windows usually Just Works (as far as hardware, only, I mean). All I want to mess with is 'pure' software, not keyboards and speakers and the software for that. Weird that playing wavs works that way (or doesn't work that way ) - have you tried other apps, other formats, as regular user, with alsamixer, even if the 'store' part isn't working?
 
Old 11-09-2003, 01:26 AM   #11
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
Well, I've posted about the WAV format because that's only what came a *little* close to what I'm trying to accomplish
The WAV format gives me the symptoms described in my earlier posts, (no matter what user) but all other formats (except XMMS streaming audio) don't give me anything.
I'm very sure I don't need to unmute anything, because I have been playing CDs - but I'll give rexima a shot.

The strange thing is: Mandrake always had sound. Windows too. It's just Slack who's givin' me problems

Last edited by wuck; 11-09-2003 at 01:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA sound problems, 2.6.7 kernel, sis7012 onboard phunkymunky Slackware 7 08-26-2004 05:10 PM
pcm kmix, alsa problem with sis7012 ivan.tg Slackware 0 07-01-2004 06:47 AM
ALSA problem on mandrake 10.0 with SiS7012 CountZero16 Linux - Hardware 7 06-22-2004 08:39 PM
Onboard SiS7012 and ALSA Hammett Linux - Hardware 0 06-20-2004 07:14 AM
alsa doesn't work with sis7012 fideli Linux - Newbie 12 11-04-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:26 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