linux/sound/isa/ad1848/ad1848.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Generic driver for AD1848/AD1847/CS4248 chips (0.1 Alpha)
 *  Copyright (c) by Tugrul Galatali <[email protected]>,
 *                   Jaroslav Kysela <[email protected]>
 *  Based on card-4232.c by Jaroslav Kysela <[email protected]>
 */

#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/wss.h>
#include <sound/initval.h>

#define CRD_NAME
#define DEV_NAME

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();

static int index[SNDRV_CARDS] =;	/* Index 0-MAX */
static char *id[SNDRV_CARDS] =;	/* ID for this card */
static bool enable[SNDRV_CARDS] =;	/* Enable this card */
static long port[SNDRV_CARDS] =;	/* PnP setup */
static int irq[SNDRV_CARDS] =;	/* 5,7,9,11,12,15 */
static int dma1[SNDRV_CARDS] =;	/* 0,1,3,5,6,7 */
static bool thinkpad[SNDRV_CARDS];			/* Thinkpad special case */

module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();
module_param_hw_array(port, long, ioport, NULL, 0444);
MODULE_PARM_DESC();
module_param_hw_array(irq, int, irq, NULL, 0444);
MODULE_PARM_DESC();
module_param_hw_array(dma1, int, dma, NULL, 0444);
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();

static int snd_ad1848_match(struct device *dev, unsigned int n)
{}

static int snd_ad1848_probe(struct device *dev, unsigned int n)
{}

#ifdef CONFIG_PM
static int snd_ad1848_suspend(struct device *dev, unsigned int n, pm_message_t state)
{}

static int snd_ad1848_resume(struct device *dev, unsigned int n)
{}
#endif

static struct isa_driver snd_ad1848_driver =;

module_isa_driver(snd_ad1848_driver, SNDRV_CARDS);