linux/sound/usb/line6/capture.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Line 6 Linux USB driver
 *
 * Copyright (C) 2004-2010 Markus Grabner ([email protected])
 */

#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>

#include "capture.h"
#include "driver.h"
#include "pcm.h"

/*
	Find a free URB and submit it.
	must be called in line6pcm->in.lock context
*/
static int submit_audio_in_urb(struct snd_line6_pcm *line6pcm)
{}

/*
	Submit all currently available capture URBs.
	must be called in line6pcm->in.lock context
*/
int line6_submit_audio_in_all_urbs(struct snd_line6_pcm *line6pcm)
{}

/*
	Copy data into ALSA capture buffer.
*/
void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize)
{}

void line6_capture_check_period(struct snd_line6_pcm *line6pcm, int length)
{}

/*
 * Callback for completed capture URB.
 */
static void audio_in_callback(struct urb *urb)
{}

/* open capture callback */
static int snd_line6_capture_open(struct snd_pcm_substream *substream)
{}

/* close capture callback */
static int snd_line6_capture_close(struct snd_pcm_substream *substream)
{}

/* capture operators */
const struct snd_pcm_ops snd_line6_capture_ops =;

int line6_create_audio_in_urbs(struct snd_line6_pcm *line6pcm)
{}