11. Set up sound

In this chapter we will fix some sparkling sound from the built-in sound adapter.

11.1. Support for the integrated sound adapter

The 7248 is equipped with an internal Crystal Audio cs4232 sound adapter. There is support for this adapter in the Linux kernel source, but this is not compiled into the standard installed kernel. So, we have to compile a new kernel. If you are a total beginner on compiling kernels, you should read the excellent kernel howto on how to get started. Download the kernel source from ftp.kernel.org or a mirror. I tested this with kernel 2.2.10 and 2.2.16.

11.2. Configure and compile the kernel

You should configure the kernel as you wish. If you did follow the steps in the last chapter, you have allready done this, and can skip to the next section. If not, follow the steps as described in the last chapter .

When configuring the kernel, check that the settings for sound are correct. They should look like this:

And check N for everything else in the sound section.

11.3. Configuring the modules

Before rebooting we must send some parameters to configure the modules at boot time. This is done in /etc/conf.modules . Edit this file, and add the following lines:
        alias sound cs4232
        pre-install sound /sbin/insmod sound dmabuf=1
        alias midi opl3
        options opl3 io=0x388
        options cs4232 io=0x534 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=5
        

11.4. Reboot and pray

Now, just reboot and pray. If nothing works, you have done something unwise when configuring the kernel. Boot from a floppy and try again. If everything works, you should for example be able to play an mp3 file using the mpg123 player from the console. (And yes, of course you might have to install the mpg123 package first.)

Note: I have not been able to get midi (the opl3 module) working. If anybody has any tips on this, please let me know.