linux/sound/isa/msnd/msnd.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*********************************************************************
 *
 * 2002/06/30 Karsten Wiese:
 *	removed kernel-version dependencies.
 *	ripped from linux kernel 2.4.18 (OSS Implementation) by me.
 *	In the OSS Version, this file is compiled to a separate MODULE,
 *	that is used by the pinnacle and the classic driver.
 *	since there is no classic driver for alsa yet (i dont have a classic
 *	& writing one blindfold is difficult) this file's object is statically
 *	linked into the pinnacle-driver-module for now.	look for the string
 *		"uncomment this to make this a module again"
 *	to do guess what.
 *
 * the following is a copy of the 2.4.18 OSS FREE file-heading comment:
 *
 * msnd.c - Driver Base
 *
 * Turtle Beach MultiSound Sound Card Driver for Linux
 *
 * Copyright (C) 1998 Andrew Veliath
 *
 ********************************************************************/

#include <linux/kernel.h>
#include <linux/sched/signal.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/fs.h>
#include <linux/delay.h>
#include <linux/module.h>

#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>

#include "msnd.h"

#define LOGNAME


void snd_msnd_init_queue(void __iomem *base, int start, int size)
{}
EXPORT_SYMBOL();

static int snd_msnd_wait_TXDE(struct snd_msnd *dev)
{}

static int snd_msnd_wait_HC0(struct snd_msnd *dev)
{}

int snd_msnd_send_dsp_cmd(struct snd_msnd *dev, u8 cmd)
{}
EXPORT_SYMBOL();

int snd_msnd_send_word(struct snd_msnd *dev, unsigned char high,
		   unsigned char mid, unsigned char low)
{}
EXPORT_SYMBOL();

int snd_msnd_upload_host(struct snd_msnd *dev, const u8 *bin, int len)
{}
EXPORT_SYMBOL();

int snd_msnd_enable_irq(struct snd_msnd *dev)
{}
EXPORT_SYMBOL();

int snd_msnd_disable_irq(struct snd_msnd *dev)
{}
EXPORT_SYMBOL();

static inline long get_play_delay_jiffies(struct snd_msnd *chip, long size)
{}

static void snd_msnd_dsp_write_flush(struct snd_msnd *chip)
{}

void snd_msnd_dsp_halt(struct snd_msnd *chip, struct file *file)
{}
EXPORT_SYMBOL();


int snd_msnd_DARQ(struct snd_msnd *chip, int bank)
{}
EXPORT_SYMBOL();

int snd_msnd_DAPQ(struct snd_msnd *chip, int start)
{}
EXPORT_SYMBOL();

static void snd_msnd_play_reset_queue(struct snd_msnd *chip,
				      unsigned int pcm_periods,
				      unsigned int pcm_count)
{}

static void snd_msnd_capture_reset_queue(struct snd_msnd *chip,
					 unsigned int pcm_periods,
					 unsigned int pcm_count)
{}

static const struct snd_pcm_hardware snd_msnd_playback =;

static const struct snd_pcm_hardware snd_msnd_capture =;


static int snd_msnd_playback_open(struct snd_pcm_substream *substream)
{}

static int snd_msnd_playback_close(struct snd_pcm_substream *substream)
{}


static int snd_msnd_playback_hw_params(struct snd_pcm_substream *substream,
					struct snd_pcm_hw_params *params)
{}

static int snd_msnd_playback_prepare(struct snd_pcm_substream *substream)
{}

static int snd_msnd_playback_trigger(struct snd_pcm_substream *substream,
				     int cmd)
{}

static snd_pcm_uframes_t
snd_msnd_playback_pointer(struct snd_pcm_substream *substream)
{}


static const struct snd_pcm_ops snd_msnd_playback_ops =;

static int snd_msnd_capture_open(struct snd_pcm_substream *substream)
{}

static int snd_msnd_capture_close(struct snd_pcm_substream *substream)
{}

static int snd_msnd_capture_prepare(struct snd_pcm_substream *substream)
{}

static int snd_msnd_capture_trigger(struct snd_pcm_substream *substream,
				    int cmd)
{}


static snd_pcm_uframes_t
snd_msnd_capture_pointer(struct snd_pcm_substream *substream)
{}


static int snd_msnd_capture_hw_params(struct snd_pcm_substream *substream,
					struct snd_pcm_hw_params *params)
{}


static const struct snd_pcm_ops snd_msnd_capture_ops =;


int snd_msnd_pcm(struct snd_card *card, int device)
{}
EXPORT_SYMBOL();

MODULE_DESCRIPTION();
MODULE_LICENSE();