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

Side by Side Diff: sound/soc/ep93xx/ep93xx-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/ep93xx/edb93xx.c ('k') | sound/soc/ep93xx/ep93xx-i2s.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 * ASoC driver for Cirrus Logic EP93xx AC97 controller. 2 * ASoC driver for Cirrus Logic EP93xx AC97 controller.
3 * 3 *
4 * Copyright (c) 2010 Mika Westerberg 4 * Copyright (c) 2010 Mika Westerberg
5 * 5 *
6 * Based on s3c-ac97 ASoC driver by Jaswinder Singh. 6 * Based on s3c-ac97 ASoC driver by Jaswinder Singh.
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.
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 .warm_reset = ep93xx_ac97_warm_reset, 246 .warm_reset = ep93xx_ac97_warm_reset,
247 }; 247 };
248 EXPORT_SYMBOL_GPL(soc_ac97_ops); 248 EXPORT_SYMBOL_GPL(soc_ac97_ops);
249 249
250 static int ep93xx_ac97_trigger(struct snd_pcm_substream *substream, 250 static int ep93xx_ac97_trigger(struct snd_pcm_substream *substream,
251 int cmd, struct snd_soc_dai *dai) 251 int cmd, struct snd_soc_dai *dai)
252 { 252 {
253 struct ep93xx_ac97_info *info = snd_soc_dai_get_drvdata(dai); 253 struct ep93xx_ac97_info *info = snd_soc_dai_get_drvdata(dai);
254 unsigned v = 0; 254 unsigned v = 0;
255 255
256
257 switch (cmd) { 256 switch (cmd) {
258 case SNDRV_PCM_TRIGGER_START: 257 case SNDRV_PCM_TRIGGER_START:
259 case SNDRV_PCM_TRIGGER_RESUME: 258 case SNDRV_PCM_TRIGGER_RESUME:
260 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: 259 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
261 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { 260 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
262 /* 261 /*
263 * Enable compact mode, TX slots 3 & 4, and the TX FIFO 262 * Enable compact mode, TX slots 3 & 4, and the TX FIFO
264 * itself. 263 * itself.
265 */ 264 */
266 v |= AC97TXCR_CM; 265 v |= AC97TXCR_CM;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 static void __exit ep93xx_ac97_exit(void) 458 static void __exit ep93xx_ac97_exit(void)
460 { 459 {
461 platform_driver_unregister(&ep93xx_ac97_driver); 460 platform_driver_unregister(&ep93xx_ac97_driver);
462 } 461 }
463 module_exit(ep93xx_ac97_exit); 462 module_exit(ep93xx_ac97_exit);
464 463
465 MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver"); 464 MODULE_DESCRIPTION("EP93xx AC97 ASoC Driver");
466 MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>"); 465 MODULE_AUTHOR("Mika Westerberg <mika.westerberg@iki.fi>");
467 MODULE_LICENSE("GPL"); 466 MODULE_LICENSE("GPL");
468 MODULE_ALIAS("platform:ep93xx-ac97"); 467 MODULE_ALIAS("platform:ep93xx-ac97");
OLDNEW
« no previous file with comments | « sound/soc/ep93xx/edb93xx.c ('k') | sound/soc/ep93xx/ep93xx-i2s.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698