linux/sound/isa/azt2320.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
    card-azt2320.c - driver for Aztech Systems AZT2320 based soundcards.
    Copyright (C) 1999-2000 by Massimo Piccioni <[email protected]>

*/

/*
    This driver should provide support for most Aztech AZT2320 based cards.
    Several AZT2316 chips are also supported/tested, but autoprobe doesn't
    work: all module option have to be set.

    No docs available for us at Aztech headquarters !!!   Unbelievable ...
    No other help obtained.

    Thanks to Rainer Wiesner <[email protected]> for the WSS
    activation method (full-duplex audio!).
*/

#include <linux/io.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/pnp.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/wss.h>
#include <sound/mpu401.h>
#include <sound/opl3.h>

#define PFX

MODULE_AUTHOR();
MODULE_DESCRIPTION();
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 long wss_port[SNDRV_CARDS] =;	/* PnP setup */
static long mpu_port[SNDRV_CARDS] =;	/* PnP setup */
static long fm_port[SNDRV_CARDS] =;	/* PnP setup */
static int irq[SNDRV_CARDS] =;	/* Pnp setup */
static int mpu_irq[SNDRV_CARDS] =;	/* Pnp setup */
static int dma1[SNDRV_CARDS] =;	/* PnP setup */
static int dma2[SNDRV_CARDS] =;	/* PnP setup */

module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();
module_param_array();
MODULE_PARM_DESC();

struct snd_card_azt2320 {};

static const struct pnp_card_device_id snd_azt2320_pnpids[] =;

MODULE_DEVICE_TABLE(pnp_card, snd_azt2320_pnpids);

#define DRIVER_NAME

static int snd_card_azt2320_pnp(int dev, struct snd_card_azt2320 *acard,
				struct pnp_card_link *card,
				const struct pnp_card_device_id *id)
{}

/* same of snd_sbdsp_command by Jaroslav Kysela */
static int snd_card_azt2320_command(unsigned long port, unsigned char val)
{}

static int snd_card_azt2320_enable_wss(unsigned long port)
{}

static int snd_card_azt2320_probe(int dev,
				  struct pnp_card_link *pcard,
				  const struct pnp_card_device_id *pid)
{}

static unsigned int azt2320_devices;

static int snd_azt2320_pnp_detect(struct pnp_card_link *card,
				  const struct pnp_card_device_id *id)
{}

#ifdef CONFIG_PM
static int snd_azt2320_pnp_suspend(struct pnp_card_link *pcard, pm_message_t state)
{}

static int snd_azt2320_pnp_resume(struct pnp_card_link *pcard)
{}
#endif

static struct pnp_card_driver azt2320_pnpc_driver =;

static int __init alsa_card_azt2320_init(void)
{}

static void __exit alsa_card_azt2320_exit(void)
{}

module_init()
module_exit()