| OLD | NEW |
| 1 /* | 1 /* |
| 2 * s3c24xx-i2s.c -- ALSA Soc Audio Layer | 2 * s3c24xx-i2s.c -- ALSA Soc Audio Layer |
| 3 * | 3 * |
| 4 * (c) 2006 Wolfson Microelectronics PLC. | 4 * (c) 2006 Wolfson Microelectronics PLC. |
| 5 * Graeme Gregory graeme.gregory@wolfsonmicro.com or linux@wolfsonmicro.com | 5 * Graeme Gregory graeme.gregory@wolfsonmicro.com or linux@wolfsonmicro.com |
| 6 * | 6 * |
| 7 * Copyright 2004-2005 Simtec Electronics | 7 * Copyright 2004-2005 Simtec Electronics |
| 8 * http://armlinux.simtec.co.uk/ | 8 * http://armlinux.simtec.co.uk/ |
| 9 * Ben Dooks <ben@simtec.co.uk> | 9 * Ben Dooks <ben@simtec.co.uk> |
| 10 * | 10 * |
| 11 * This program is free software; you can redistribute it and/or modify it | 11 * This program is free software; you can redistribute it and/or modify it |
| 12 * under the terms of the GNU General Public License as published by the | 12 * under the terms of the GNU General Public License as published by the |
| 13 * Free Software Foundation; either version 2 of the License, or (at your | 13 * Free Software Foundation; either version 2 of the License, or (at your |
| 14 * option) any later version. | 14 * option) any later version. |
| 15 */ | 15 */ |
| 16 | 16 |
| 17 #include <linux/init.h> | |
| 18 #include <linux/module.h> | |
| 19 #include <linux/device.h> | |
| 20 #include <linux/delay.h> | 17 #include <linux/delay.h> |
| 21 #include <linux/clk.h> | 18 #include <linux/clk.h> |
| 22 #include <linux/jiffies.h> | |
| 23 #include <linux/io.h> | 19 #include <linux/io.h> |
| 24 #include <linux/gpio.h> | 20 #include <linux/gpio.h> |
| 25 | 21 |
| 26 #include <sound/core.h> | 22 #include <sound/soc.h> |
| 27 #include <sound/pcm.h> | |
| 28 #include <sound/pcm_params.h> | 23 #include <sound/pcm_params.h> |
| 29 #include <sound/initval.h> | |
| 30 #include <sound/soc.h> | |
| 31 | 24 |
| 32 #include <mach/hardware.h> | |
| 33 #include <mach/regs-gpio.h> | 25 #include <mach/regs-gpio.h> |
| 34 #include <mach/regs-clock.h> | |
| 35 | |
| 36 #include <asm/dma.h> | |
| 37 #include <mach/dma.h> | 26 #include <mach/dma.h> |
| 38 | |
| 39 #include <plat/regs-iis.h> | 27 #include <plat/regs-iis.h> |
| 40 | 28 |
| 41 #include "s3c-dma.h" | 29 #include "dma.h" |
| 42 #include "s3c24xx-i2s.h" | 30 #include "s3c24xx-i2s.h" |
| 43 | 31 |
| 44 static struct s3c2410_dma_client s3c24xx_dma_client_out = { | 32 static struct s3c2410_dma_client s3c24xx_dma_client_out = { |
| 45 .name = "I2S PCM Stereo out" | 33 .name = "I2S PCM Stereo out" |
| 46 }; | 34 }; |
| 47 | 35 |
| 48 static struct s3c2410_dma_client s3c24xx_dma_client_in = { | 36 static struct s3c2410_dma_client s3c24xx_dma_client_in = { |
| 49 .name = "I2S PCM Stereo in" | 37 .name = "I2S PCM Stereo in" |
| 50 }; | 38 }; |
| 51 | 39 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 { | 498 { |
| 511 platform_driver_unregister(&s3c24xx_iis_driver); | 499 platform_driver_unregister(&s3c24xx_iis_driver); |
| 512 } | 500 } |
| 513 module_exit(s3c24xx_i2s_exit); | 501 module_exit(s3c24xx_i2s_exit); |
| 514 | 502 |
| 515 /* Module information */ | 503 /* Module information */ |
| 516 MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); | 504 MODULE_AUTHOR("Ben Dooks, <ben@simtec.co.uk>"); |
| 517 MODULE_DESCRIPTION("s3c24xx I2S SoC Interface"); | 505 MODULE_DESCRIPTION("s3c24xx I2S SoC Interface"); |
| 518 MODULE_LICENSE("GPL"); | 506 MODULE_LICENSE("GPL"); |
| 519 MODULE_ALIAS("platform:s3c24xx-iis"); | 507 MODULE_ALIAS("platform:s3c24xx-iis"); |
| OLD | NEW |