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

Side by Side Diff: include/sound/soc-dai.h

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 | « include/sound/soc.h ('k') | include/sound/soc-dapm.h » ('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 * linux/sound/soc-dai.h -- ALSA SoC Layer 2 * linux/sound/soc-dai.h -- ALSA SoC Layer
3 * 3 *
4 * Copyright: 2005-2008 Wolfson Microelectronics. PLC. 4 * Copyright: 2005-2008 Wolfson Microelectronics. PLC.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as 7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation. 8 * published by the Free Software Foundation.
9 * 9 *
10 * Digital Audio Interface (DAI) API. 10 * Digital Audio Interface (DAI) API.
11 */ 11 */
12 12
13 #ifndef __LINUX_SND_SOC_DAI_H 13 #ifndef __LINUX_SND_SOC_DAI_H
14 #define __LINUX_SND_SOC_DAI_H 14 #define __LINUX_SND_SOC_DAI_H
15 15
16 16
17 #include <linux/list.h> 17 #include <linux/list.h>
18 18
19 #include <sound/soc.h>
20
21 struct snd_pcm_substream; 19 struct snd_pcm_substream;
22 20
23 /* 21 /*
24 * DAI hardware audio formats. 22 * DAI hardware audio formats.
25 * 23 *
26 * Describes the physical PCM data formating and clocking. Add new formats 24 * Describes the physical PCM data formating and clocking. Add new formats
27 * to the end. 25 * to the end.
28 */ 26 */
29 #define SND_SOC_DAIFMT_I2S 0 /* I2S mode */ 27 #define SND_SOC_DAIFMT_I2S 0 /* I2S mode */
30 #define SND_SOC_DAIFMT_RIGHT_J 1 /* Right Justified mode */ 28 #define SND_SOC_DAIFMT_RIGHT_J 1 /* Right Justified mode */
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 unsigned int id; 196 unsigned int id;
199 int ac97_control; 197 int ac97_control;
200 198
201 /* DAI driver callbacks */ 199 /* DAI driver callbacks */
202 int (*probe)(struct snd_soc_dai *dai); 200 int (*probe)(struct snd_soc_dai *dai);
203 int (*remove)(struct snd_soc_dai *dai); 201 int (*remove)(struct snd_soc_dai *dai);
204 int (*suspend)(struct snd_soc_dai *dai); 202 int (*suspend)(struct snd_soc_dai *dai);
205 int (*resume)(struct snd_soc_dai *dai); 203 int (*resume)(struct snd_soc_dai *dai);
206 204
207 /* ops */ 205 /* ops */
208 » struct snd_soc_dai_ops *ops; 206 » const struct snd_soc_dai_ops *ops;
209 207
210 /* DAI capabilities */ 208 /* DAI capabilities */
211 struct snd_soc_pcm_stream capture; 209 struct snd_soc_pcm_stream capture;
212 struct snd_soc_pcm_stream playback; 210 struct snd_soc_pcm_stream playback;
213 unsigned int symmetric_rates:1; 211 unsigned int symmetric_rates:1;
214 }; 212 };
215 213
216 /* 214 /*
217 * Digital Audio Interface runtime data. 215 * Digital Audio Interface runtime data.
218 * 216 *
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 { 271 {
274 dev_set_drvdata(dai->dev, data); 272 dev_set_drvdata(dai->dev, data);
275 } 273 }
276 274
277 static inline void *snd_soc_dai_get_drvdata(struct snd_soc_dai *dai) 275 static inline void *snd_soc_dai_get_drvdata(struct snd_soc_dai *dai)
278 { 276 {
279 return dev_get_drvdata(dai->dev); 277 return dev_get_drvdata(dai->dev);
280 } 278 }
281 279
282 #endif 280 #endif
OLDNEW
« no previous file with comments | « include/sound/soc.h ('k') | include/sound/soc-dapm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698