If you compile the driver into the kernel, you have to add
"ad1816=<io>,<irq>,<dma>,<dma2>" to the kernel command line.
+config SOUND_AD1889
+ tristate "AD1889 based cards (AD1819 codec) (EXPERIMENTAL)"
+ depends on EXPERIMENTAL && SOUND_OSS
+ help
+ Say M here if you have a sound card based on the Analog Devices
+ AD1889 chip.
+
config SOUND_SGALAXY
tristate "Aztech Sound Galaxy (non-PnP) cards"
depends on SOUND_OSS
obj-$(CONFIG_SOUND_WAVEARTIST) += waveartist.o
obj-$(CONFIG_SOUND_SGALAXY) += sgalaxy.o ad1848.o
obj-$(CONFIG_SOUND_AD1816) += ad1816.o
+obj-$(CONFIG_SOUND_AD1889) += ad1889.o ac97_codec.o
obj-$(CONFIG_SOUND_ACI_MIXER) += aci.o
obj-$(CONFIG_SOUND_AWE32_SYNTH) += awe_wave.o
#include <linux/soundcard.h>
#include <linux/ac97_codec.h>
#include <linux/sound.h>
-#include <linux/wrapper.h>
+#include <linux/interrupt.h>
#include <asm/delay.h>
#include <asm/io.h>
static int ad1889_open(struct inode *inode, struct file *file)
{
/* check minor; only support /dev/dsp atm */
- if (MINOR(inode->i_rdev) != 3)
+ if (minor(inode->i_rdev) != 3)
return -ENXIO;
file->private_data = ad1889_dev;
/************************* /dev/mixer interfaces ************************ */
static int ad1889_mixer_open(struct inode *inode, struct file *file)
{
- if (ad1889_dev->ac97_codec->dev_mixer != MINOR(inode->i_rdev))
+ if (ad1889_dev->ac97_codec->dev_mixer != minor(inode->i_rdev))
return -ENODEV;
file->private_data = ad1889_dev->ac97_codec;