linux/sound/pci/ctxfi/ctpcm.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
 *
 * @File	ctpcm.c
 *
 * @Brief
 * This file contains the definition of the pcm device functions.
 *
 * @Author	Liu Chun
 * @Date 	Apr 2 2008
 */

#include "ctpcm.h"
#include "cttimer.h"
#include <linux/slab.h>
#include <sound/pcm.h>

/* Hardware descriptions for playback */
static const struct snd_pcm_hardware ct_pcm_playback_hw =;

static const struct snd_pcm_hardware ct_spdif_passthru_playback_hw =;

/* Hardware descriptions for capture */
static const struct snd_pcm_hardware ct_pcm_capture_hw =;

static void ct_atc_pcm_interrupt(struct ct_atc_pcm *atc_pcm)
{}

static void ct_atc_pcm_free_substream(struct snd_pcm_runtime *runtime)
{}

/* pcm playback operations */
static int ct_pcm_playback_open(struct snd_pcm_substream *substream)
{}

static int ct_pcm_playback_close(struct snd_pcm_substream *substream)
{}

static int ct_pcm_hw_params(struct snd_pcm_substream *substream,
				     struct snd_pcm_hw_params *hw_params)
{}

static int ct_pcm_hw_free(struct snd_pcm_substream *substream)
{}


static int ct_pcm_playback_prepare(struct snd_pcm_substream *substream)
{}

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

static snd_pcm_uframes_t
ct_pcm_playback_pointer(struct snd_pcm_substream *substream)
{}

/* pcm capture operations */
static int ct_pcm_capture_open(struct snd_pcm_substream *substream)
{}

static int ct_pcm_capture_close(struct snd_pcm_substream *substream)
{}

static int ct_pcm_capture_prepare(struct snd_pcm_substream *substream)
{}

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

static snd_pcm_uframes_t
ct_pcm_capture_pointer(struct snd_pcm_substream *substream)
{}

/* PCM operators for playback */
static const struct snd_pcm_ops ct_pcm_playback_ops =;

/* PCM operators for capture */
static const struct snd_pcm_ops ct_pcm_capture_ops =;

static const struct snd_pcm_chmap_elem surround_map[] =;

static const struct snd_pcm_chmap_elem clfe_map[] =;

static const struct snd_pcm_chmap_elem side_map[] =;

/* Create ALSA pcm device */
int ct_alsa_pcm_create(struct ct_atc *atc,
		       enum CTALSADEVS device,
		       const char *device_name)
{}