| OLD | NEW |
| 1 /* sound/soc/s3c24xx/s3c2412-i2s.c | 1 /* sound/soc/samsung/s3c2412-i2s.c |
| 2 * | 2 * |
| 3 * ALSA Soc Audio Layer - S3C2412 I2S driver | 3 * ALSA Soc Audio Layer - S3C2412 I2S driver |
| 4 * | 4 * |
| 5 * Copyright (c) 2006 Wolfson Microelectronics PLC. | 5 * Copyright (c) 2006 Wolfson Microelectronics PLC. |
| 6 * Graeme Gregory graeme.gregory@wolfsonmicro.com | 6 * Graeme Gregory graeme.gregory@wolfsonmicro.com |
| 7 * linux@wolfsonmicro.com | 7 * linux@wolfsonmicro.com |
| 8 * | 8 * |
| 9 * Copyright (c) 2007, 2004-2005 Simtec Electronics | 9 * Copyright (c) 2007, 2004-2005 Simtec Electronics |
| 10 * http://armlinux.simtec.co.uk/ | 10 * http://armlinux.simtec.co.uk/ |
| 11 * Ben Dooks <ben@simtec.co.uk> | 11 * Ben Dooks <ben@simtec.co.uk> |
| 12 * | 12 * |
| 13 * This program is free software; you can redistribute it and/or modify it | 13 * This program is free software; you can redistribute it and/or modify it |
| 14 * under the terms of the GNU General Public License as published by the | 14 * under the terms of the GNU General Public License as published by the |
| 15 * Free Software Foundation; either version 2 of the License, or (at your | 15 * Free Software Foundation; either version 2 of the License, or (at your |
| 16 * option) any later version. | 16 * option) any later version. |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 #include <linux/init.h> | |
| 20 #include <linux/module.h> | |
| 21 #include <linux/device.h> | |
| 22 #include <linux/delay.h> | 19 #include <linux/delay.h> |
| 23 #include <linux/gpio.h> | 20 #include <linux/gpio.h> |
| 24 #include <linux/clk.h> | 21 #include <linux/clk.h> |
| 25 #include <linux/kernel.h> | |
| 26 #include <linux/io.h> | 22 #include <linux/io.h> |
| 27 | 23 |
| 28 #include <sound/core.h> | 24 #include <sound/soc.h> |
| 29 #include <sound/pcm.h> | |
| 30 #include <sound/pcm_params.h> | 25 #include <sound/pcm_params.h> |
| 31 #include <sound/initval.h> | |
| 32 #include <sound/soc.h> | |
| 33 #include <mach/hardware.h> | |
| 34 | 26 |
| 35 #include <mach/regs-gpio.h> | 27 #include <mach/regs-gpio.h> |
| 36 #include <mach/dma.h> | 28 #include <mach/dma.h> |
| 37 | 29 |
| 38 #include "s3c-dma.h" | 30 #include "dma.h" |
| 39 #include "regs-i2s-v2.h" | 31 #include "regs-i2s-v2.h" |
| 40 #include "s3c2412-i2s.h" | 32 #include "s3c2412-i2s.h" |
| 41 | 33 |
| 42 #define S3C2412_I2S_DEBUG 0 | |
| 43 | |
| 44 static struct s3c2410_dma_client s3c2412_dma_client_out = { | 34 static struct s3c2410_dma_client s3c2412_dma_client_out = { |
| 45 .name = "I2S PCM Stereo out" | 35 .name = "I2S PCM Stereo out" |
| 46 }; | 36 }; |
| 47 | 37 |
| 48 static struct s3c2410_dma_client s3c2412_dma_client_in = { | 38 static struct s3c2410_dma_client s3c2412_dma_client_in = { |
| 49 .name = "I2S PCM Stereo in" | 39 .name = "I2S PCM Stereo in" |
| 50 }; | 40 }; |
| 51 | 41 |
| 52 static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = { | 42 static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = { |
| 53 .client = &s3c2412_dma_client_out, | 43 .client = &s3c2412_dma_client_out, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 { | 193 { |
| 204 platform_driver_unregister(&s3c2412_iis_driver); | 194 platform_driver_unregister(&s3c2412_iis_driver); |
| 205 } | 195 } |
| 206 module_exit(s3c2412_i2s_exit); | 196 module_exit(s3c2412_i2s_exit); |
| 207 | 197 |
| 208 /* Module information */ | 198 /* Module information */ |
| 209 MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 199 MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
| 210 MODULE_DESCRIPTION("S3C2412 I2S SoC Interface"); | 200 MODULE_DESCRIPTION("S3C2412 I2S SoC Interface"); |
| 211 MODULE_LICENSE("GPL"); | 201 MODULE_LICENSE("GPL"); |
| 212 MODULE_ALIAS("platform:s3c2412-iis"); | 202 MODULE_ALIAS("platform:s3c2412-iis"); |
| OLD | NEW |