| OLD | NEW |
| 1 /* | 1 /* |
| 2 * File: sound/soc/blackfin/bf5xx-ssm2602.c | 2 * File: sound/soc/blackfin/bf5xx-ssm2602.c |
| 3 * Author: Cliff Cai <Cliff.Cai@analog.com> | 3 * Author: Cliff Cai <Cliff.Cai@analog.com> |
| 4 * | 4 * |
| 5 * Created: Tue June 06 2008 | 5 * Created: Tue June 06 2008 |
| 6 * Description: board driver for SSM2602 sound chip | 6 * Description: board driver for SSM2602 sound chip |
| 7 * | 7 * |
| 8 * Modified: | 8 * Modified: |
| 9 * Copyright 2008 Analog Devices Inc. | 9 * Copyright 2008 Analog Devices Inc. |
| 10 * | 10 * |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 26 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include <linux/module.h> | 29 #include <linux/module.h> |
| 30 #include <linux/moduleparam.h> | 30 #include <linux/moduleparam.h> |
| 31 #include <linux/device.h> | 31 #include <linux/device.h> |
| 32 | 32 |
| 33 #include <sound/core.h> | 33 #include <sound/core.h> |
| 34 #include <sound/pcm.h> | 34 #include <sound/pcm.h> |
| 35 #include <sound/soc.h> | 35 #include <sound/soc.h> |
| 36 #include <sound/soc-dapm.h> | |
| 37 #include <sound/pcm_params.h> | 36 #include <sound/pcm_params.h> |
| 38 | 37 |
| 39 #include <asm/dma.h> | 38 #include <asm/dma.h> |
| 40 #include <asm/portmux.h> | 39 #include <asm/portmux.h> |
| 41 #include <linux/gpio.h> | 40 #include <linux/gpio.h> |
| 42 #include "../codecs/ssm2602.h" | 41 #include "../codecs/ssm2602.h" |
| 43 #include "bf5xx-sport.h" | 42 #include "bf5xx-sport.h" |
| 44 #include "bf5xx-i2s-pcm.h" | 43 #include "bf5xx-i2s-pcm.h" |
| 45 | 44 |
| 46 static struct snd_soc_card bf5xx_ssm2602; | 45 static struct snd_soc_card bf5xx_ssm2602; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 .startup = bf5xx_ssm2602_startup, | 112 .startup = bf5xx_ssm2602_startup, |
| 114 .hw_params = bf5xx_ssm2602_hw_params, | 113 .hw_params = bf5xx_ssm2602_hw_params, |
| 115 }; | 114 }; |
| 116 | 115 |
| 117 static struct snd_soc_dai_link bf5xx_ssm2602_dai = { | 116 static struct snd_soc_dai_link bf5xx_ssm2602_dai = { |
| 118 .name = "ssm2602", | 117 .name = "ssm2602", |
| 119 .stream_name = "SSM2602", | 118 .stream_name = "SSM2602", |
| 120 .cpu_dai_name = "bf5xx-i2s", | 119 .cpu_dai_name = "bf5xx-i2s", |
| 121 .codec_dai_name = "ssm2602-hifi", | 120 .codec_dai_name = "ssm2602-hifi", |
| 122 .platform_name = "bf5xx-pcm-audio", | 121 .platform_name = "bf5xx-pcm-audio", |
| 123 » .codec_name = "ssm2602-codec.0-0x1b", | 122 » .codec_name = "ssm2602-codec.0-001b", |
| 124 .ops = &bf5xx_ssm2602_ops, | 123 .ops = &bf5xx_ssm2602_ops, |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 static struct snd_soc_card bf5xx_ssm2602 = { | 126 static struct snd_soc_card bf5xx_ssm2602 = { |
| 128 .name = "bf5xx_ssm2602", | 127 .name = "bf5xx_ssm2602", |
| 129 .dai_link = &bf5xx_ssm2602_dai, | 128 .dai_link = &bf5xx_ssm2602_dai, |
| 130 .num_links = 1, | 129 .num_links = 1, |
| 131 }; | 130 }; |
| 132 | 131 |
| 133 static struct platform_device *bf5xx_ssm2602_snd_device; | 132 static struct platform_device *bf5xx_ssm2602_snd_device; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 157 } | 156 } |
| 158 | 157 |
| 159 module_init(bf5xx_ssm2602_init); | 158 module_init(bf5xx_ssm2602_init); |
| 160 module_exit(bf5xx_ssm2602_exit); | 159 module_exit(bf5xx_ssm2602_exit); |
| 161 | 160 |
| 162 /* Module information */ | 161 /* Module information */ |
| 163 MODULE_AUTHOR("Cliff Cai"); | 162 MODULE_AUTHOR("Cliff Cai"); |
| 164 MODULE_DESCRIPTION("ALSA SoC SSM2602 BF527-EZKIT"); | 163 MODULE_DESCRIPTION("ALSA SoC SSM2602 BF527-EZKIT"); |
| 165 MODULE_LICENSE("GPL"); | 164 MODULE_LICENSE("GPL"); |
| 166 | 165 |
| OLD | NEW |