Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: sound/soc/sh/sh7760-ac97.c

Issue 6577007: CHROMIUM: ASoC: Import entire upstream ASoC tree (Closed)
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sound/soc/sh/migor.c ('k') | sound/soc/sh/siu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Generic AC97 sound support for SH7760 2 * Generic AC97 sound support for SH7760
3 * 3 *
4 * (c) 2007 Manuel Lauss 4 * (c) 2007 Manuel Lauss
5 * 5 *
6 * Licensed under the GPLv2. 6 * Licensed under the GPLv2.
7 */ 7 */
8 8
9 #include <linux/module.h> 9 #include <linux/module.h>
10 #include <linux/moduleparam.h> 10 #include <linux/moduleparam.h>
11 #include <linux/platform_device.h> 11 #include <linux/platform_device.h>
12 #include <sound/core.h> 12 #include <sound/core.h>
13 #include <sound/pcm.h> 13 #include <sound/pcm.h>
14 #include <sound/soc.h> 14 #include <sound/soc.h>
15 #include <sound/soc-dapm.h>
16 #include <asm/io.h> 15 #include <asm/io.h>
17 16
18 #define IPSEL 0xFE400034 17 #define IPSEL 0xFE400034
19 18
20 /* platform specific structs can be declared here */ 19 /* platform specific structs can be declared here */
21 extern struct snd_soc_dai_driver sh4_hac_dai[2]; 20 extern struct snd_soc_dai_driver sh4_hac_dai[2];
22 extern struct snd_soc_platform_driver sh7760_soc_platform; 21 extern struct snd_soc_platform_driver sh7760_soc_platform;
23 22
24 static int machine_init(struct snd_soc_pcm_runtime *rtd) 23 static int machine_init(struct snd_soc_pcm_runtime *rtd)
25 { 24 {
26 » snd_soc_dapm_sync(rtd->codec); 25 » snd_soc_dapm_sync(&rtd->codec->dapm);
27 return 0; 26 return 0;
28 } 27 }
29 28
30 static struct snd_soc_dai_link sh7760_ac97_dai = { 29 static struct snd_soc_dai_link sh7760_ac97_dai = {
31 .name = "AC97", 30 .name = "AC97",
32 .stream_name = "AC97 HiFi", 31 .stream_name = "AC97 HiFi",
33 .cpu_dai_name = "hac-dai.0", /* HAC0 */ 32 .cpu_dai_name = "hac-dai.0", /* HAC0 */
34 .codec_dai_name = "ac97-hifi", 33 .codec_dai_name = "ac97-hifi",
35 .platform_name = "sh7760-pcm-audio", 34 .platform_name = "sh7760-pcm-audio",
36 .codec_name = "ac97-codec", 35 .codec_name = "ac97-codec",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 { 74 {
76 platform_device_unregister(sh7760_ac97_snd_device); 75 platform_device_unregister(sh7760_ac97_snd_device);
77 } 76 }
78 77
79 module_init(sh7760_ac97_init); 78 module_init(sh7760_ac97_init);
80 module_exit(sh7760_ac97_exit); 79 module_exit(sh7760_ac97_exit);
81 80
82 MODULE_LICENSE("GPL"); 81 MODULE_LICENSE("GPL");
83 MODULE_DESCRIPTION("Generic SH7760 AC97 sound machine"); 82 MODULE_DESCRIPTION("Generic SH7760 AC97 sound machine");
84 MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>"); 83 MODULE_AUTHOR("Manuel Lauss <mano@roarinelk.homelinux.net>");
OLDNEW
« no previous file with comments | « sound/soc/sh/migor.c ('k') | sound/soc/sh/siu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698