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

Side by Side Diff: sound/soc/codecs/uda134x.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/codecs/twl6040.c ('k') | sound/soc/codecs/uda1380.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 * uda134x.c -- UDA134X ALSA SoC Codec driver 2 * uda134x.c -- UDA134X ALSA SoC Codec driver
3 * 3 *
4 * Modifications by Christian Pellegrin <chripell@evolware.org> 4 * Modifications by Christian Pellegrin <chripell@evolware.org>
5 * 5 *
6 * Copyright 2007 Dension Audio Systems Ltd. 6 * Copyright 2007 Dension Audio Systems Ltd.
7 * Author: Zoltan Devai 7 * Author: Zoltan Devai
8 * 8 *
9 * Based on the WM87xx drivers by Liam Girdwood and Richard Purdie 9 * Based on the WM87xx drivers by Liam Girdwood and Richard Purdie
10 * 10 *
11 * This program is free software; you can redistribute it and/or modify 11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as 12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation. 13 * published by the Free Software Foundation.
14 */ 14 */
15 15
16 #include <linux/module.h> 16 #include <linux/module.h>
17 #include <linux/delay.h> 17 #include <linux/delay.h>
18 #include <linux/slab.h> 18 #include <linux/slab.h>
19 #include <sound/pcm.h> 19 #include <sound/pcm.h>
20 #include <sound/pcm_params.h> 20 #include <sound/pcm_params.h>
21 #include <sound/soc.h> 21 #include <sound/soc.h>
22 #include <sound/soc-dapm.h>
23 #include <sound/initval.h> 22 #include <sound/initval.h>
24 23
25 #include <sound/uda134x.h> 24 #include <sound/uda134x.h>
26 #include <sound/l3.h> 25 #include <sound/l3.h>
27 26
28 #include "uda134x.h" 27 #include "uda134x.h"
29 28
30 29
31 #define UDA134X_RATES SNDRV_PCM_RATE_8000_48000 30 #define UDA134X_RATES SNDRV_PCM_RATE_8000_48000
32 #define UDA134X_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | \ 31 #define UDA134X_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | \
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 "unsupported model %d\n", pd->model); 381 "unsupported model %d\n", pd->model);
383 return -EINVAL; 382 return -EINVAL;
384 } 383 }
385 break; 384 break;
386 case SND_SOC_BIAS_OFF: 385 case SND_SOC_BIAS_OFF:
387 /* power off */ 386 /* power off */
388 if (pd->power) 387 if (pd->power)
389 pd->power(0); 388 pd->power(0);
390 break; 389 break;
391 } 390 }
392 » codec->bias_level = level; 391 » codec->dapm.bias_level = level;
393 return 0; 392 return 0;
394 } 393 }
395 394
396 static const char *uda134x_dsp_setting[] = {"Flat", "Minimum1", 395 static const char *uda134x_dsp_setting[] = {"Flat", "Minimum1",
397 "Minimum2", "Maximum"}; 396 "Minimum2", "Maximum"};
398 static const char *uda134x_deemph[] = {"None", "32Khz", "44.1Khz", "48Khz"}; 397 static const char *uda134x_deemph[] = {"None", "32Khz", "44.1Khz", "48Khz"};
399 static const char *uda134x_mixmode[] = {"Differential", "Analog1", 398 static const char *uda134x_mixmode[] = {"Differential", "Analog1",
400 "Analog2", "Both"}; 399 "Analog2", "Both"};
401 400
402 static const struct soc_enum uda134x_mixer_enum[] = { 401 static const struct soc_enum uda134x_mixer_enum[] = {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 634
636 static void __exit uda134x_codec_exit(void) 635 static void __exit uda134x_codec_exit(void)
637 { 636 {
638 platform_driver_unregister(&uda134x_codec_driver); 637 platform_driver_unregister(&uda134x_codec_driver);
639 } 638 }
640 module_exit(uda134x_codec_exit); 639 module_exit(uda134x_codec_exit);
641 640
642 MODULE_DESCRIPTION("UDA134X ALSA soc codec driver"); 641 MODULE_DESCRIPTION("UDA134X ALSA soc codec driver");
643 MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>"); 642 MODULE_AUTHOR("Zoltan Devai, Christian Pellegrin <chripell@evolware.org>");
644 MODULE_LICENSE("GPL"); 643 MODULE_LICENSE("GPL");
OLDNEW
« no previous file with comments | « sound/soc/codecs/twl6040.c ('k') | sound/soc/codecs/uda1380.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698