linux/sound/drivers/pcsp/pcsp.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * PC-Speaker driver for Linux
 *
 * Copyright (C) 1997-2001  David Woodhouse
 * Copyright (C) 2001-2008  Stas Sergeev
 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <linux/input.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/mm.h>
#include "pcsp_input.h"
#include "pcsp.h"

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

static int index =;	/* Index 0-MAX */
static char *id =;	/* ID for this card */
static bool enable =;	/* Enable this card */
static bool nopcm;	/* Disable PCM capability of the driver */

module_param(index, int, 0444);
MODULE_PARM_DESC();
module_param(id, charp, 0444);
MODULE_PARM_DESC();
module_param(enable, bool, 0444);
MODULE_PARM_DESC();
module_param(nopcm, bool, 0444);
MODULE_PARM_DESC();

struct snd_pcsp pcsp_chip;

static int snd_pcsp_create(struct snd_card *card)
{}

static void pcsp_stop_beep(struct snd_pcsp *chip);

static void alsa_card_pcsp_free(struct snd_card *card)
{}

static int snd_card_pcsp_probe(int devnum, struct device *dev)
{}

static int alsa_card_pcsp_init(struct device *dev)
{}

static int pcsp_probe(struct platform_device *dev)
{}

static void pcsp_stop_beep(struct snd_pcsp *chip)
{}

static int pcsp_suspend(struct device *dev)
{}

static DEFINE_SIMPLE_DEV_PM_OPS(pcsp_pm, pcsp_suspend, NULL);

static void pcsp_shutdown(struct platform_device *dev)
{}

static struct platform_driver pcsp_platform_driver =;

static int __init pcsp_init(void)
{}

static void __exit pcsp_exit(void)
{}

module_init();
module_exit(pcsp_exit);