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

Side by Side Diff: sound/soc/blackfin/bf5xx-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/blackfin/Kconfig ('k') | sound/soc/blackfin/bf5xx-ad1836.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 * bf5xx-ac97.c -- AC97 support for the ADI blackfin chip. 2 * bf5xx-ac97.c -- AC97 support for the ADI blackfin chip.
3 * 3 *
4 * Author: Roy Huang 4 * Author: Roy Huang
5 * Created: 11th. June 2007 5 * Created: 11th. June 2007
6 * Copyright: Analog Device Inc. 6 * Copyright: Analog Device Inc.
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 EXPORT_SYMBOL_GPL(soc_ac97_ops); 253 EXPORT_SYMBOL_GPL(soc_ac97_ops);
254 254
255 #ifdef CONFIG_PM 255 #ifdef CONFIG_PM
256 static int bf5xx_ac97_suspend(struct snd_soc_dai *dai) 256 static int bf5xx_ac97_suspend(struct snd_soc_dai *dai)
257 { 257 {
258 struct sport_device *sport = snd_soc_dai_get_drvdata(dai); 258 struct sport_device *sport = snd_soc_dai_get_drvdata(dai);
259 259
260 pr_debug("%s : sport %d\n", __func__, dai->id); 260 pr_debug("%s : sport %d\n", __func__, dai->id);
261 if (!dai->active) 261 if (!dai->active)
262 return 0; 262 return 0;
263 » if (dai->capture.active) 263 » if (dai->capture_active)
264 sport_rx_stop(sport); 264 sport_rx_stop(sport);
265 » if (dai->playback.active) 265 » if (dai->playback_active)
266 sport_tx_stop(sport); 266 sport_tx_stop(sport);
267 return 0; 267 return 0;
268 } 268 }
269 269
270 static int bf5xx_ac97_resume(struct snd_soc_dai *dai) 270 static int bf5xx_ac97_resume(struct snd_soc_dai *dai)
271 { 271 {
272 int ret; 272 int ret;
273 struct sport_device *sport = snd_soc_dai_get_drvdata(dai); 273 struct sport_device *sport = snd_soc_dai_get_drvdata(dai);
274 274
275 pr_debug("%s : sport %d\n", __func__, dai->id); 275 pr_debug("%s : sport %d\n", __func__, dai->id);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 static void __exit bfin_ac97_exit(void) 444 static void __exit bfin_ac97_exit(void)
445 { 445 {
446 platform_driver_unregister(&asoc_bfin_ac97_driver); 446 platform_driver_unregister(&asoc_bfin_ac97_driver);
447 } 447 }
448 module_exit(bfin_ac97_exit); 448 module_exit(bfin_ac97_exit);
449 449
450 450
451 MODULE_AUTHOR("Roy Huang"); 451 MODULE_AUTHOR("Roy Huang");
452 MODULE_DESCRIPTION("AC97 driver for ADI Blackfin"); 452 MODULE_DESCRIPTION("AC97 driver for ADI Blackfin");
453 MODULE_LICENSE("GPL"); 453 MODULE_LICENSE("GPL");
OLDNEW
« no previous file with comments | « sound/soc/blackfin/Kconfig ('k') | sound/soc/blackfin/bf5xx-ad1836.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698