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

Side by Side Diff: sound/soc/ep93xx/snappercl15.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/ep93xx/ep93xx-pcm.c ('k') | sound/soc/fsl/mpc8610_hpcd.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 * snappercl15.c -- SoC audio for Bluewater Systems Snapper CL15 module 2 * snappercl15.c -- SoC audio for Bluewater Systems Snapper CL15 module
3 * 3 *
4 * Copyright (C) 2008 Bluewater Systems Ltd 4 * Copyright (C) 2008 Bluewater Systems Ltd
5 * Author: Ryan Mallon <ryan@bluewatersys.com> 5 * Author: Ryan Mallon <ryan@bluewatersys.com>
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.
11 * 11 *
12 */ 12 */
13 13
14 #include <linux/platform_device.h> 14 #include <linux/platform_device.h>
15 #include <sound/core.h> 15 #include <sound/core.h>
16 #include <sound/pcm.h> 16 #include <sound/pcm.h>
17 #include <sound/soc.h> 17 #include <sound/soc.h>
18 #include <sound/soc-dapm.h>
19 18
20 #include <asm/mach-types.h> 19 #include <asm/mach-types.h>
21 #include <mach/hardware.h> 20 #include <mach/hardware.h>
22 21
23 #include "../codecs/tlv320aic23.h" 22 #include "../codecs/tlv320aic23.h"
24 #include "ep93xx-pcm.h" 23 #include "ep93xx-pcm.h"
25 24
26 #define CODEC_CLOCK 5644800 25 #define CODEC_CLOCK 5644800
27 26
28 static int snappercl15_hw_params(struct snd_pcm_substream *substream, 27 static int snappercl15_hw_params(struct snd_pcm_substream *substream,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 71
73 {"LLINEIN", NULL, "Line In"}, 72 {"LLINEIN", NULL, "Line In"},
74 {"RLINEIN", NULL, "Line In"}, 73 {"RLINEIN", NULL, "Line In"},
75 74
76 {"MICIN", NULL, "Mic Jack"}, 75 {"MICIN", NULL, "Mic Jack"},
77 }; 76 };
78 77
79 static int snappercl15_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) 78 static int snappercl15_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd)
80 { 79 {
81 struct snd_soc_codec *codec = rtd->codec; 80 struct snd_soc_codec *codec = rtd->codec;
81 struct snd_soc_dapm_context *dapm = &codec->dapm;
82 82
83 » snd_soc_dapm_new_controls(codec, tlv320aic23_dapm_widgets, 83 » snd_soc_dapm_new_controls(dapm, tlv320aic23_dapm_widgets,
84 ARRAY_SIZE(tlv320aic23_dapm_widgets)); 84 ARRAY_SIZE(tlv320aic23_dapm_widgets));
85 85
86 » snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 86 » snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
87 return 0; 87 return 0;
88 } 88 }
89 89
90 static struct snd_soc_dai_link snappercl15_dai = { 90 static struct snd_soc_dai_link snappercl15_dai = {
91 .name = "tlv320aic23", 91 .name = "tlv320aic23",
92 .stream_name = "AIC23", 92 .stream_name = "AIC23",
93 .cpu_dai_name = "ep93xx-i2s", 93 .cpu_dai_name = "ep93xx-i2s",
94 .codec_dai_name = "tlv320aic23-hifi", 94 .codec_dai_name = "tlv320aic23-hifi",
95 .codec_name = "tlv320aic23-codec.0-001a", 95 .codec_name = "tlv320aic23-codec.0-001a",
96 .platform_name = "ep93xx-pcm-audio", 96 .platform_name = "ep93xx-pcm-audio",
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 ep93xx_i2s_release(); 137 ep93xx_i2s_release();
138 } 138 }
139 139
140 module_init(snappercl15_init); 140 module_init(snappercl15_init);
141 module_exit(snappercl15_exit); 141 module_exit(snappercl15_exit);
142 142
143 MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); 143 MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>");
144 MODULE_DESCRIPTION("ALSA SoC Snapper CL15"); 144 MODULE_DESCRIPTION("ALSA SoC Snapper CL15");
145 MODULE_LICENSE("GPL"); 145 MODULE_LICENSE("GPL");
146 146
OLDNEW
« no previous file with comments | « sound/soc/ep93xx/ep93xx-pcm.c ('k') | sound/soc/fsl/mpc8610_hpcd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698