/* Called whenever a capture is started or stopped. Must be defined, but there's nothing we want to do here  */
static int snd_card_saa7134_capture_trigger(struct snd_pcm_substream *substream, int cmd)
/* Called whenever a capture is started or stopped. Must be defined, but there's nothing we want to do here  */
static int snd_card_saa7134_capture_trigger(struct snd_pcm_substream *substream, int cmd)
{
	struct snd_pcm_runtime *runtime = substream->runtime;
	snd_card_saa7134_pcm_t *pcm = runtime->private_data;
	struct saa7134_dev *dev=pcm->dev;
	int err = 0;
	spin_lock(&dev->slock);
	if (cmd == SNDRV_PCM_TRIGGER_START) {
		saa7134_dma_start(dev);
	} else if (cmd == SNDRV_PCM_TRIGGER_STOP) {
		saa7134_dma_stop(dev);
	} else {
		err = -EINVAL;
	}
	spin_unlock(&dev->slock);
	return err;
}