Blame view

kernel/linux-rt-4.4.41/sound/arm/pxa2xx-pcm.h 828 Bytes
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  /*
   * linux/sound/arm/pxa2xx-pcm.h -- ALSA PCM interface for the Intel PXA2xx chip
   *
   * Author:	Nicolas Pitre
   * Created:	Nov 30, 2004
   * Copyright:	MontaVista Software, Inc.
   *
   * 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.
   */
  
  struct pxa2xx_runtime_data {
  	int dma_ch;
  	struct snd_dmaengine_dai_dma_data *params;
  };
  
  struct pxa2xx_pcm_client {
  	struct snd_dmaengine_dai_dma_data *playback_params;
  	struct snd_dmaengine_dai_dma_data *capture_params;
  	int (*startup)(struct snd_pcm_substream *);
  	void (*shutdown)(struct snd_pcm_substream *);
  	int (*prepare)(struct snd_pcm_substream *);
  };
  
  extern int pxa2xx_pcm_new(struct snd_card *, struct pxa2xx_pcm_client *, struct snd_pcm **);