Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 74fca6a42863ffacaf7ba6f1936a9f228950f657 authored by Linus Torvalds on 09 September 2009, 22:13:59 UTC
Linux 2.6.31
Tip revision: 74fca6a
s6000-pcm.h
/*
 * ALSA PCM interface for the Stretch s6000 family
 *
 * Author:      Daniel Gloeckner, <dg@emlix.com>
 * Copyright:   (C) 2009 emlix GmbH <info@emlix.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef _S6000_PCM_H
#define _S6000_PCM_H

struct snd_soc_dai;
struct snd_pcm_substream;

struct s6000_pcm_dma_params {
	unsigned int (*check_xrun)(struct snd_soc_dai *cpu_dai);
	int (*trigger)(struct snd_pcm_substream *substream, int cmd, int after);
	dma_addr_t sif_in;
	dma_addr_t sif_out;
	u32 dma_in;
	u32 dma_out;
	int irq;
	int same_rate;

	spinlock_t lock;
	int in_use;
	int rate;
};

extern struct snd_soc_platform s6000_soc_platform;

#endif
back to top