LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fijitsu mobile 510agp - sound module (https://www.linuxquestions.org/questions/linux-newbie-8/fijitsu-mobile-510agp-sound-module-264552/)

High-gain 12-09-2004 01:59 PM

fijitsu mobile 510agp - sound module
 
Please could anyone help with the following -

I have installed Mandrake 10.0 on my Fijitsu Mobile 510 agp laptop with no problems, and even have a internet connection (my thanks to Martin N from Sweden for that one). But the laptop cannot 'Autodetect' the sound driver as it emulates a ISA card.

Most of the material I have studied from the net suggest I need to install a LKM module.

My problem that having recently migrated from Windows ( and hopefully will not have to go back) is that still, after a few frustrating weeks, I am unable to write these modules.

If possible could someone answer the following -

(a) What would be the best progamme to start writing the modules with. I am using KDE.

(b) With reference to the above webpages info, do I write the module exactly as shown or do I have to add any other things.

(c) Where would the 'conf.' files go.

Would be most grateful for your advice. Thank You.

**********************************************************
The more I Learn - The Less I Know!
**********************************************************

MartinN 12-09-2004 04:35 PM

Hi again!

Found this link through http://www.linux-laptop.net/ :
http://www.linuxfreunde.de/marl/mobi...mobile510.html

The command 'alsaconf' seems to make things pretty easy.

Good luck with your (soon to be) perfectly working Linux laptop!
Martin

High-gain 12-10-2004 01:54 AM

Greetings again Martin, thanks for coming back to my questions.

I have been looking at the webpages you sent me for several weeks now, but am unable to figure out how to write the modules and with what software. I have attempted to use KDevelop and C++ with simple 'Hello World' programmes, but end up with lots of errors and then it bails out.

Perhaps you could advise me on what programe to start writing with, and also the procedure that I have to use. I have just found some info to use the following but not sure if this is correct

"C++ *.cpp -o outfile"

Here the option is either =
-0 optimise your code
-g to add debugging info
*.cpp selects all files ending in .cpp
outfile is filename of the binary to be produced

If the above is correct - where do I go from here? (probably take a learning course in linux. Hi.)

Hope I have explained my situation properly and you have an idea of what I am trying to do. Thank you again Martin for your time and attention.

MartinN 12-10-2004 04:23 AM

:confused: :confused: :confused:

A kernel module is a "driver" in Windows terminology. Sure, you can make your own drivers, but I don't think it's the first thing you should do while trying out Linux. :rolleyes:

On your Mandrake CDs, the kernel is precompiled for you and so are all the modules. The kernel only needs to know which modules to load and how to configure them. This is specified in the file
/etc/modules.conf
This file is plain text and you can edit this file by hand, but it would be very tedious. That's why you run a program like 'alsaconf' to do it for you.

Hope this helps. Ask if you need more help or something is unclear.

Martin

High-gain 12-10-2004 08:13 AM

All copied Martin so thanks for that.

Have found alsaconf and installed ok on the pc. Could you tell me please, do I have to copy the etc/modules.conf(ALSA) file that is on the webpage you sent me to, and then place in the etc/ directory. Or do I edit the alsaconf file which I have just installed.

Thanks again for your time and attention, am getting there - slowly but surely. Hi.

MartinN 12-10-2004 01:54 PM

Editing my own post:
Errrhhh ... Sorry. I didn't see that you had edited your post. I read it earlier, at work and only replied to that. I now must edit my own post.

No, you don't need to copy anything to /etc/modules.conf
Just run alsaconf (as root, see below) from a command prompt. If this doesn't work, then try this:

End of edit

Hi again!

I apologize for not being able to give more precise instructions than these. It's kind of difficult, since I don't use Mandrake myself.

The first thing I think you should try is the Mandrake configuration program. From the Mandrake Control Center, try "Hardware" and see if you in any way can configure it from there. This would be the safe and easy way of doing it.

This is the more experimental way:

You know about the 'su' command to get root (super user) access in a terminal window, don't you? For this test to work, you need to be root. Therefore open a terminal window and type
su -
(note the minus, it's part of the command).

After entering the root password, you are now root with supreme powers of the system. :cool: Try inserting the kernel module (driver) manually! Issue this command (in part stolen from the page I linked to earlier):
modprobe snd-card-cs4232 snd_index=0 snd_port=0x534 snd_cport=0x538 snd_isapnp=0 snd_dma1=0 snd_dma2=1 snd_irq=7

If you get an error: "Module snd_card_cs4232 not found." then try again but leave out the 'card' in the command, like this:
modprobe snd-cs4232 snd_index=0 snd_port=0x534 snd_cport=0x538 snd_isapnp=0 snd_dma1=0 snd_dma2=1 snd_irq=7

Did any of these commands work? Did you get sound? If you only got an error message, please post it here. If it works, then we can arrange for this to load automatically on boot.

Again, my apologies for not being more precise than this.

Good luck!
Martin

High-gain 12-10-2004 04:08 PM

Hi Martin - thank you for your last post and all understood on your advice.

I have only just got back to the pc so shall work on it for the next couple of hours. (local time here is 2200z). Will post the results tomorrow morning.

As I said previously, have found alsaconf and installed it on the pc. I have tested it and it does work (hooray) and will detect several different drivers, but not the one I should use. That's why I asked if I had to install the etc/modules.alsa file for it to work, but realize now that it works on it's own thanks to you.

I will try your settings as set out in the above post, this I am sure will prove that the sound works. (it did in windows mode) Will then try different settings until it will recognize the right driver. Thanks again for your info and will get on with it straight away. All the best for now and thank again. Almost there. Hi.

High-gain 12-11-2004 03:20 AM

Hi Martin -
have edited my last post and this is the revised situation now. Alsaconf has been loaded and found driver cs4321 as per the script in the 510agp webpages you sent for me to look at.

All seems to be ok, if I 'lsmod' then cs4321 shows up there so guess it is loaded.

Still cannot get any sound at this time. Tried loading with modprobe as you suggested but that returns 'no such device, not such file'. I am also getting some warning notices that the ' /device/dev/dsp can't be opened - no such file' - have tried looking for this but cannot locate yet. Wonder if you have any suggestions on how to proceed.
Thanks again your time and attention. - J


All times are GMT -5. The time now is 08:50 PM.