pxa2xx-pcm.c (7fbb8759eff9a348efa5f352ffaa51c364837c4b) pxa2xx-pcm.c (958e792c7c8f06a9e666adb0ed94fff2cf90156f)
1/*
2 * linux/sound/arm/pxa2xx-pcm.c -- ALSA PCM interface for the Intel PXA2xx chip
3 *
4 * Author: Nicolas Pitre
5 * Created: Nov 30, 2004
6 * Copyright: (C) 2004 MontaVista Software, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 55 unchanged lines hidden (view full) ---

64 if (prtd->dma_ch) {
65 pxa_free_dma(prtd->dma_ch);
66 prtd->dma_ch = 0;
67 }
68
69 return 0;
70}
71
1/*
2 * linux/sound/arm/pxa2xx-pcm.c -- ALSA PCM interface for the Intel PXA2xx chip
3 *
4 * Author: Nicolas Pitre
5 * Created: Nov 30, 2004
6 * Copyright: (C) 2004 MontaVista Software, Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 55 unchanged lines hidden (view full) ---

64 if (prtd->dma_ch) {
65 pxa_free_dma(prtd->dma_ch);
66 prtd->dma_ch = 0;
67 }
68
69 return 0;
70}
71
72struct snd_pcm_ops pxa2xx_pcm_ops = {
72static struct snd_pcm_ops pxa2xx_pcm_ops = {
73 .open = __pxa2xx_pcm_open,
74 .close = __pxa2xx_pcm_close,
75 .ioctl = snd_pcm_lib_ioctl,
76 .hw_params = pxa2xx_pcm_hw_params,
77 .hw_free = pxa2xx_pcm_hw_free,
78 .prepare = __pxa2xx_pcm_prepare,
79 .trigger = pxa2xx_pcm_trigger,
80 .pointer = pxa2xx_pcm_pointer,

--- 32 unchanged lines hidden (view full) ---

113struct snd_soc_platform pxa2xx_soc_platform = {
114 .name = "pxa2xx-audio",
115 .pcm_ops = &pxa2xx_pcm_ops,
116 .pcm_new = pxa2xx_soc_pcm_new,
117 .pcm_free = pxa2xx_pcm_free_dma_buffers,
118};
119EXPORT_SYMBOL_GPL(pxa2xx_soc_platform);
120
73 .open = __pxa2xx_pcm_open,
74 .close = __pxa2xx_pcm_close,
75 .ioctl = snd_pcm_lib_ioctl,
76 .hw_params = pxa2xx_pcm_hw_params,
77 .hw_free = pxa2xx_pcm_hw_free,
78 .prepare = __pxa2xx_pcm_prepare,
79 .trigger = pxa2xx_pcm_trigger,
80 .pointer = pxa2xx_pcm_pointer,

--- 32 unchanged lines hidden (view full) ---

113struct snd_soc_platform pxa2xx_soc_platform = {
114 .name = "pxa2xx-audio",
115 .pcm_ops = &pxa2xx_pcm_ops,
116 .pcm_new = pxa2xx_soc_pcm_new,
117 .pcm_free = pxa2xx_pcm_free_dma_buffers,
118};
119EXPORT_SYMBOL_GPL(pxa2xx_soc_platform);
120
121static int __devinit pxa2xx_soc_platform_init(void)
122{
123 return snd_soc_register_platform(&pxa2xx_soc_platform);
124}
125module_init(pxa2xx_soc_platform_init);
126
127static void __exit pxa2xx_soc_platform_exit(void)
128{
129 snd_soc_unregister_platform(&pxa2xx_soc_platform);
130}
131module_exit(pxa2xx_soc_platform_exit);
132
121MODULE_AUTHOR("Nicolas Pitre");
122MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module");
123MODULE_LICENSE("GPL");
133MODULE_AUTHOR("Nicolas Pitre");
134MODULE_DESCRIPTION("Intel PXA2xx PCM DMA module");
135MODULE_LICENSE("GPL");