#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)
{ … }