54 |
}; |
}; |
55 |
|
|
56 |
/* open callback */ |
/* open callback */ |
57 |
static int snd_vortex_pcm_open(snd_pcm_substream_t * substream) { |
static int snd_vortex_pcm_open(snd_pcm_substream_t *substream) { |
58 |
chip_t *chip = snd_pcm_substream_chip(substream); |
chip_t *chip = snd_pcm_substream_chip(substream); |
59 |
snd_pcm_runtime_t *runtime = substream->runtime; |
snd_pcm_runtime_t *runtime = substream->runtime; |
60 |
int dma; |
int dma; |
78 |
} |
} |
79 |
|
|
80 |
/* close callback */ |
/* close callback */ |
81 |
static int snd_vortex_pcm_close(snd_pcm_substream_t * substream) { |
static int snd_vortex_pcm_close(snd_pcm_substream_t *substream) { |
82 |
//vortex_t *chip = snd_pcm_substream_chip(substream); |
//vortex_t *chip = snd_pcm_substream_chip(substream); |
83 |
dma_t *dma = (dma_t*)substream->runtime->private_data; |
dma_t *dma = (dma_t*)substream->runtime->private_data; |
84 |
|
|
91 |
} |
} |
92 |
|
|
93 |
/* hw_params callback */ |
/* hw_params callback */ |
94 |
static int snd_vortex_pcm_hw_params(snd_pcm_substream_t * substream, snd_pcm_hw_params_t * hw_params) { |
static int snd_vortex_pcm_hw_params(snd_pcm_substream_t *substream, snd_pcm_hw_params_t *hw_params) { |
95 |
chip_t *chip = snd_pcm_substream_chip(substream); |
chip_t *chip = snd_pcm_substream_chip(substream); |
96 |
snd_pcm_runtime_t *runtime = substream->runtime; |
snd_pcm_runtime_t *runtime = substream->runtime; |
97 |
dma_t *dma = (dma_t*)substream->runtime->private_data; |
dma_t *dma = (dma_t*)substream->runtime->private_data; |
254 |
*/ |
*/ |
255 |
|
|
256 |
/* create a pcm device */ |
/* create a pcm device */ |
257 |
int __devinit snd_vortex_new_pcm(vortex_t * chip, int idx, int nr) { |
int __devinit snd_vortex_new_pcm(vortex_t *chip, int idx, int nr) { |
258 |
snd_pcm_t *pcm; |
snd_pcm_t *pcm; |
259 |
int err; |
int err; |
260 |
|
|