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

Side by Side Diff: sound/soc/kirkwood/kirkwood-openrd.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/kirkwood/Makefile ('k') | sound/soc/kirkwood/kirkwood-t5325.c » ('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 * kirkwood-openrd.c 2 * kirkwood-openrd.c
3 * 3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com> 4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> 5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify it 7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the 8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your 9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. 10 * option) any later version.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 .dai_link = openrd_client_dai, 79 .dai_link = openrd_client_dai,
80 .num_links = ARRAY_SIZE(openrd_client_dai), 80 .num_links = ARRAY_SIZE(openrd_client_dai),
81 }; 81 };
82 82
83 static struct platform_device *openrd_client_snd_device; 83 static struct platform_device *openrd_client_snd_device;
84 84
85 static int __init openrd_client_init(void) 85 static int __init openrd_client_init(void)
86 { 86 {
87 int ret; 87 int ret;
88 88
89 » if (!machine_is_openrd_client()) 89 » if (!machine_is_openrd_client() && !machine_is_openrd_ultimate())
90 return 0; 90 return 0;
91 91
92 openrd_client_snd_device = platform_device_alloc("soc-audio", -1); 92 openrd_client_snd_device = platform_device_alloc("soc-audio", -1);
93 if (!openrd_client_snd_device) 93 if (!openrd_client_snd_device)
94 return -ENOMEM; 94 return -ENOMEM;
95 95
96 platform_set_drvdata(openrd_client_snd_device, 96 platform_set_drvdata(openrd_client_snd_device,
97 &openrd_client); 97 &openrd_client);
98 98
99 ret = platform_device_add(openrd_client_snd_device); 99 ret = platform_device_add(openrd_client_snd_device);
(...skipping 11 matching lines...) Expand all
111 } 111 }
112 112
113 module_init(openrd_client_init); 113 module_init(openrd_client_init);
114 module_exit(openrd_client_exit); 114 module_exit(openrd_client_exit);
115 115
116 /* Module information */ 116 /* Module information */
117 MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); 117 MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>");
118 MODULE_DESCRIPTION("ALSA SoC OpenRD Client"); 118 MODULE_DESCRIPTION("ALSA SoC OpenRD Client");
119 MODULE_LICENSE("GPL"); 119 MODULE_LICENSE("GPL");
120 MODULE_ALIAS("platform:soc-audio"); 120 MODULE_ALIAS("platform:soc-audio");
OLDNEW
« no previous file with comments | « sound/soc/kirkwood/Makefile ('k') | sound/soc/kirkwood/kirkwood-t5325.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698