blob: 28cc3a61b63505fe4d03bf35181a700bf3398782 [file] [log] [blame]
Jarkko Nikula2e747962008-04-25 13:55:19 +02001/*
2 * omap-pcm.c -- ALSA PCM interface for the OMAP SoC
3 *
4 * Copyright (C) 2008 Nokia Corporation
5 *
Jarkko Nikulab08f7a62009-04-17 14:42:26 +03006 * Contact: Jarkko Nikula <jhnikula@gmail.com>
Peter Ujfalusi1c7687b2011-05-03 18:14:43 +03007 * Peter Ujfalusi <peter.ujfalusi@ti.com>
Jarkko Nikula2e747962008-04-25 13:55:19 +02008 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * version 2 as published by the Free Software Foundation.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 *
23 */
24
25#include <linux/dma-mapping.h>
Tejun Heo5a0e3ad2010-03-24 17:04:11 +090026#include <linux/slab.h>
Jarkko Nikula2e747962008-04-25 13:55:19 +020027#include <sound/core.h>
28#include <sound/pcm.h>
29#include <sound/pcm_params.h>
30#include <sound/soc.h>
31
Tony Lindgrence491cf2009-10-20 09:40:47 -070032#include <plat/dma.h>
Jarkko Nikula2e747962008-04-25 13:55:19 +020033#include "omap-pcm.h"
34
35static const struct snd_pcm_hardware omap_pcm_hardware = {
36 .info = SNDRV_PCM_INFO_MMAP |
37 SNDRV_PCM_INFO_MMAP_VALID |
38 SNDRV_PCM_INFO_INTERLEAVED |
39 SNDRV_PCM_INFO_PAUSE |
Peter Ujfalusib4173822011-05-12 13:04:55 +030040 SNDRV_PCM_INFO_RESUME |
41 SNDRV_PCM_INFO_NO_PERIOD_WAKEUP,
Misael Lopez Cruze17dd322010-02-22 15:09:19 -060042 .formats = SNDRV_PCM_FMTBIT_S16_LE |
43 SNDRV_PCM_FMTBIT_S32_LE,
Jarkko Nikula2e747962008-04-25 13:55:19 +020044 .period_bytes_min = 32,
45 .period_bytes_max = 64 * 1024,
46 .periods_min = 2,
47 .periods_max = 255,
48 .buffer_bytes_max = 128 * 1024,
49};
50
51struct omap_runtime_data {
52 spinlock_t lock;
53 struct omap_pcm_dma_data *dma_data;
54 int dma_ch;
55 int period_index;
56};
57
58static void omap_pcm_dma_irq(int ch, u16 stat, void *data)
59{
60 struct snd_pcm_substream *substream = data;
61 struct snd_pcm_runtime *runtime = substream->runtime;
62 struct omap_runtime_data *prtd = runtime->private_data;
63 unsigned long flags;
64
Janusz Krzysztofikb5442a72010-03-28 22:29:29 +020065 if ((cpu_is_omap1510())) {
Jarkko Nikula2e747962008-04-25 13:55:19 +020066 /*
Janusz Krzysztofik64844a62009-08-10 10:50:04 +020067 * OMAP1510 doesn't fully support DMA progress counter
68 * and there is no software emulation implemented yet,
Janusz Krzysztofikb5442a72010-03-28 22:29:29 +020069 * so have to maintain our own progress counters
Janusz Krzysztofik64844a62009-08-10 10:50:04 +020070 * that can be used by omap_pcm_pointer() instead.
Jarkko Nikula2e747962008-04-25 13:55:19 +020071 */
72 spin_lock_irqsave(&prtd->lock, flags);
Janusz Krzysztofik471e3de2009-08-11 21:44:29 +020073 if ((stat == OMAP_DMA_LAST_IRQ) &&
74 (prtd->period_index == runtime->periods - 1)) {
75 /* we are in sync, do nothing */
76 spin_unlock_irqrestore(&prtd->lock, flags);
77 return;
78 }
Jarkko Nikula2e747962008-04-25 13:55:19 +020079 if (prtd->period_index >= 0) {
Janusz Krzysztofik471e3de2009-08-11 21:44:29 +020080 if (stat & OMAP_DMA_BLOCK_IRQ) {
81 /* end of buffer reached, loop back */
82 prtd->period_index = 0;
83 } else if (stat & OMAP_DMA_LAST_IRQ) {
84 /* update the counter for the last period */
85 prtd->period_index = runtime->periods - 1;
86 } else if (++prtd->period_index >= runtime->periods) {
87 /* end of buffer missed? loop back */
Jarkko Nikula2e747962008-04-25 13:55:19 +020088 prtd->period_index = 0;
Jarkko Nikula2e747962008-04-25 13:55:19 +020089 }
90 }
91 spin_unlock_irqrestore(&prtd->lock, flags);
92 }
93
94 snd_pcm_period_elapsed(substream);
95}
96
97/* this may get called several times by oss emulation */
98static int omap_pcm_hw_params(struct snd_pcm_substream *substream,
99 struct snd_pcm_hw_params *params)
100{
101 struct snd_pcm_runtime *runtime = substream->runtime;
102 struct snd_soc_pcm_runtime *rtd = substream->private_data;
103 struct omap_runtime_data *prtd = runtime->private_data;
Daniel Mack5f712b22010-03-22 10:11:15 +0100104 struct omap_pcm_dma_data *dma_data;
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000105
Jarkko Nikula2e747962008-04-25 13:55:19 +0200106 int err = 0;
107
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000108 dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
Daniel Mack5f712b22010-03-22 10:11:15 +0100109
Joonyoung Shim1b4246a2009-04-22 10:56:50 +0900110 /* return if this is a bufferless transfer e.g.
111 * codec <--> BT codec or GSM modem -- lg FIXME */
Jarkko Nikula2e747962008-04-25 13:55:19 +0200112 if (!dma_data)
Joonyoung Shim1b4246a2009-04-22 10:56:50 +0900113 return 0;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200114
115 snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
116 runtime->dma_bytes = params_buffer_bytes(params);
117
118 if (prtd->dma_data)
119 return 0;
120 prtd->dma_data = dma_data;
121 err = omap_request_dma(dma_data->dma_req, dma_data->name,
122 omap_pcm_dma_irq, substream, &prtd->dma_ch);
Janusz Krzysztofik64844a62009-08-10 10:50:04 +0200123 if (!err) {
Jarkko Nikula2e747962008-04-25 13:55:19 +0200124 /*
125 * Link channel with itself so DMA doesn't need any
126 * reprogramming while looping the buffer
127 */
128 omap_dma_link_lch(prtd->dma_ch, prtd->dma_ch);
129 }
130
131 return err;
132}
133
134static int omap_pcm_hw_free(struct snd_pcm_substream *substream)
135{
136 struct snd_pcm_runtime *runtime = substream->runtime;
137 struct omap_runtime_data *prtd = runtime->private_data;
138
139 if (prtd->dma_data == NULL)
140 return 0;
141
Janusz Krzysztofik64844a62009-08-10 10:50:04 +0200142 omap_dma_unlink_lch(prtd->dma_ch, prtd->dma_ch);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200143 omap_free_dma(prtd->dma_ch);
144 prtd->dma_data = NULL;
145
146 snd_pcm_set_runtime_buffer(substream, NULL);
147
148 return 0;
149}
150
151static int omap_pcm_prepare(struct snd_pcm_substream *substream)
152{
153 struct snd_pcm_runtime *runtime = substream->runtime;
154 struct omap_runtime_data *prtd = runtime->private_data;
155 struct omap_pcm_dma_data *dma_data = prtd->dma_data;
156 struct omap_dma_channel_params dma_params;
Misael Lopez Cruze17dd322010-02-22 15:09:19 -0600157 int bytes;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200158
Joonyoung Shim1b4246a2009-04-22 10:56:50 +0900159 /* return if this is a bufferless transfer e.g.
160 * codec <--> BT codec or GSM modem -- lg FIXME */
161 if (!prtd->dma_data)
162 return 0;
163
Jarkko Nikula2e747962008-04-25 13:55:19 +0200164 memset(&dma_params, 0, sizeof(dma_params));
Misael Lopez Cruze17dd322010-02-22 15:09:19 -0600165 dma_params.data_type = dma_data->data_type;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200166 dma_params.trigger = dma_data->dma_req;
Eduardo Valentincaebc0c2009-08-20 16:18:25 +0300167 dma_params.sync_mode = dma_data->sync_mode;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200168 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
169 dma_params.src_amode = OMAP_DMA_AMODE_POST_INC;
170 dma_params.dst_amode = OMAP_DMA_AMODE_CONSTANT;
171 dma_params.src_or_dst_synch = OMAP_DMA_DST_SYNC;
172 dma_params.src_start = runtime->dma_addr;
173 dma_params.dst_start = dma_data->port_addr;
Arun KS9d374842008-09-30 15:35:16 +0530174 dma_params.dst_port = OMAP_DMA_PORT_MPUI;
Misael Lopez Cruze17dd322010-02-22 15:09:19 -0600175 dma_params.dst_fi = dma_data->packet_size;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200176 } else {
177 dma_params.src_amode = OMAP_DMA_AMODE_CONSTANT;
178 dma_params.dst_amode = OMAP_DMA_AMODE_POST_INC;
179 dma_params.src_or_dst_synch = OMAP_DMA_SRC_SYNC;
180 dma_params.src_start = dma_data->port_addr;
181 dma_params.dst_start = runtime->dma_addr;
Arun KS9d374842008-09-30 15:35:16 +0530182 dma_params.src_port = OMAP_DMA_PORT_MPUI;
Misael Lopez Cruze17dd322010-02-22 15:09:19 -0600183 dma_params.src_fi = dma_data->packet_size;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200184 }
185 /*
186 * Set DMA transfer frame size equal to ALSA period size and frame
187 * count as no. of ALSA periods. Then with DMA frame interrupt enabled,
188 * we can transfer the whole ALSA buffer with single DMA transfer but
189 * still can get an interrupt at each period bounary
190 */
Misael Lopez Cruze17dd322010-02-22 15:09:19 -0600191 bytes = snd_pcm_lib_period_bytes(substream);
192 dma_params.elem_count = bytes >> dma_data->data_type;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200193 dma_params.frame_count = runtime->periods;
194 omap_set_dma_params(prtd->dma_ch, &dma_params);
195
Janusz Krzysztofikb5442a72010-03-28 22:29:29 +0200196 if ((cpu_is_omap1510()))
Janusz Krzysztofik471e3de2009-08-11 21:44:29 +0200197 omap_enable_dma_irq(prtd->dma_ch, OMAP_DMA_FRAME_IRQ |
198 OMAP_DMA_LAST_IRQ | OMAP_DMA_BLOCK_IRQ);
Peter Ujfalusib4173822011-05-12 13:04:55 +0300199 else if (!substream->runtime->no_period_wakeup)
Janusz Krzysztofik471e3de2009-08-11 21:44:29 +0200200 omap_enable_dma_irq(prtd->dma_ch, OMAP_DMA_FRAME_IRQ);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200201
Janusz Krzysztofik4d187fb2009-10-21 23:10:03 +0200202 if (!(cpu_class_is_omap1())) {
203 omap_set_dma_src_burst_mode(prtd->dma_ch,
204 OMAP_DMA_DATA_BURST_16);
205 omap_set_dma_dest_burst_mode(prtd->dma_ch,
206 OMAP_DMA_DATA_BURST_16);
207 }
Eduardo Valentin9599d482009-08-20 16:18:21 +0300208
Jarkko Nikula2e747962008-04-25 13:55:19 +0200209 return 0;
210}
211
212static int omap_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
213{
214 struct snd_pcm_runtime *runtime = substream->runtime;
215 struct omap_runtime_data *prtd = runtime->private_data;
Eduardo Valentincaebc0c2009-08-20 16:18:25 +0300216 struct omap_pcm_dma_data *dma_data = prtd->dma_data;
Eero Nurkkala21dff432009-02-02 14:20:46 +0200217 unsigned long flags;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200218 int ret = 0;
219
Eero Nurkkala21dff432009-02-02 14:20:46 +0200220 spin_lock_irqsave(&prtd->lock, flags);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200221 switch (cmd) {
222 case SNDRV_PCM_TRIGGER_START:
223 case SNDRV_PCM_TRIGGER_RESUME:
224 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
225 prtd->period_index = 0;
Eduardo Valentincaebc0c2009-08-20 16:18:25 +0300226 /* Configure McBSP internal buffer usage */
227 if (dma_data->set_threshold)
228 dma_data->set_threshold(substream);
229
Jarkko Nikula2e747962008-04-25 13:55:19 +0200230 omap_start_dma(prtd->dma_ch);
231 break;
232
233 case SNDRV_PCM_TRIGGER_STOP:
234 case SNDRV_PCM_TRIGGER_SUSPEND:
235 case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
236 prtd->period_index = -1;
237 omap_stop_dma(prtd->dma_ch);
Liam Girdwood25ec3e82011-02-03 18:17:34 +0000238 /* Since we are using self linking, there is a
239 chance that the DMA as re-enabled the channel
240 just after disabling it */
241 while (omap_get_dma_active_status(prtd->dma_ch))
242 omap_stop_dma(prtd->dma_ch);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200243 break;
244 default:
245 ret = -EINVAL;
246 }
Eero Nurkkala21dff432009-02-02 14:20:46 +0200247 spin_unlock_irqrestore(&prtd->lock, flags);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200248
249 return ret;
250}
251
252static snd_pcm_uframes_t omap_pcm_pointer(struct snd_pcm_substream *substream)
253{
254 struct snd_pcm_runtime *runtime = substream->runtime;
255 struct omap_runtime_data *prtd = runtime->private_data;
256 dma_addr_t ptr;
257 snd_pcm_uframes_t offset;
258
Janusz Krzysztofikb5442a72010-03-28 22:29:29 +0200259 if (cpu_is_omap1510()) {
260 offset = prtd->period_index * runtime->period_size;
261 } else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
Jarkko Nikula2e747962008-04-25 13:55:19 +0200262 ptr = omap_get_dma_dst_pos(prtd->dma_ch);
Janusz Krzysztofik1bdd7412009-06-28 00:21:05 +0200263 offset = bytes_to_frames(runtime, ptr - runtime->dma_addr);
Janusz Krzysztofikb5442a72010-03-28 22:29:29 +0200264 } else {
Janusz Krzysztofik1bdd7412009-06-28 00:21:05 +0200265 ptr = omap_get_dma_src_pos(prtd->dma_ch);
266 offset = bytes_to_frames(runtime, ptr - runtime->dma_addr);
Janusz Krzysztofikb5442a72010-03-28 22:29:29 +0200267 }
Jarkko Nikula2e747962008-04-25 13:55:19 +0200268
Jarkko Nikula2e747962008-04-25 13:55:19 +0200269 if (offset >= runtime->buffer_size)
270 offset = 0;
271
272 return offset;
273}
274
275static int omap_pcm_open(struct snd_pcm_substream *substream)
276{
277 struct snd_pcm_runtime *runtime = substream->runtime;
278 struct omap_runtime_data *prtd;
279 int ret;
280
281 snd_soc_set_runtime_hwparams(substream, &omap_pcm_hardware);
282
283 /* Ensure that buffer size is a multiple of period size */
284 ret = snd_pcm_hw_constraint_integer(runtime,
285 SNDRV_PCM_HW_PARAM_PERIODS);
286 if (ret < 0)
287 goto out;
Liam Girdwood04ecb622011-02-03 18:15:17 +0000288 if (cpu_is_omap44xx()) {
289 /* ABE needs a step of 24 * 4 data bits, and HDMI 32 * 4
290 * Ensure buffer size satisfies both constraints.
291 */
292 ret = snd_pcm_hw_constraint_step(runtime, 0,
293 SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 384);
294 if (ret < 0)
295 goto out;
296 }
Jarkko Nikula2e747962008-04-25 13:55:19 +0200297
Stanley Miao19b3f312008-12-19 22:08:22 +0800298 prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200299 if (prtd == NULL) {
300 ret = -ENOMEM;
301 goto out;
302 }
303 spin_lock_init(&prtd->lock);
304 runtime->private_data = prtd;
305
306out:
307 return ret;
308}
309
310static int omap_pcm_close(struct snd_pcm_substream *substream)
311{
312 struct snd_pcm_runtime *runtime = substream->runtime;
313
314 kfree(runtime->private_data);
315 return 0;
316}
317
318static int omap_pcm_mmap(struct snd_pcm_substream *substream,
319 struct vm_area_struct *vma)
320{
321 struct snd_pcm_runtime *runtime = substream->runtime;
322
323 return dma_mmap_writecombine(substream->pcm->card->dev, vma,
324 runtime->dma_area,
325 runtime->dma_addr,
326 runtime->dma_bytes);
327}
328
Mark Brownb2a19d02009-01-17 19:14:26 +0000329static struct snd_pcm_ops omap_pcm_ops = {
Jarkko Nikula2e747962008-04-25 13:55:19 +0200330 .open = omap_pcm_open,
331 .close = omap_pcm_close,
332 .ioctl = snd_pcm_lib_ioctl,
333 .hw_params = omap_pcm_hw_params,
334 .hw_free = omap_pcm_hw_free,
335 .prepare = omap_pcm_prepare,
336 .trigger = omap_pcm_trigger,
337 .pointer = omap_pcm_pointer,
338 .mmap = omap_pcm_mmap,
339};
340
Eduardo Valentina152ff22009-08-20 16:18:22 +0300341static u64 omap_pcm_dmamask = DMA_BIT_MASK(64);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200342
343static int omap_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
344 int stream)
345{
346 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
347 struct snd_dma_buffer *buf = &substream->dma_buffer;
348 size_t size = omap_pcm_hardware.buffer_bytes_max;
349
350 buf->dev.type = SNDRV_DMA_TYPE_DEV;
351 buf->dev.dev = pcm->card->dev;
352 buf->private_data = NULL;
353 buf->area = dma_alloc_writecombine(pcm->card->dev, size,
354 &buf->addr, GFP_KERNEL);
355 if (!buf->area)
356 return -ENOMEM;
357
358 buf->bytes = size;
359 return 0;
360}
361
362static void omap_pcm_free_dma_buffers(struct snd_pcm *pcm)
363{
364 struct snd_pcm_substream *substream;
365 struct snd_dma_buffer *buf;
366 int stream;
367
368 for (stream = 0; stream < 2; stream++) {
369 substream = pcm->streams[stream].substream;
370 if (!substream)
371 continue;
372
373 buf = &substream->dma_buffer;
374 if (!buf->area)
375 continue;
376
377 dma_free_writecombine(pcm->card->dev, buf->bytes,
378 buf->area, buf->addr);
379 buf->area = NULL;
380 }
381}
382
Liam Girdwoodc6ac9842011-02-04 22:12:30 +0000383static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
Jarkko Nikula2e747962008-04-25 13:55:19 +0200384{
Liam Girdwoodc6ac9842011-02-04 22:12:30 +0000385 struct snd_card *card = rtd->card->snd_card;
386 struct snd_soc_dai *dai = rtd->cpu_dai;
387 struct snd_pcm *pcm = rtd->pcm;
Jarkko Nikula2e747962008-04-25 13:55:19 +0200388 int ret = 0;
389
390 if (!card->dev->dma_mask)
391 card->dev->dma_mask = &omap_pcm_dmamask;
392 if (!card->dev->coherent_dma_mask)
Eduardo Valentina152ff22009-08-20 16:18:22 +0300393 card->dev->coherent_dma_mask = DMA_BIT_MASK(64);
Jarkko Nikula2e747962008-04-25 13:55:19 +0200394
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000395 if (dai->driver->playback.channels_min) {
Jarkko Nikula2e747962008-04-25 13:55:19 +0200396 ret = omap_pcm_preallocate_dma_buffer(pcm,
397 SNDRV_PCM_STREAM_PLAYBACK);
398 if (ret)
399 goto out;
400 }
401
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000402 if (dai->driver->capture.channels_min) {
Jarkko Nikula2e747962008-04-25 13:55:19 +0200403 ret = omap_pcm_preallocate_dma_buffer(pcm,
404 SNDRV_PCM_STREAM_CAPTURE);
405 if (ret)
406 goto out;
407 }
408
409out:
410 return ret;
411}
412
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000413static struct snd_soc_platform_driver omap_soc_platform = {
414 .ops = &omap_pcm_ops,
Jarkko Nikula2e747962008-04-25 13:55:19 +0200415 .pcm_new = omap_pcm_new,
416 .pcm_free = omap_pcm_free_dma_buffers,
417};
Jarkko Nikula2e747962008-04-25 13:55:19 +0200418
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000419static __devinit int omap_pcm_probe(struct platform_device *pdev)
Mark Brown958e7922008-12-03 19:58:17 +0000420{
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000421 return snd_soc_register_platform(&pdev->dev,
422 &omap_soc_platform);
Mark Brown958e7922008-12-03 19:58:17 +0000423}
Mark Brown958e7922008-12-03 19:58:17 +0000424
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000425static int __devexit omap_pcm_remove(struct platform_device *pdev)
Mark Brown958e7922008-12-03 19:58:17 +0000426{
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000427 snd_soc_unregister_platform(&pdev->dev);
428 return 0;
Mark Brown958e7922008-12-03 19:58:17 +0000429}
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000430
431static struct platform_driver omap_pcm_driver = {
432 .driver = {
433 .name = "omap-pcm-audio",
434 .owner = THIS_MODULE,
435 },
436
437 .probe = omap_pcm_probe,
438 .remove = __devexit_p(omap_pcm_remove),
439};
440
441static int __init snd_omap_pcm_init(void)
442{
443 return platform_driver_register(&omap_pcm_driver);
444}
445module_init(snd_omap_pcm_init);
446
447static void __exit snd_omap_pcm_exit(void)
448{
449 platform_driver_unregister(&omap_pcm_driver);
450}
451module_exit(snd_omap_pcm_exit);
Mark Brown958e7922008-12-03 19:58:17 +0000452
Jarkko Nikulab08f7a62009-04-17 14:42:26 +0300453MODULE_AUTHOR("Jarkko Nikula <jhnikula@gmail.com>");
Jarkko Nikula2e747962008-04-25 13:55:19 +0200454MODULE_DESCRIPTION("OMAP PCM DMA module");
455MODULE_LICENSE("GPL");