linux/drivers/media/pci/cx18/cx18-alsa-pcm.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  ALSA PCM device for the
 *  ALSA interface to cx18 PCM capture streams
 *
 *  Copyright (C) 2009  Andy Walls <[email protected]>
 *  Copyright (C) 2009  Devin Heitmueller <[email protected]>
 *
 *  Portions of this work were sponsored by ONELAN Limited.
 */

#include <linux/init.h>
#include <linux/kernel.h>

#include <media/v4l2-device.h>

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

#include "cx18-driver.h"
#include "cx18-queue.h"
#include "cx18-streams.h"
#include "cx18-fileops.h"
#include "cx18-alsa.h"
#include "cx18-alsa-pcm.h"

static unsigned int pcm_debug;
module_param(pcm_debug, int, 0644);
MODULE_PARM_DESC();

#define dprintk(fmt, arg...)

static const struct snd_pcm_hardware snd_cx18_hw_capture =;

void cx18_alsa_announce_pcm_data(struct snd_cx18_card *cxsc, u8 *pcm_data,
				 size_t num_bytes)
{}

static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream)
{}

static int snd_cx18_pcm_capture_close(struct snd_pcm_substream *substream)
{}

static int snd_cx18_pcm_prepare(struct snd_pcm_substream *substream)
{}

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

static
snd_pcm_uframes_t snd_cx18_pcm_pointer(struct snd_pcm_substream *substream)
{}

static const struct snd_pcm_ops snd_cx18_pcm_capture_ops =;

int snd_cx18_pcm_create(struct snd_cx18_card *cxsc)
{}