| OLD | NEW |
| 1 /* sound/soc/s3c24xx/spdif.c | 1 /* sound/soc/samsung/spdif.c |
| 2 * | 2 * |
| 3 * ALSA SoC Audio Layer - Samsung S/PDIF Controller driver | 3 * ALSA SoC Audio Layer - Samsung S/PDIF Controller driver |
| 4 * | 4 * |
| 5 * Copyright (c) 2010 Samsung Electronics Co. Ltd | 5 * Copyright (c) 2010 Samsung Electronics Co. Ltd |
| 6 * http://www.samsung.com/ | 6 * http://www.samsung.com/ |
| 7 * | 7 * |
| 8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
| 9 * it under the terms of the GNU General Public License version 2 as | 9 * it under the terms of the GNU General Public License version 2 as |
| 10 * published by the Free Software Foundation. | 10 * published by the Free Software Foundation. |
| 11 */ | 11 */ |
| 12 | 12 |
| 13 #include <linux/clk.h> | 13 #include <linux/clk.h> |
| 14 #include <linux/io.h> | 14 #include <linux/io.h> |
| 15 | 15 |
| 16 #include <sound/pcm.h> | 16 #include <sound/soc.h> |
| 17 #include <sound/pcm_params.h> | 17 #include <sound/pcm_params.h> |
| 18 #include <sound/soc.h> | |
| 19 | 18 |
| 20 #include <plat/audio.h> | 19 #include <plat/audio.h> |
| 21 #include <mach/dma.h> | 20 #include <mach/dma.h> |
| 22 | 21 |
| 23 #include "s3c-dma.h" | 22 #include "dma.h" |
| 24 #include "spdif.h" | 23 #include "spdif.h" |
| 25 | 24 |
| 26 /* Registers */ | 25 /* Registers */ |
| 27 #define CLKCON 0x00 | 26 #define CLKCON 0x00 |
| 28 #define CON 0x04 | 27 #define CON 0x04 |
| 29 #define BSTAS 0x08 | 28 #define BSTAS 0x08 |
| 30 #define CSTAS 0x0C | 29 #define CSTAS 0x0C |
| 31 #define DATA_OUTBUF 0x10 | 30 #define DATA_OUTBUF 0x10 |
| 32 #define DCNT 0x14 | 31 #define DCNT 0x14 |
| 33 #define BSTAS_S 0x18 | 32 #define BSTAS_S 0x18 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 static void __exit spdif_exit(void) | 491 static void __exit spdif_exit(void) |
| 493 { | 492 { |
| 494 platform_driver_unregister(&samsung_spdif_driver); | 493 platform_driver_unregister(&samsung_spdif_driver); |
| 495 } | 494 } |
| 496 module_exit(spdif_exit); | 495 module_exit(spdif_exit); |
| 497 | 496 |
| 498 MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); | 497 MODULE_AUTHOR("Seungwhan Youn, <sw.youn@samsung.com>"); |
| 499 MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); | 498 MODULE_DESCRIPTION("Samsung S/PDIF Controller Driver"); |
| 500 MODULE_LICENSE("GPL"); | 499 MODULE_LICENSE("GPL"); |
| 501 MODULE_ALIAS("platform:samsung-spdif"); | 500 MODULE_ALIAS("platform:samsung-spdif"); |
| OLD | NEW |