LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-15-2004, 03:04 PM   #1
whaase
Member
 
Registered: Aug 2002
Location: Calgary, Alberta, Canada
Distribution: Ubuntu Server, Ubuntu Desktop
Posts: 128

Rep: Reputation: 15
Sound card problems.


Well, I know i'm not the first to ask. I've done many searches, but most threads never got finished or they got it to work by accedent. So here is my question. I have a IBM Thinkpad 390, with a Neomagic 256av sound/video card. I've tried just about every driver I could find that was mentioned. The only one I can even get close to working is the sb driver. All other drivers don't even allow me to mess with the mixer. SB driver atleast let's me do that much. But, I get a error when the card is getting initialized. Something about "asked for 16 got 8" error.... and set's it to the null device.
This is the only thing holding me back from wiping out windows on my laptop and I'm getting frusterated! I'm using a Debian based distro. I've checked out http://www.linux-laptop.net/ but to no avail. Anyone have suggestions? I'm getting tired of rebooting after every try. I'll post any info asked for.... heck, if you think you can do it I'll consider letting you ssh in!


More info:

/sbin/modprobe nm256_audio

no errors.

I edited the /etc/modutils/sound to look like this

# ALSA portion
alias char-major-116 snd
alias snd-card-0 nm256_audio

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

I then did a 'update-modules' to get the modules.conf updated with the new info.

I get the following popup from artsmessage when I reboot into KDE.


Sound server informational message:
Error while initializing the sound driver:
Can't set playback format (_format = -1, asked driver to give 16, got 8)
The sound server will continue, using the null output device.


Thanks, Walter

Last edited by whaase; 05-15-2004 at 06:14 PM.
 
Old 03-17-2005, 08:06 AM   #2
wes103
LQ Newbie
 
Registered: Sep 2004
Location: Eastern Pennsylvania, US
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
Ok, it's been a little while since the original post, but I've had lots of fits getting ALSA to run on my TP 390 too. I have finally figured it out.

The TP 390 outwardly appears to have a Neomagic 256AV chipset in it, but whatever IBM did to it, you have to use the OPL3SA2 driver to get sound. The OPL3SA2 driver included in the kernel, the OSS one, works fine. However, the one included in ALSA does not. The reason is that if your kernel was compiled with Plug-and-Play support, the ALSA driver assumes this means the sound chipset also. This is not true of the TP390. You have IRQ and I/O settings in your BIOS, it is not PnP. Thus, the ALSA driver decides there is no sound chipset.

After sifting through the ALSA code for a while, I found the solution. There is a rather undocumented module parameter to disable the PnP functionality in the driver, called isapnp. My modprobe lines for the driver look like this:

Code:
modprobe snd-opl3sa2 port=0x120 dma1=0 dma2=1 irq=5 wss_port=0x530 fm_port=-1 midi_port=-1 isapnp=0
modprobe snd-mixer-oss
modprobe snd-pcm-oss
I now have ALSA sound on my Thinkpad 390. Good luck to whoever is still using theirs, it is a reliable system.

-Bill
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
no sound on thinkpad a31 txrj Linux - Laptop and Netbook 16 12-09-2005 12:22 PM
thinkpad 600 sound yessongs Mandriva 1 07-15-2004 07:52 AM
Help with sound on thinkpad a21 dag33k Linux - Laptop and Netbook 2 07-06-2004 02:43 PM
No sound w/ Magicmedia 256av card on ibm 390 eroica Linux - Hardware 4 10-18-2003 11:50 PM
Sound Problems - Thinkpad ryanstrayer Linux - Hardware 21 08-04-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:34 PM.

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